rvctool: ImportError: cannot import name 'randn' from 'scipy'
Trying to run rvctool after installation gives an error as shown in the attached image.
I tested python version 3.10, 3.9, 3.8 and 3.7. Only 3.8 worked without any issues 3.9 and 3.10 gave the error above.
same issue here both on windows 11 and ubuntu 20.04
Same issue here
The following distribution that I use is Ubuntu Mate 22.04.4 LTS version
For anyone dropping by here, this issue is documented in the robotics-toolbox-python repo here: https://github.com/petercorke/robotics-toolbox-python/issues/412. The crux of the problem is that SciPy removed the 'randn' import in v1.12.0, which is incompatible with the current version of the toolbox.
There's a hotfix that can be used for the time being, which installs a version of scipy less than v1.12.0:
pip install "scipy<1.12.0"
There is also a propsed PR (https://github.com/petercorke/robotics-toolbox-python/pull/413) which fixes the problem by removing the import since it's not even being used, but given that it's 3 months old and hasn't had any attention from the author, I'd recommend sticking to the hotfix for now.
Sorry about the long delay in sorting this. This was fixed in 1.1.1 posted earlier this month.
@petercorke Thanks for the response! Also might be helpful to update the Anaconda version to 1.1.1 for anyone else using it