spatialmath-python icon indicating copy to clipboard operation
spatialmath-python copied to clipboard

spatialmath import error on Ubuntu 22.04

Open asekerci opened this issue 2 years ago • 2 comments

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

asekerci avatar May 28 '23 01:05 asekerci

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.

petercorke avatar Nov 13 '23 02:11 petercorke

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.

Prier avatar Dec 21 '23 11:12 Prier