Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rvctool: ImportError: cannot import name 'randn' from 'scipy' #16

Closed
odadaj opened this issue Mar 1, 2024 · 7 comments
Closed

rvctool: ImportError: cannot import name 'randn' from 'scipy' #16

odadaj opened this issue Mar 1, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@odadaj
Copy link

odadaj commented Mar 1, 2024

Trying to run rvctool after installation gives an error as shown in the attached image.
error

@odadaj odadaj added the bug Something isn't working label Mar 1, 2024
@odadaj
Copy link
Author

odadaj commented Mar 4, 2024

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.

@hualex
Copy link

hualex commented Mar 6, 2024

d3ec6dfaa244f411070df30227ca4dd

same issue here both on windows 11 and ubuntu 20.04

@leandawnleandawn
Copy link

Same issue here
image

The following distribution that I use is Ubuntu Mate 22.04.4 LTS version

@tejashah88
Copy link

tejashah88 commented Apr 5, 2024

For anyone dropping by here, this issue is documented in the robotics-toolbox-python repo here: petercorke/robotics-toolbox-python#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 (petercorke/robotics-toolbox-python#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.

@petercorke
Copy link
Owner

Sorry about the long delay in sorting this. This was fixed in 1.1.1 posted earlier this month.

@tejashah88
Copy link

@petercorke Thanks for the response! Also might be helpful to update the Anaconda version to 1.1.1 for anyone else using it

@slyandsmart
Copy link

slyandsmart commented Dec 22, 2024

@petercorke thanks for your effort, i think
still there is no wheel for linux now on the 1.1.1. version, so it is not solved for linux i gues..

it would be sure helpfull for all linux/ros2 users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants