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

AttributeError: module 'numpy' has no attribute 'typing' (rfnm) #88

Open
alphafox02 opened this issue Aug 2, 2024 · 2 comments
Open

Comments

@alphafox02
Copy link

Just adding mention here that on 22.04 with the apt install version of numpy, the following occurs when trying to use the -s rfnm argument.

AttributeError: module 'numpy' has no attribute 'typing'

Uninstalling the apt numpy would remove gpsd-clients, kismet, and a lot of other applications built around the 22.04 apt version of python3-numpy.

Would it be possibly to work the -s slightly different? It seems like in numpy 1.2+ that it should work, but I'm not too familiar.

@wuzhongjie1997
Copy link

I'd suggest that you run the Sniffle python interface in a dedicated virtual environment, e.g. using python venv module, conda or the like. Python packages are (imho) notoriously hard to stay compatible for long periods of time, and setting up multiple venv's (especially using conda) really simplifies things a lot for me.

@alphafox02
Copy link
Author

Totally agree. I forget what I ended up doing but it was something along the lines of removing one line that wasn’t really needed and then it ran fine even without the venv. I think it was just for type hints/notes.

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