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

Numpy 2.x support #454

Open
trzy opened this issue Sep 4, 2024 · 3 comments
Open

Numpy 2.x support #454

trzy opened this issue Sep 4, 2024 · 3 comments

Comments

@trzy
Copy link

trzy commented Sep 4, 2024

Check here first

Common issues

Describe the bug
I'd like to add roboticstoolbox to a project already using NumPy 2.x. However, it seems rbt depends on NumPy 1.x. Is there a way to upgrade this dependency?

Version information

Did you install from PyPI or GitHub? Github
If PyPI what version number?
If GitHub what commit hash? 2a8111b

Robotics Toolbox depends heavily on two other packages: Swift (3D graphics) and SpatialMath toolbox (underpinning maths utilities). If you think your issue is related to these, then please answer the questions above for them.

To Reproduce
Steps to reproduce the behavior:

  1. The shortest, complete, Python script that exhibits the bug.
  2. The script output, including error messages.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Your OS (MacOS, Linux, Windows).
  • Your Python version.

Additional context
Add any other context about the problem here.

@trzy
Copy link
Author

trzy commented Sep 4, 2024

I tried creating a fresh environment and installing roboticstoolbox-python with pip still fails to work. That is, it installs just fine, but won't run because of this NumPy conflict (I'm assuming one of its dependencies is pulling in 2.x).

@arsym-dev
Copy link

arsym-dev commented Sep 23, 2024

This problem existed before in #324. It seems that roboticstoolbox has no max numpy version. I did the following to fix it:

python -m pip uninstall numpy
python -m pip install numpy==1.26.4

@trzy
Copy link
Author

trzy commented Nov 30, 2024

Thanks. What exactly is causing roboticstoolbox to rely on this ancient numpy version (as well as an ancient matplotlib)?

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