spatialmath-python
spatialmath-python copied to clipboard
spatialmath import error on Ubuntu 22.04
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.
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.
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.