Open heagan01 opened 4 years ago
I have the same issue on an orangepi zero 2 running debian. Some one how now a solution?
I have the same issue on an orangepi zero 2 running debian. Some one how now a solution?
I've tried this on arch linux aswell it doesnt work
Here's your problem:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/usr/include/python3.6m -c src/dynload.c -o build/temp.linux-x86_64-3.6/src/dynload.o
src/dynload.c:5:10: fatal error: Python.h: No such file or directory
#include "Python.h"
You need to install the python3-dev package: sudo apt-get install python3-dev
Here's your problem:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/usr/include/python3.6m -c src/dynload.c -o build/temp.linux-x86_64-3.6/src/dynload.o src/dynload.c:5:10: fatal error: Python.h: No such file or directory #include "Python.h"
You need to install the python3-dev package:
sudo apt-get install python3-dev
this is the resoult with python3-dev install
root@orangepizero2:~/pwnagotchi-1.5.5#
sudo pip3 install -r requirements.txt
Collecting pycryptodome==3.9.4
Using cached pycryptodome-3.9.4.tar.gz (11.6 MB)
Collecting requests==2.21.0
Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting PyYAML==5.3.1
Using cached PyYAML-5.3.1.tar.gz (269 kB)
Collecting scapy==2.4.3
Using cached scapy-2.4.3.tar.gz (905 kB)
Collecting gym==0.14.0
Using cached gym-0.14.0.tar.gz (1.6 MB)
Collecting scipy==1.3.1
Using cached scipy-1.3.1.tar.gz (23.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmp5fup82bm prepare_metadata_for_build_wheel /tmp/tmp5fy8dtei
cwd: /tmp/pip-install-4jdjuxtb/scipy
Complete output (137 lines):
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
customize UnixCCompiler
libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
setup.py:386: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /tmp/pip-modern-metadata-a6e2gl5h'), proceeding with generating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
Running from scipy source directory.
/tmp/pip-build-env-t8evug7v/overlay/lib/python3.8/site-packages/numpy/distutils/system_info.py:624: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
/tmp/pip-build-env-t8evug7v/overlay/lib/python3.8/site-packages/numpy/distutils/system_info.py:624: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
/tmp/pip-build-env-t8evug7v/overlay/lib/python3.8/site-packages/numpy/distutils/system_info.py:624: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
Traceback (most recent call last):
File "/tmp/tmp5fup82bm", line 280, in <module>
main()
File "/tmp/tmp5fup82bm", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/tmp/tmp5fup82bm", line 133, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-t8evug7v/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 173, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-t8evug7v/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 266, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-t8evug7v/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 157, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 505, in <module>
setup_package()
File "setup.py", line 501, in setup_package
setup(**metadata)
File "/tmp/pip-build-env-t8evug7v/overlay/lib/python3.8/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "setup.py", line 403, in configuration
raise NotFoundError(msg)
numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /tmp/tmp5fup82bm prepare_metadata_for_build_wheel /tmp/tmp5fy8dtei Check the logs for full command output.
root@orangepizero2:~/pwnagotchi-1.5.5#
it seems I got a building error with scipy?
Collecting crypto==1.4.1
Using cached crypto-1.4.1-py2.py3-none-any.whl (18 kB)
Collecting requests==2.21.0
Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting PyYAML==5.1
Using cached PyYAML-5.1.tar.gz (274 kB)
Collecting scapy==2.4.3
Using cached scapy-2.4.3.tar.gz (905 kB)
Collecting gym==0.14.0
Using cached gym-0.14.0.tar.gz (1.6 MB)
Collecting scipy==1.3.1
Using cached scipy-1.3.1.tar.gz (23.6 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'error'
Describe the bug Cannot run "sudo pip3 install -r requirements.txt" and "sudo pip3 install .".
To Reproduce Steps to reproduce the behavior:
Expected behavior Installation completed
Logs For the sudo pip3 install -r requirements.txt:
For the sudo pip3 install .
Environment (please complete the following information):
Additional context Sorry if I don't know anything about linux, I'm new here.