While trying to setup benchmarks, several errors are being encountered. The setup is isolated with a separate virtualenv with the latest conda version.
路路 Error running /home/gaganaryan/Desktop/Radis/radis-benchmark/env/f329282d0d237249a049116b7f234e30/bin/python setup.py build (exit status 1)
STDOUT -------->
STDERR -------->
Traceback (most recent call last):
File "setup.py", line 49, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 56, in <module>
'matplotlib pandas')
ImportError: Please install these librairies first (with Anaconda is strongly recommended)
>>> conda install numpy scipy matplotlib pandas
I tried uninstalling and then reinstalling all the 4 packages listed in the last line of the error. But this doesn't resolve the issue. The packages are installed (and was verified with conda list
).
This error was not faced a few times when I had freshly reinstalled the entire Anaconda. But I faced a similar ModuleNotFoundError
for psutil
. Facing even now for the commits that do not crash with the first error.
路路 Error running /home/gaganaryan/Desktop/Radis/radis-benchmark/env/f329282d0d237249a049116b7f234e30/bin/python /home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py discover /home/gaganaryan/Desktop/Radis/radis-benchmark/benchmarks /tmp/tmpvtl2_a7z/result.json (exit status 1)
STDOUT -------->
STDERR -------->
Traceback (most recent call last):
File "/home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py", line 1315, in <module>
main()
File "/home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py", line 1308, in main
commands[mode](args)
File "/home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py", line 1004, in main_discover
list_benchmarks(benchmark_dir, fp)
File "/home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py", line 989, in list_benchmarks
for benchmark in disc_benchmarks(root):
File "/home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py", line 887, in disc_benchmarks
for module in disc_modules(root_name, ignore_import_errors=ignore_import_errors):
File "/home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py", line 869, in disc_modules
for item in disc_modules(name, ignore_import_errors=ignore_import_errors):
File "/home/gaganaryan/anaconda3/envs/radis/lib/python3.8/site-packages/asv/benchmark.py", line 857, in disc_modules
module = import_module(module_name)
File "/home/gaganaryan/Desktop/Radis/radis-benchmark/env/f329282d0d237249a049116b7f234e30/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/gaganaryan/Desktop/Radis/radis-benchmark/benchmarks/benchmarks.py", line 9, in <module>
from psutil import virtual_memory
ModuleNotFoundError: No module named 'psutil'