bdaiinstitute / spatialmath-python

Create, manipulate and convert representations of position and orientation in 2D or 3D using Python
MIT License
497 stars 82 forks source link

spatialmath import error on Ubuntu 22.04 #78

Open asekerci opened 1 year ago

asekerci commented 1 year ago

I installed spatialmath by using the command "pip install spatialmath-python",

Then tried importing it in ipython:

"from spatialmath.base import *"

I got the error(s) as shown in the attached text file.

spatialmath_error.txt

petercorke commented 10 months ago

I've had reports from users of other toolboxes on linux (I'm guessing) with Python 3.10. Can you ensure all your packages are uptodate, or haven't been regressed by some subsequent install. Self is defined in the typing_extensions.py package for python 3.10. This gradual change of type hints is a pain.

Prier commented 9 months ago

The problem we had was that the version of typing_extensions was forced to a version <4.0.0 which does not have Self defined.