ezag / pyeuclid

2D and 3D maths module for Python
97 stars 41 forks source link

Supposed to run on Python 3.x? #15

Open adaldo opened 6 years ago

adaldo commented 6 years ago

I could download pyeculid with sudo pip3 install euclid. But when importing 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.

Evelios commented 5 years ago

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.

etjones commented 5 years ago

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.