spatialmath-python
spatialmath-python copied to clipboard
Spatialmath import broken
Trying to import the "base" attribute of the "spatialmath" module gives me an error message.
I am trying to import it using the following statement at the beginning of a jupyter notebook:
import spatialmath.base as tr
The error message is:
`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
~/test_prep_sem_3/viewpoints_generation/automated-part-inspection/.venv/lib/python3.6/site-packages/spatialmath/init.py in
~/test_prep_sem_3/viewpoints_generation/automated-part-inspection/.venv/lib/python3.6/site-packages/spatialmath/pose2d.py in
~/test_prep_sem_3/viewpoints_generation/automated-part-inspection/.venv/lib/python3.6/site-packages/spatialmath/base/init.py in
~/test_prep_sem_3/viewpoints_generation/automated-part-inspection/.venv/lib/python3.6/site-packages/spatialmath/base/transforms3d.py in
AttributeError: module 'spatialmath' has no attribute 'base'`
Some more information about the issue above:
- the error only appears on Linux (Ubuntu 18.04 LTS with Python 3.6.9)
- it is working with Windows 10 and Python 3.9.2
@max99689 Did you try the latest version of the master branch? It should be fixed in 87cabfe.
Is this resolved?
Installing it using pip still results in the same error, but including the files from the master branch of the repository fixes the issue.
I had the same problem
Do you have the same setup as @max99689 ?
To be exact, we tried with 3 differents computers configured in Ubuntu 18.04 LTS with Python 3.6.9, it was not working even in a venv environment. And eveything was fine in Ubuntu 20.04 LTS with Python3.8
Installing it using pip still results in the same error, but including the files from the master branch of the repository fixes the issue.
I think the issue here is not complicated. The current master branch already contains the patch #53 that should resolve the import problem, but the current version on pypi doesn't yet.
In my opinion, maybe publishing a new version to pypi can make users easier to use this project with Python 3.6.
Running into this problem with 3.6 on ubuntu 20.04. Agree with @StephLin that the PyPI package needs updating
sorry to have been slow here. A version of current master branch is now on PyPI.