Syntaxerror in euclid.py in python 3.4

I have recently reinstalled a bit and it looks like I broke the python 3.4 installation.

File "/usr/local/lib/python3.4/dist-packages/euclid.py", line 137
    raise AttributeError, name
                    ^
SyntaxError: invalid syntax

Do you know which packages should be reinstalled?

+4
source share
1 answer

I had the same problem when I tried to install euclidthrough pip3. I downloaded the source from https://pypi.python.org/pypi/euclid and changed all the messages raise AttributeError, xyzto raise AttributeError(xyz)as suggested by @mgilson in his comment. Then using the installation python3 setup.py installworked fine.

PS I downloaded the updated euclid.pyon github: https://github.com/makemate/euclid_package

+3
source

Source: https://habr.com/ru/post/1627881/


All Articles