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

[35.2.1][35.3.1]["20.04"] non LTS numpy (not compatible with some LTS software) #1

Open
bmegli opened this issue Aug 17, 2023 · 6 comments

Comments

@bmegli
Copy link
Collaborator

bmegli commented Aug 17, 2023

Some software or Jetson itself installs newer numpy through pip.

  • (from memory) happens after every install of ZED SDK

This is non LTS version which is not backwards compatible with some LTS software.

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

The LTS version of 20.04 is

apt-cache policy python3-numpy
python3-numpy:
  Installed: 1:1.17.4-5ubuntu3.1
  Candidate: 1:1.17.4-5ubuntu3.1

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

From above:

  • any numpy version >=1.24.0 may cause trouble

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

Workaround/Fix

Ideally, if in control of software make it compatible with newer/older numpy versions

  • forward and backward compatibility by not using deprecated features

If not in control there are many solutions, one of them is to downgrade numpy.

Downgrade numpy

To LTS version or last before expiration

# check installed version
pip show numpy

If numpy >= 1.24 downgrade to latest pre 1.24

# install at 1.23.5, last before 1.24
pip install --force-reinstall numpy==1.23.5

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

The problem stems from using pip to install system level packages (which interferes with OS level package compatibility guarantees)

@bmegli
Copy link
Collaborator Author

bmegli commented Aug 17, 2023

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

1 participant