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 #997

Open
AlgoTide opened this issue Feb 26, 2025 · 2 comments
Open

numpy #997

AlgoTide opened this issue Feb 26, 2025 · 2 comments

Comments

@AlgoTide
Copy link

OS:debian12

run: sudo howdy add

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

@AlgoTide
Copy link
Author

Built from source and then run sudo howdy add ,reported an error.
Is there any other way besides downgrading?

@0x4f53
Copy link

0x4f53 commented Mar 22, 2025

Yes. I use Python3 and ran the following on Debian:

ls /usr/local/lib/python3.11/dist-packages/ | grep -E 'cv2|numpy'

sudo rm -rf /usr/local/lib/python3.11/dist-packages/numpy*
sudo rm -rf /usr/local/lib/python3.11/dist-packages/cv2*

sudo apt install --reinstall python3-numpy python3-opencv

If configparser gives you an error, simply go to /lib/security/howdy/pam.py and change the following line:

import ConfigParser

to:

import configparser as ConfigParser

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