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

no numpy module found although it is installed #4

Open
kdarras opened this issue Aug 3, 2021 · 2 comments
Open

no numpy module found although it is installed #4

kdarras opened this issue Aug 3, 2021 · 2 comments

Comments

@kdarras
Copy link

kdarras commented Aug 3, 2021

Hi there, thanks for the useful repo!

However, when I tried running the main_test_indices.py file after fetching the entire repo on Ubuntu 20.04 and making sure that all 4 required packages were installed with PIP and also APT, I was unsuccessful:

 python main_test_indices.py
Traceback (most recent call last):
  File "main_test_indices.py", line 16, in <module>
    from compute_indice import *
  File "/home/kdarras/Documents/Boulot/2020 Hangzhou/ecoSound-web/indices/Acoustic_Indices/compute_indice.py", line 23, in <module>
    from scipy import signal, fftpack
  File "/usr/lib/python3/dist-packages/scipy/__init__.py", line 62, in <module>
    from numpy import show_config as show_numpy_config
ImportError: No module named numpy

please advise whether this is a bug or an error on my part.

@estabenau
Copy link

estabenau commented Aug 3, 2021 via email

@kdarras
Copy link
Author

kdarras commented Aug 4, 2021

Thanks a lot for checking this. Weird... I had the impression I installed all required packages with APT and PIP. Now that numpy has been (re-?) installed with APT, I got to the next error message, which looks a little different:

python main_test_indices.py
Traceback (most recent call last):
  File "main_test_indices.py", line 16, in <module>
    from compute_indice import *
  File "/home/kdarras/Documents/Boulot/2020 Hangzhou/ecoSound-web/indices/Acoustic_Indices/compute_indice.py", line 23, in <module>
    from scipy import signal, fftpack
  File "/usr/lib/python3/dist-packages/scipy/__init__.py", line 119, in <module>
    from scipy._lib._ccallback import LowLevelCallable
  File "/usr/lib/python3/dist-packages/scipy/_lib/_ccallback.py", line 1, in <module>
    from . import _ccallback_c
ImportError: cannot import name _ccallback_c

PS: scipy is installed
"python3-scipy is already the newest version (1.3.3-3build1)."

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