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

randn can't be imported from scipy [EKF File] #436

Open
pappuyadav opened this issue May 7, 2024 · 1 comment
Open

randn can't be imported from scipy [EKF File] #436

pappuyadav opened this issue May 7, 2024 · 1 comment

Comments

@pappuyadav
Copy link

pappuyadav commented May 7, 2024

When using : pip3 install roboticstoolbox-python
and importing roboticstoolbox as rtb, it throws an error related to scipy.
randn cannot be directly imported from Scipy. So the modifications in EKF file is required.
Old EKF file:
from scipy import integrate, randn
Change to new EKF file::
from scipy import integrate [remove the randn]
from numpy import* [add this line and save]

Then the error is gone and everything works fine.

@renaudponcelet
Copy link

randn is not in numpy but in numpy.random. The solution is already in pull requests but not merged.. A clean fix would be to replace your second line by from numpy.random import randn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants