I cannot run any
bzr command anymore after having updating Python 2.7 to Python 3.5
# bzr File "/usr/bin/bzr", line 49 except locale.Error, e: ^ SyntaxError: invalid syntax
Looking around line 49, one finds:
LC_ALL is set to an empty string.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The error comes from the fact that Python uses another syntax for expeption
except locale.Error, e:
except locale.Error as e:
It is possible to change the expression but I prefered changing the first line of
#!/usr/bin/python2.6 since my
python command point to a +3.0 version.