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

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

Open odadaj opened this issue 1 year ago • 4 comments

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

odadaj avatar Mar 01 '24 03:03 odadaj

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.

odadaj avatar Mar 04 '24 11:03 odadaj

d3ec6dfaa244f411070df30227ca4dd

same issue here both on windows 11 and ubuntu 20.04

hualex avatar Mar 06 '24 01:03 hualex

Same issue here image

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

leandawnleandawn avatar Mar 14 '24 12:03 leandawnleandawn

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.

tejashah88 avatar Apr 05 '24 03:04 tejashah88

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

petercorke avatar May 22 '24 01:05 petercorke

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

tejashah88 avatar May 23 '24 07:05 tejashah88