pyeuclid
pyeuclid copied to clipboard
Supposed to run on Python 3.x?
I could download pyeculid with sudo pip3 install euclid
.
But when import
ing euclid
, we get a SyntaxError
on line 137.
Of course, this does not happen if I import
it with Python 2.x.
Is the package intended at all to work on Python 3.x?
If so, should we consider fixing the syntax?
Edit: This seems to be a name clash with a different Python package, since the line 137 that I get in the SyntaxError
is raise AttributeError, name
, which is not the same as line 137 in euclid.py
here.
This library is not the official euclid library you can download this version locally and install it that way. I had the same issue. This version is python 3.6 compatible. That is the version I am using now.
Fork of pyeuclid by Alex Holkner. The latest pulled upstream revision is r37.
You can also just use the reasonably maintained euclid3
fork. It's on PyPI, so you can just do pip install euclid3
and then import euclid3
in your Python code.