No, because you then lose support from OSMC.
Why does this not work on the Vero? Kodi is Kodi.
No, because you then lose support from OSMC.
Why does this not work on the Vero? Kodi is Kodi.
I was talking about the Thoradia repo for instance: GitHub - thoradia/thoradia: Thoradia Add-ons Repository
That is made for Libreelec and they have a Coreelec version, but not an OSMC version. I presume you’d need a version specifically for the OS, right?
BTW, the support I get here is really on another level. I have the deepest respect and admiration for you guys trying to help me with this seemingly trivial problem.
Yeah, not sure that would work.
Well, if wheel wasn’t previously installed, that might have caused the numpy install to fail. So, try to install numpy again: pip3 install numpy
If that works, re-run the full “requirements” install. If anything fails, please post the output.
No changes there it seems:
osmc@osmc:~$ pip3 install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/51/60/3f0fe5b7675a461d96b9d6729beecd3532565743278a9c3fe6dd09697fa7/numpy-1.19.5.zip
Installing build dependencies ... done
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lbdxny3t/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-2c1gbc0c --python-tag cp37:
Running from numpy source directory.
Cythonizing sources
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_mt19937.pyx
Processing numpy/random/_philox.pyx
Processing numpy/random/bit_generator.pyx
Processing numpy/random/_generator.pyx
Processing numpy/random/_pcg64.pyx
Processing numpy/random/mtrand.pyx
Processing numpy/random/_bounded_integers.pyx.in
Processing numpy/random/_sfc64.pyx
Processing numpy/random/_common.pyx
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
blas_info:
libraries blas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
blas_src_info:
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self._calc_info(blas):
NOT AVAILABLE
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
flame_info:
libraries flame not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
lapack_src_info:
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
NOT AVAILABLE
numpy_linalg_lapack_lite:
FOUND:
language = c
/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build/src.linux-aarch64-3.7
creating build/src.linux-aarch64-3.7/numpy
creating build/src.linux-aarch64-3.7/numpy/distutils
building library "npymath" sources
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable lf95
Could not locate executable pgfortran
Could not locate executable nvfortran
Could not locate executable f90
Could not locate executable f77
Could not locate executable fort
Could not locate executable efort
Could not locate executable efc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pathf95
Could not locate executable nagfor
don't know how to compile Fortran code on platform 'posix'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-lbdxny3t/numpy/setup.py", line 508, in <module>
setup_package()
File "/tmp/pip-install-lbdxny3t/numpy/setup.py", line 500, in setup_package
setup(**metadata)
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/tmp/pip-build-env-emgk9hnu/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-emgk9hnu/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 290, in run
self.run_command('build')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build.py", line 40, in run
old_build.run(self)
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 663, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
Failed building wheel for numpy
Running setup.py clean for numpy
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lbdxny3t/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
Running from numpy source directory.
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
----------------------------------------
Failed cleaning build dir for numpy
Failed to build numpy
Installing collected packages: numpy
Running setup.py install for numpy ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lbdxny3t/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0grzltu3/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Running from numpy source directory.
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install numpy` (last NumPy release on PyPi)
Cythonizing sources
numpy/random/_bounded_integers.pxd.in has not changed
numpy/random/_mt19937.pyx has not changed
numpy/random/_philox.pyx has not changed
numpy/random/bit_generator.pyx has not changed
numpy/random/_generator.pyx has not changed
Processing numpy/random/_bounded_integers.pyx
numpy/random/_pcg64.pyx has not changed
numpy/random/mtrand.pyx has not changed
numpy/random/_bounded_integers.pyx.in has not changed
numpy/random/_sfc64.pyx has not changed
numpy/random/_common.pyx has not changed
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
blas_info:
libraries blas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
blas_src_info:
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self._calc_info(blas):
NOT AVAILABLE
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
flame_info:
libraries flame not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
lapack_src_info:
NOT AVAILABLE
/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
NOT AVAILABLE
numpy_linalg_lapack_lite:
FOUND:
language = c
/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable lf95
Could not locate executable pgfortran
Could not locate executable nvfortran
Could not locate executable f90
Could not locate executable f77
Could not locate executable fort
Could not locate executable efort
Could not locate executable efc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pathf95
Could not locate executable nagfor
don't know how to compile Fortran code on platform 'posix'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-lbdxny3t/numpy/setup.py", line 508, in <module>
setup_package()
File "/tmp/pip-install-lbdxny3t/numpy/setup.py", line 500, in setup_package
setup(**metadata)
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/tmp/pip-build-env-emgk9hnu/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/install.py", line 60, in run
r = self.setuptools_run()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/install.py", line 34, in setuptools_run
return distutils_install.run(self)
File "/usr/lib/python3.7/distutils/command/install.py", line 589, in run
self.run_command('build')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build.py", line 40, in run
old_build.run(self)
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/tmp/pip-install-lbdxny3t/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 663, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lbdxny3t/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0grzltu3/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-lbdxny3t/numpy/
It seems that, depending on your environment, running pip3 install numpy
might not always be the same as running python3 -m pip install numpy
. So, give the second version a try.
It does not seem to make much of a difference:
osmc@osmc:~$ python3 -m pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/51/60/3f0fe5b7675a461d96b9d6729beecd3532565743278a9c3fe6dd09697fa7/numpy-1.19.5.zip
Installing build dependencies ... done
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-o_umowx6/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-r2rpseqb --python-tag cp37:
Running from numpy source directory.
Cythonizing sources
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_mt19937.pyx
Processing numpy/random/_philox.pyx
Processing numpy/random/bit_generator.pyx
Processing numpy/random/_generator.pyx
Processing numpy/random/_pcg64.pyx
Processing numpy/random/mtrand.pyx
Processing numpy/random/_bounded_integers.pyx.in
Processing numpy/random/_sfc64.pyx
Processing numpy/random/_common.pyx
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
blas_info:
libraries blas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
blas_src_info:
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self._calc_info(blas):
NOT AVAILABLE
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
flame_info:
libraries flame not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
lapack_src_info:
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
NOT AVAILABLE
numpy_linalg_lapack_lite:
FOUND:
language = c
/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build/src.linux-aarch64-3.7
creating build/src.linux-aarch64-3.7/numpy
creating build/src.linux-aarch64-3.7/numpy/distutils
building library "npymath" sources
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable lf95
Could not locate executable pgfortran
Could not locate executable nvfortran
Could not locate executable f90
Could not locate executable f77
Could not locate executable fort
Could not locate executable efort
Could not locate executable efc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pathf95
Could not locate executable nagfor
don't know how to compile Fortran code on platform 'posix'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-o_umowx6/numpy/setup.py", line 508, in <module>
setup_package()
File "/tmp/pip-install-o_umowx6/numpy/setup.py", line 500, in setup_package
setup(**metadata)
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/tmp/pip-build-env-ot16taay/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-ot16taay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 290, in run
self.run_command('build')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build.py", line 40, in run
old_build.run(self)
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 663, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
Failed building wheel for numpy
Running setup.py clean for numpy
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-o_umowx6/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
Running from numpy source directory.
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
----------------------------------------
Failed cleaning build dir for numpy
Failed to build numpy
Installing collected packages: numpy
Running setup.py install for numpy ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-o_umowx6/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jxj0xs6o/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Running from numpy source directory.
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install numpy` (last NumPy release on PyPi)
Cythonizing sources
numpy/random/_bounded_integers.pxd.in has not changed
numpy/random/_mt19937.pyx has not changed
numpy/random/_philox.pyx has not changed
numpy/random/bit_generator.pyx has not changed
numpy/random/_generator.pyx has not changed
Processing numpy/random/_bounded_integers.pyx
numpy/random/_pcg64.pyx has not changed
numpy/random/mtrand.pyx has not changed
numpy/random/_bounded_integers.pyx.in has not changed
numpy/random/_sfc64.pyx has not changed
numpy/random/_common.pyx has not changed
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
blas_info:
libraries blas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
blas_src_info:
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self._calc_info(blas):
NOT AVAILABLE
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
flame_info:
libraries flame not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
lapack_src_info:
NOT AVAILABLE
/tmp/pip-install-o_umowx6/numpy/numpy/distutils/system_info.py:1748: 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.
return getattr(self, '_calc_info_{}'.format(name))()
NOT AVAILABLE
numpy_linalg_lapack_lite:
FOUND:
language = c
/usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable lf95
Could not locate executable pgfortran
Could not locate executable nvfortran
Could not locate executable f90
Could not locate executable f77
Could not locate executable fort
Could not locate executable efort
Could not locate executable efc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pathf95
Could not locate executable nagfor
don't know how to compile Fortran code on platform 'posix'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-o_umowx6/numpy/setup.py", line 508, in <module>
setup_package()
File "/tmp/pip-install-o_umowx6/numpy/setup.py", line 500, in setup_package
setup(**metadata)
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/tmp/pip-build-env-ot16taay/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/install.py", line 60, in run
r = self.setuptools_run()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/install.py", line 34, in setuptools_run
return distutils_install.run(self)
File "/usr/lib/python3.7/distutils/command/install.py", line 589, in run
self.run_command('build')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build.py", line 40, in run
old_build.run(self)
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/tmp/pip-install-o_umowx6/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 663, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-o_umowx6/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jxj0xs6o/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-o_umowx6/numpy/
Can you show the output from running the following commands:
python3
import sys, site
sys.path
site.__file__
(Those are double underscores either side of file
.) Ctrl-d
to exit from python.
The output ( thanks for the ctrl-d shortcut btw ):
osmc@osmc:~$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, site
>>> sys.path
['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/osmc/.local/lib/python3.7/site-packages', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages']
>>> site.__file__
'/usr/lib/python3.7/site.py'
>>>
That all looks fine. There’s something iffy about your installation but it’s not clear where the problem lies.
We can at least (try to) work around the numpy problem by installing the Debian package python3-numpy
. It’s version 1.16.2-1, so meets the requirement that it should be >=1.12.0. sudo apt-get install python3-numpy
I’m curious what running python3 -m pip install -r requirements.txt
will produce this time.
Maybe it has something to do that the installation instructions previously said to run certain commands from within /opt/bazarr? Or at least, did not tell me to go back to the root folder. I’m n00b enough to not know if this makes any difference whatsoever.
osmc@osmc:~$ python3-numpy
-bash: python3-numpy: command not found
osmc@osmc:~$ sudo apt-get install python3-numpy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gcc gfortran python-numpy-doc python3-pytest python3-numpy-dbg
The following NEW packages will be installed:
python3-numpy
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 1903 kB of archives.
After this operation, 9783 kB of additional disk space will be used.
Get:1 http://ftp.debian.org/debian buster/main armhf python3-numpy armhf 1:1.16.2-1 [1903 kB]
Fetched 1903 kB in 0s (8772 kB/s)
Selecting previously unselected package python3-numpy.
(Reading database ... 45137 files and directories currently installed.)
Preparing to unpack .../python3-numpy_1%3a1.16.2-1_armhf.deb ...
Unpacking python3-numpy (1:1.16.2-1) ...
Setting up python3-numpy (1:1.16.2-1) ...
osmc@osmc:~$ python3 -m pip install -r requirements.txt
Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
osmc@osmc:~$ cd /opt/bazarr
osmc@osmc:/opt/bazarr$ python3 -m pip install -r requirements.txt
Requirement already satisfied: lxml>=4.3.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (4.3.2)
Requirement already satisfied: numpy>=1.12.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (1.16.2)
Collecting webrtcvad-wheels>=2.0.10 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/1c/37/56ddf05b6eaf4023b2d3eb069954fd9150b452ee326d0ea20af1d0d4b0c2/webrtcvad-wheels-2.0.10.post2.tar.gz
Building wheels for collected packages: webrtcvad-wheels
Running setup.py bdist_wheel for webrtcvad-wheels ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-xlkzhfr4/webrtcvad-wheels/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-to9tbhit --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
copying webrtcvad.py -> build/lib.linux-aarch64-3.7
running build_ext
building '_webrtcvad' extension
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/cbits
creating build/temp.linux-aarch64-3.7/cbits/webrtc
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/signal_processing
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/vad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWEBRTC_POSIX -Icbits -I/usr/include/python3.7m -c cbits/pywebrtcvad.c -o build/temp.linux-aarch64-3.7/cbits/pywebrtcvad.o
unable to execute 'arm-linux-gnueabihf-gcc': No such file or directory
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for webrtcvad-wheels
Running setup.py clean for webrtcvad-wheels
Failed to build webrtcvad-wheels
Installing collected packages: webrtcvad-wheels
Running setup.py install for webrtcvad-wheels ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-xlkzhfr4/webrtcvad-wheels/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-moukrkj0/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
copying webrtcvad.py -> build/lib.linux-aarch64-3.7
running build_ext
building '_webrtcvad' extension
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/cbits
creating build/temp.linux-aarch64-3.7/cbits/webrtc
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/signal_processing
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/vad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWEBRTC_POSIX -Icbits -I/usr/include/python3.7m -c cbits/pywebrtcvad.c -o build/temp.linux-aarch64-3.7/cbits/pywebrtcvad.o
unable to execute 'arm-linux-gnueabihf-gcc': No such file or directory
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-xlkzhfr4/webrtcvad-wheels/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-moukrkj0/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-xlkzhfr4/webrtcvad-wheels/
osmc@osmc:/opt/bazarr$
That should have been installed as part of the build-essential package.
Please provide new logs (grab-logs -A
), so we can see the latest state of your device.
Actually that’d just be gcc
export CROSS_COMPILE=/usr/bin/ would probably fix what seems to be an issue with the script.
Output from grab-logs -A
: https://paste.osmc.tv/nifivixule
I’ve tried the export CROSS_COMPILE=/usr/bin/
command (not even sure if that was an instruction) and then the python3 -m pip install -r requirements.txt
again but it’s still not working:
osmc@osmc:~$ export CROSS_COMPILE=/usr/bin/
osmc@osmc:~$ cd /opt/bazarr
osmc@osmc:/opt/bazarr$ python3 -m pip install -r requirements.txt
Requirement already satisfied: lxml>=4.3.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (4.3.2)
Requirement already satisfied: numpy>=1.12.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (1.16.2)
Collecting webrtcvad-wheels>=2.0.10 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/1c/37/56ddf05b6eaf4023b2d3eb069954fd9150b452ee326d0ea20af1d0d4b0c2/webrtcvad-wheels-2.0.10.post2.tar.gz
Building wheels for collected packages: webrtcvad-wheels
Running setup.py bdist_wheel for webrtcvad-wheels ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-res8pud7/webrtcvad-wheels/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-f4okq6n5 --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
copying webrtcvad.py -> build/lib.linux-aarch64-3.7
running build_ext
building '_webrtcvad' extension
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/cbits
creating build/temp.linux-aarch64-3.7/cbits/webrtc
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/signal_processing
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/vad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWEBRTC_POSIX -Icbits -I/usr/include/python3.7m -c cbits/pywebrtcvad.c -o build/temp.linux-aarch64-3.7/cbits/pywebrtcvad.o
unable to execute 'arm-linux-gnueabihf-gcc': No such file or directory
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for webrtcvad-wheels
Running setup.py clean for webrtcvad-wheels
Failed to build webrtcvad-wheels
Installing collected packages: webrtcvad-wheels
Running setup.py install for webrtcvad-wheels ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-res8pud7/webrtcvad-wheels/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-d1hogkdl/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
copying webrtcvad.py -> build/lib.linux-aarch64-3.7
running build_ext
building '_webrtcvad' extension
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/cbits
creating build/temp.linux-aarch64-3.7/cbits/webrtc
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/signal_processing
creating build/temp.linux-aarch64-3.7/cbits/webrtc/common_audio/vad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWEBRTC_POSIX -Icbits -I/usr/include/python3.7m -c cbits/pywebrtcvad.c -o build/temp.linux-aarch64-3.7/cbits/pywebrtcvad.o
unable to execute 'arm-linux-gnueabihf-gcc': No such file or directory
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-res8pud7/webrtcvad-wheels/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-d1hogkdl/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-res8pud7/webrtcvad-wheels/
osmc@osmc:/opt/bazarr$
So can you spot where build-essential should be?
ii bsdutils 1:2.33.1-0.1 armhf basic utilities from 4.4BSD-Lite
ii busybox 1:1.30.1-4 armhf Tiny utilities for small and embedded systems
I appreciate you are trying to make me learn something, but I think you overestimate my knowledge here
Well, build-essential
should appear in the (alphabetically sorted) list between bsdutils
and busybox
.
Except… it doesn’t.
So you need to install it.
WE DID IT! It’s running!
I did it before as instructed earlier in this thread, but it could be very possible that I wasn’t running it from the opt/bazarr directory. Does that make a difference?
One last question, how can I make sure the bazarr.py starts every time I boot?
The output just for fun:
osmc@osmc:/opt/bazarr$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
bzip2 cpp cpp-8 dpkg-dev g++ g++-8 gcc gcc-8 libasan5 libcc1-0 libgcc-8-dev
libisl19 libmpc3 libmpfr6 libstdc++-8-dev libubsan1 make patch
Suggested packages:
bzip2-doc cpp-doc gcc-8-locales debian-keyring gcc-8-doc libstdc++6-8-dbg
gcc-multilib manpages-dev autoconf automake libtool flex bison gdb gcc-doc
libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan5-dbg
liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg libquadmath0-dbg
libstdc++-8-doc make-doc ed diffutils-doc
Recommended packages:
fakeroot libalgorithm-merge-perl
The following NEW packages will be installed:
build-essential bzip2 cpp cpp-8 dpkg-dev g++ g++-8 gcc gcc-8 libasan5
libcc1-0 libgcc-8-dev libisl19 libmpc3 libmpfr6 libstdc++-8-dev libubsan1
make patch
0 upgraded, 19 newly installed, 0 to remove and 6 not upgraded.
Need to get 27.7 MB of archives.
After this operation, 76.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian buster/main armhf bzip2 armhf 1.0.6-9.2~deb10u1 [46.7 kB]
Get:2 http://ftp.debian.org/debian buster/main armhf libisl19 armhf 0.20-2 [455 kB]
Get:3 http://ftp.debian.org/debian buster/main armhf libmpfr6 armhf 4.0.2-1 [731 kB]
Get:4 http://ftp.debian.org/debian buster/main armhf libmpc3 armhf 1.1.0-1 [33.8 kB]
Get:5 http://ftp.debian.org/debian buster/main armhf cpp-8 armhf 8.3.0-6 [6790 kB]
Get:6 http://ftp.debian.org/debian buster/main armhf cpp armhf 4:8.3.0-1 [19.4 kB]
Get:7 http://ftp.debian.org/debian buster/main armhf libcc1-0 armhf 8.3.0-6 [38.9 kB]
Get:8 http://ftp.debian.org/debian buster/main armhf libasan5 armhf 8.3.0-6 [336 kB]
Get:9 http://ftp.debian.org/debian buster/main armhf libubsan1 armhf 8.3.0-6 [103 kB]
Get:10 http://ftp.debian.org/debian buster/main armhf libgcc-8-dev armhf 8.3.0-6 [612 kB]
Get:11 http://ftp.debian.org/debian buster/main armhf gcc-8 armhf 8.3.0-6 [7229 kB]
Get:12 http://ftp.debian.org/debian buster/main armhf gcc armhf 4:8.3.0-1 [5204 B]
Get:13 http://ftp.debian.org/debian buster/main armhf libstdc++-8-dev armhf 8.3.0-6 [1584 kB]
Get:14 http://ftp.debian.org/debian buster/main armhf g++-8 armhf 8.3.0-6 [7463 kB]
Get:15 http://ftp.debian.org/debian buster/main armhf g++ armhf 4:8.3.0-1 [1624 B]
Get:16 http://ftp.debian.org/debian buster/main armhf make armhf 4.2.1-1.2 [327 kB]
Get:17 http://ftp.debian.org/debian buster/main armhf patch armhf 2.7.6-3+deb10u1 [123 kB]
Get:18 http://ftp.debian.org/debian buster/main armhf dpkg-dev all 1.19.7 [1773 kB]
Get:19 http://ftp.debian.org/debian buster/main armhf build-essential armhf 12.6 [7568 B]
Fetched 27.7 MB in 2s (16.9 MB/s)
Selecting previously unselected package bzip2.
(Reading database ... 45567 files and directories currently installed.)
Preparing to unpack .../00-bzip2_1.0.6-9.2~deb10u1_armhf.deb ...
Unpacking bzip2 (1.0.6-9.2~deb10u1) ...
Selecting previously unselected package libisl19:armhf.
Preparing to unpack .../01-libisl19_0.20-2_armhf.deb ...
Unpacking libisl19:armhf (0.20-2) ...
Selecting previously unselected package libmpfr6:armhf.
Preparing to unpack .../02-libmpfr6_4.0.2-1_armhf.deb ...
Unpacking libmpfr6:armhf (4.0.2-1) ...
Selecting previously unselected package libmpc3:armhf.
Preparing to unpack .../03-libmpc3_1.1.0-1_armhf.deb ...
Unpacking libmpc3:armhf (1.1.0-1) ...
Selecting previously unselected package cpp-8.
Preparing to unpack .../04-cpp-8_8.3.0-6_armhf.deb ...
Unpacking cpp-8 (8.3.0-6) ...
Selecting previously unselected package cpp.
Preparing to unpack .../05-cpp_4%3a8.3.0-1_armhf.deb ...
Unpacking cpp (4:8.3.0-1) ...
Selecting previously unselected package libcc1-0:armhf.
Preparing to unpack .../06-libcc1-0_8.3.0-6_armhf.deb ...
Unpacking libcc1-0:armhf (8.3.0-6) ...
Selecting previously unselected package libasan5:armhf.
Preparing to unpack .../07-libasan5_8.3.0-6_armhf.deb ...
Unpacking libasan5:armhf (8.3.0-6) ...
Selecting previously unselected package libubsan1:armhf.
Preparing to unpack .../08-libubsan1_8.3.0-6_armhf.deb ...
Unpacking libubsan1:armhf (8.3.0-6) ...
Selecting previously unselected package libgcc-8-dev:armhf.
Preparing to unpack .../09-libgcc-8-dev_8.3.0-6_armhf.deb ...
Unpacking libgcc-8-dev:armhf (8.3.0-6) ...
Selecting previously unselected package gcc-8.
Preparing to unpack .../10-gcc-8_8.3.0-6_armhf.deb ...
Unpacking gcc-8 (8.3.0-6) ...
Selecting previously unselected package gcc.
Preparing to unpack .../11-gcc_4%3a8.3.0-1_armhf.deb ...
Unpacking gcc (4:8.3.0-1) ...
Selecting previously unselected package libstdc++-8-dev:armhf.
Preparing to unpack .../12-libstdc++-8-dev_8.3.0-6_armhf.deb ...
Unpacking libstdc++-8-dev:armhf (8.3.0-6) ...
Selecting previously unselected package g++-8.
Preparing to unpack .../13-g++-8_8.3.0-6_armhf.deb ...
Unpacking g++-8 (8.3.0-6) ...
Selecting previously unselected package g++.
Preparing to unpack .../14-g++_4%3a8.3.0-1_armhf.deb ...
Unpacking g++ (4:8.3.0-1) ...
Selecting previously unselected package make.
Preparing to unpack .../15-make_4.2.1-1.2_armhf.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package patch.
Preparing to unpack .../16-patch_2.7.6-3+deb10u1_armhf.deb ...
Unpacking patch (2.7.6-3+deb10u1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../17-dpkg-dev_1.19.7_all.deb ...
Unpacking dpkg-dev (1.19.7) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../18-build-essential_12.6_armhf.deb ...
Unpacking build-essential (12.6) ...
Setting up bzip2 (1.0.6-9.2~deb10u1) ...
Setting up libasan5:armhf (8.3.0-6) ...
Setting up make (4.2.1-1.2) ...
Setting up libmpfr6:armhf (4.0.2-1) ...
Setting up libmpc3:armhf (1.1.0-1) ...
Setting up patch (2.7.6-3+deb10u1) ...
Setting up libubsan1:armhf (8.3.0-6) ...
Setting up libisl19:armhf (0.20-2) ...
Setting up cpp-8 (8.3.0-6) ...
Setting up libcc1-0:armhf (8.3.0-6) ...
Setting up dpkg-dev (1.19.7) ...
Setting up libgcc-8-dev:armhf (8.3.0-6) ...
Setting up cpp (4:8.3.0-1) ...
Setting up libstdc++-8-dev:armhf (8.3.0-6) ...
Setting up gcc-8 (8.3.0-6) ...
Setting up gcc (4:8.3.0-1) ...
Setting up g++-8 (8.3.0-6) ...
Setting up g++ (4:8.3.0-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.6) ...
Processing triggers for libc-bin (2.28-10) ...
osmc@osmc:/opt/bazarr$ python3 -m pip install -r requirements.txt
Requirement already satisfied: lxml>=4.3.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (4.3.2)
Requirement already satisfied: numpy>=1.12.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (1.16.2)
Collecting webrtcvad-wheels>=2.0.10 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/1c/37/56ddf05b6eaf4023b2d3eb069954fd9150b452ee326d0ea20af1d0d4b0c2/webrtcvad-wheels-2.0.10.post2.tar.gz
Building wheels for collected packages: webrtcvad-wheels
Running setup.py bdist_wheel for webrtcvad-wheels ... done
Stored in directory: /home/osmc/.cache/pip/wheels/ec/4c/d1/679946f374ae35347e7c7d8434cd44dd6a0e6d05afb45fe621
Successfully built webrtcvad-wheels
Installing collected packages: webrtcvad-wheels
Successfully installed webrtcvad-wheels-2.0.10.post2
osmc@osmc:/opt/bazarr$ ^C
osmc@osmc:/opt/bazarr$ python3 bazarr.py
Bazarr starting...
2021-01-12 22:34:35,341 - root (f74835d0) : INFO (init:110) - BAZARR Database created successfully
2021-01-12 22:34:46,330 - root (f74835d0) : INFO (driver:121) - Generating grammar tables from /usr/lib/python3.7/lib2to3/Grammar.txt
2021-01-12 22:34:46,474 - root (f74835d0) : INFO (driver:121) - Generating grammar tables from /usr/lib/python3.7/lib2to3/PatternGrammar.txt
2021-01-12 22:34:54,039 - root (f74835d0) : INFO (server:40) - BAZARR is started and waiting for request on http://0.0.0.0:6767/
If you’re referring to the installation of build-essential, it makes no difference where you are.
The easy way is to add the command to /etc/rc.local, just before the line exit 0
. I’d suggest you add a sleep 30
before running bazarr.py to give the network time to start.
I’ve tried adding it as follows using this guide: Five Ways to Run a Program On Your Raspberry Pi At Startup
However it will not start at startup. I did:
sudo nano /etc/rc.local
And in there, added the following
sleep 30
sudo python3 /opt/bazarr/bazarr.py &
So it looks like:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sleep 30
sudo python3 /opt/bazarr/bazarr.py &
exit 0
Manually starting it works fine. I’ve uploaded the logs at: https://paste.osmc.tv/esulucemiq
And I see the same starting and installing requirements loop coming back when I search for bazarr in the logs, maybe I should increase the sleep time?