Skip to content

spatialmath import error on Ubuntu 22.04 #78

Description

@asekerci

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

Activity

  1. petercorke commented on Nov 13, 2023

    @petercorke
    Collaborator

    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.

  2. Prier commented on Dec 21, 2023

    @Prier

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions