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

Issue with Scipy #45

Closed
lonelyseraphim opened this issue Feb 24, 2020 · 45 comments · Fixed by #159
Closed

Issue with Scipy #45

lonelyseraphim opened this issue Feb 24, 2020 · 45 comments · Fixed by #159
Labels
external This issue is a result of external issues workaround-available Work around is available for this issue
Projects

Comments

@lonelyseraphim
Copy link

With version 5cc6e12 I recieve the following error, the Scripy setup fails out.

Mon Feb 24 2020 07:00:15 GMT-0600 (Central Standard Time) Setup failed for mail_and_packages: Requirements for mail_and_packages not found: ['scipy'].

`Log Details (ERROR)
Mon Feb 24 2020 07:00:15 GMT-0600 (Central Standard Time)
Unable to install package scipy: ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-bzzwm1d2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --find-links https://wheels.home-assistant.io/alpine-3.10/armv7/ -- wheel setuptools 'Cython>=0.29.13' 'numpy==1.13.3; python_version=='"'"'3.5'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.5'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'pybind11>=2.4.0'
cwd: None
Complete output (585 lines):
Keyring is skipped due to an exception: 'PosixPath' object has no attribute 'read_text'
Ignoring numpy: markers 'python_version == "3.5" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.5" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment
Looking in links: https://wheels.home-assistant.io/alpine-3.10/armv7/
Collecting wheel
Using cached https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/3d/72/1c1498c1e908e0562b1e1cd30012580baa7d33b5b0ffdbeb5fde2462cc71/setuptools-45.2.0-py3-none-any.whl
Collecting Cython>=0.29.13
Using cached https://wheels.home-assistant.io/alpine-3.10/armv7/Cython-0.29.15-cp37-none-any.whl
Collecting numpy==1.14.5
Using cached https://files.pythonhosted.org/packages/d5/6e/f00492653d0fdf6497a181a1c1d46bbea5a2383e7faf4c8ca6d6f3d2581d/numpy-1.14.5.zip
Collecting pybind11>=2.4.0
Using cached https://files.pythonhosted.org/packages/4b/4d/ae1c4d8e8b139afa9682054dd42df3b0e3b5c1731287933021b9fd7e9cc4/pybind11-2.4.3-py2.py3-none-any.whl
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-edp6jc_o/numpy/setup.py'"'"'; file='"'"'/tmp/pip-install-edp6jc_o/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-_zhebn1d --python-tag cp37
cwd: /tmp/pip-install-edp6jc_o/numpy/
Complete output (258 lines):
Running from numpy source directory.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
NOT AVAILABLE

blis_info:
customize UnixCCompiler
  libraries blis not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

openblas_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

atlas_3_10_blas_info:
customize UnixCCompiler
  libraries satlas not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

atlas_blas_info:
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

/tmp/pip-install-edp6jc_o/numpy/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()
blas_info:
customize UnixCCompiler
  libraries blas not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/system_info.py:624: 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.
  self.calc_info()
blas_src_info:
  NOT AVAILABLE

/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/system_info.py:624: 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.
  self.calc_info()
  NOT AVAILABLE

/bin/sh: svnversion: not found
non-existing path in 'numpy/distutils': 'site.cfg'
/bin/sh: svnversion: not found
F2PY Version 2
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
  libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
  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
<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
<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
<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
<class 'numpy.distutils.system_info.atlas_info'>
  NOT AVAILABLE

lapack_info:
customize UnixCCompiler
  libraries lapack not found in ['/usr/local/lib', '/usr/lib']
  NOT AVAILABLE

/tmp/pip-install-edp6jc_o/numpy/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()
lapack_src_info:
  NOT AVAILABLE

/tmp/pip-install-edp6jc_o/numpy/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()
  NOT AVAILABLE

/usr/local/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-armv7l-3.7
creating build/src.linux-armv7l-3.7/numpy
creating build/src.linux-armv7l-3.7/numpy/distutils
building library "npymath" sources
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgfortran
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize NAGFCompiler
customize VastFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PathScaleFCompiler
Could not locate executable pathf95
customize NAGFORCompiler
Could not locate executable nagfor
don't know how to compile Fortran code on platform 'posix'
C compiler: gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.7m -c'
gcc: _configtest.c
/bin/sh: gcc: not found
/bin/sh: gcc: not found
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-edp6jc_o/numpy/setup.py", line 394, in <module>
    setup_package()
  File "/tmp/pip-install-edp6jc_o/numpy/setup.py", line 386, in setup_package
    setup(**metadata)
  File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
    self.run_command('build')
  File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build.py", line 47, in run
    old_build.run(self)
  File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 148, in run
    self.build_sources()
  File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 159, in build_sources
    self.build_library_sources(*libname_info)
  File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 294, in build_library_sources
    sources = self.generate_sources(sources, (lib_name, build_info))
  File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 377, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 675, in get_mathlib_info
    raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
ERROR: Command errored out with exit status 1:
 command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-edp6jc_o/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-edp6jc_o/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
     cwd: /tmp/pip-install-edp6jc_o/numpy
Complete output (10 lines):
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).

----------------------------------------
ERROR: Failed cleaning build dir for numpy

Failed to build numpy
ERROR: hangups 0.4.9 has requirement protobuf<=3.6.1,>=3.1.0, but you'll have protobuf 3.11.3 which is incompatible.
ERROR: aiopylgtv 0.3.3 has requirement numpy>=1.17.0, but you'll have numpy 1.14.5 which is incompatible.
ERROR: aioesphomeapi 2.6.1 has requirement protobuf==3.6.1, but you'll have protobuf 3.11.3 which is incompatible.
Installing collected packages: wheel, setuptools, Cython, numpy, pybind11
Running setup.py install for numpy: started
Running setup.py install for numpy: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-edp6jc_o/numpy/setup.py'"'"'; file='"'"'/tmp/pip-install-edp6jc_o/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-jgec4uq8/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-bzzwm1d2/overlay --compile
cwd: /tmp/pip-install-edp6jc_o/numpy/
Complete output (267 lines):
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)


  blas_opt_info:
  blas_mkl_info:
  customize UnixCCompiler
    libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  blis_info:
  customize UnixCCompiler
    libraries blis not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  openblas_info:
  customize UnixCCompiler
  customize UnixCCompiler
    libraries openblas not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  atlas_3_10_blas_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
    libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  atlas_3_10_blas_info:
  customize UnixCCompiler
    libraries satlas not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  atlas_blas_threads_info:
  Setting PTATLAS=ATLAS
  customize UnixCCompiler
    libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  atlas_blas_info:
  customize UnixCCompiler
    libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  /tmp/pip-install-edp6jc_o/numpy/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()
  blas_info:
  customize UnixCCompiler
    libraries blas not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  /tmp/pip-install-edp6jc_o/numpy/numpy/distutils/system_info.py:624: 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.
    self.calc_info()
  blas_src_info:
    NOT AVAILABLE

  /tmp/pip-install-edp6jc_o/numpy/numpy/distutils/system_info.py:624: 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.
    self.calc_info()
    NOT AVAILABLE

  /bin/sh: svnversion: not found
  non-existing path in 'numpy/distutils': 'site.cfg'
  /bin/sh: svnversion: not found
  F2PY Version 2
  lapack_opt_info:
  lapack_mkl_info:
  customize UnixCCompiler
    libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  openblas_lapack_info:
  customize UnixCCompiler
  customize UnixCCompiler
    libraries openblas not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  openblas_clapack_info:
  customize UnixCCompiler
  customize UnixCCompiler
    libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
    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
  <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
  <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
  <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
  <class 'numpy.distutils.system_info.atlas_info'>
    NOT AVAILABLE

  lapack_info:
  customize UnixCCompiler
    libraries lapack not found in ['/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  /tmp/pip-install-edp6jc_o/numpy/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()
  lapack_src_info:
    NOT AVAILABLE

  /tmp/pip-install-edp6jc_o/numpy/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()
    NOT AVAILABLE

  /usr/local/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
  get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
  customize Gnu95FCompiler
  Could not locate executable gfortran
  Could not locate executable f95
  customize IntelFCompiler
  Could not locate executable ifort
  Could not locate executable ifc
  customize LaheyFCompiler
  Could not locate executable lf95
  customize PGroupFCompiler
  Could not locate executable pgfortran
  customize AbsoftFCompiler
  Could not locate executable f90
  Could not locate executable f77
  customize NAGFCompiler
  customize VastFCompiler
  customize CompaqFCompiler
  Could not locate executable fort
  customize IntelItaniumFCompiler
  Could not locate executable efort
  Could not locate executable efc
  customize IntelEM64TFCompiler
  customize GnuFCompiler
  Could not locate executable g77
  customize G95FCompiler
  Could not locate executable g95
  customize PathScaleFCompiler
  Could not locate executable pathf95
  customize NAGFORCompiler
  Could not locate executable nagfor
  don't know how to compile Fortran code on platform 'posix'
  C compiler: gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC

  compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.7m -c'
  gcc: _configtest.c
  /bin/sh: gcc: not found
  /bin/sh: gcc: not found
  failure.
  removing: _configtest.c _configtest.o
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-edp6jc_o/numpy/setup.py", line 394, in <module>
      setup_package()
    File "/tmp/pip-install-edp6jc_o/numpy/setup.py", line 386, in setup_package
      setup(**metadata)
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/core.py", line 169, in setup
      return old_setup(**new_attr)
    File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/install.py", line 62, in run
      r = self.setuptools_run()
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/install.py", line 36, in setuptools_run
      return distutils_install.run(self)
    File "/usr/local/lib/python3.7/distutils/command/install.py", line 545, in run
      self.run_command('build')
    File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build.py", line 47, in run
      old_build.run(self)
    File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 148, in run
      self.build_sources()
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 159, in build_sources
      self.build_library_sources(*libname_info)
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 294, in build_library_sources
      sources = self.generate_sources(sources, (lib_name, build_info))
    File "/tmp/pip-install-edp6jc_o/numpy/numpy/distutils/command/build_src.py", line 377, in generate_sources
      source = func(extension, build_dir)
    File "numpy/core/setup.py", line 675, in get_mathlib_info
      raise RuntimeError("Broken toolchain: cannot link a simple C program")
  RuntimeError: Broken toolchain: cannot link a simple C program
  ----------------------------------------

ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-edp6jc_o/numpy/setup.py'"'"'; file='"'"'/tmp/pip-install-edp6jc_o/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-jgec4uq8/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-bzzwm1d2/overlay --compile Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

ERROR: Command errored out with exit status 1: /usr/local/bin/python3 /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-bzzwm1d2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --find-links https://wheels.home-assistant.io/alpine-3.10/armv7/ -- wheel setuptools 'Cython>=0.29.13' 'numpy==1.13.3; python_version=='"'"'3.5'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.5'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'pybind11>=2.4.0' Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.`

@moralmunky
Copy link
Owner

Please provide information about your environment and home assistant install to provide context.

@aneisch
Copy link

aneisch commented Feb 24, 2020

Same issue.

2020-02-24 08:21:38 ERROR (MainThread) [homeassistant.setup] Setup failed for mail_and_packages: Requirements for mail_and_packages not found: ['scipy'].

I'm using the home assistant core container: homeassistant/home-assistant:stable

arch x86_64
dev false
docker true
hassio false
os_name Linux
python_version 3.7.6
timezone America/Chicago
version 0.105.5
virtualenv false

@aneisch
Copy link

aneisch commented Feb 24, 2020

I re-created my container and this seems to have resolved itself..

@lonelyseraphim
Copy link
Author

I am using HASSOS on a RPi.

Supervisor Version: 201
System: HassOS 3.11
Deployment: production

Home Assistant 0.105.5

arch armv7l
dev false
docker true
hassio true
os_name Linux
python_version 3.7.6
timezone America/Chicago
version 0.105.5
virtualenv false

@moralmunky
Copy link
Owner

moralmunky commented Feb 24, 2020

Curious if this is a docker related issue. I’m not familiar with the nuances of the docker setup. Are there specific steps that should be taken when installing additional python modules within a docker container?

@firstof9 firstof9 changed the title Issue with Scripy Issue with Scipy Feb 24, 2020
@firstof9
Copy link
Collaborator

Are there specific steps that should be taken when installing additional python modules within a docker container?

For HassIO (Home Assistant) there should be already pre-compiled whl files for the python packages. Normally they ship the container without the ability to compile it's own software (as far as I am aware) to make it faster and leaner.

I reviewed the https://wheels.home-assistant.io/alpine-3.10/armv7/ repo and there doesn't seem to be a scipy compiled for arm7, @aneisch has x86_64 for and pip is falling back to pypi to grab. There is however whl files on https://www.piwheels.org/simple/scipy/ for arm7.

This may require an issue raised with Home Assistant.

@firstof9 firstof9 added the external This issue is a result of external issues label Feb 24, 2020
@firstof9
Copy link
Collaborator

@lonelyseraphim there maybe a work around instead of waiting, if issue the command apk add gcc from the SSH addon it should allow the container to compile scipy.

I'm poking the Home Assistant guys about how to request wheels for their site.

@firstof9 firstof9 added the workaround-available Work around is available for this issue label Feb 24, 2020
@lonelyseraphim
Copy link
Author

I was able to use SSH to run the apk add gcc command and it appeared to install everything ok. However, upon reboot I receive a similar error:

Mon Feb 24 2020 11:25:17 GMT-0600 (Central Standard Time)
Setup failed for mail_and_packages: Requirements for mail_and_packages not found: ['scripy'].

AND

Mon Feb 24 2020 11:25:17 GMT-0600 (Central Standard Time)
Unable to install package scripy: ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gv_krwsi/scripy/setup.py'"'"'; file='"'"'/tmp/pip-install-gv_krwsi/scripy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-gv_krwsi/scripy/pip-egg-info
cwd: /tmp/pip-install-gv_krwsi/scripy/
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-gv_krwsi/scripy/setup.py", line 96, in
description=get_description(packages[0], PACKAGE_DIR),
File "/tmp/pip-install-gv_krwsi/scripy/setup.py", line 47, in get_description
pkg = import(package, level=1)
KeyError: "'name' not in globals"
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

@firstof9
Copy link
Collaborator

Hmmm almost looks like python3-dev might not be in there, give apk add python3-dev a shot, then instead of rebooting/restarting run pip install scipy

@lonelyseraphim
Copy link
Author

Looks like the python dev installed ok but I can't pip.

error

@aneisch
Copy link

aneisch commented Feb 24, 2020

if you apk add python3-dev and/or gcc you should be able to simply restart home assistant and it will auto-satisfy dependencies.

@firstof9
Copy link
Collaborator

firstof9 commented Feb 24, 2020

I was under the impression they exposed pip in the shell.

@lonelyseraphim keep in mind until there's scipy in the wheel archive you'll need to run apk add python3-dev gcc each update to Home Assistant.

Still waiting for a reply from the devs about my question as well.

@lonelyseraphim
Copy link
Author

I rolled back to the pre Scipy version for now to keep things running. Will continue to check in and report back with updates.

@firstof9
Copy link
Collaborator

Lets keep this issue open until there's a reply from the HA devs

@FuzzyMistborn
Copy link
Contributor

Toss my hat in on this one (docker). Updated image, rolled back to 0.1.0 and still getting error. Even tried apk add python3-dev gcc and restart, still getting error.

@FuzzyMistborn
Copy link
Contributor

I undid 84fc5da for now as I had trouble rolling back to 0.7.0. Hopefully that will work for now.

@firstof9
Copy link
Collaborator

@FuzzyMistborn are you also on a Pi?

@FuzzyMistborn
Copy link
Contributor

Nope, x86

arch x86_64
dev false
docker true
hassio false
os_name Linux
python_version 3.7.6
version 0.105.5
virtualenv false

@firstof9
Copy link
Collaborator

I'm testing with apk add build-base python3-dev gcc on my docker instance looking promising.

@FuzzyMistborn
Copy link
Contributor

Looks like rolling back the commit worked for now. Will test apk add build-base python3-dev gcc tonight/when I have some more time.

@firstof9
Copy link
Collaborator

Didn't work, still missing something 👎

@FuzzyMistborn
Copy link
Contributor

I might suggest rolling out a release that removes 84fc5da for now until we figure out the cause/solution for this issue.

@moralmunky
Copy link
Owner

That would mean we keep the gif creation using imageio and loose the resizing? Are you able to see if you can add the PIL module referenced on this page without issue inside of docker?

@FuzzyMistborn
Copy link
Contributor

That would mean we keep the gif creation using imageio and loose the resizing?

For now yes. I think having a release that works for folks is more important than the resize. But that's just my own opinion (as I also had issues rolling back via HACS and had to do things manually).

Are you able to see if you can add the PIL module referenced on this page without issue inside of docker?

Won't have time tonight. Maybe tomorrow.

@firstof9
Copy link
Collaborator

firstof9 commented Feb 26, 2020

Are you able to see if you can add the PIL module referenced on this page without issue inside of docker?

PR #47 submitted to revert scipy and add GIF duration configurable
No image resize currently

We get proper entities now with this update as well:
image

@firstof9
Copy link
Collaborator

0.1.2 released, I'll keep poking away at image resizing and poking the HA devs about their docker image whl files.

@firstof9
Copy link
Collaborator

firstof9 commented Feb 28, 2020

Further investigating this issue, the reason scipy won't install is due to the docker image being based on Alpine 3.10 apparently it'll install properly in 3.11

Reference:
scipy/scipy#9481

@FuzzyMistborn
Copy link
Contributor

FuzzyMistborn commented Feb 28, 2020

Nice find. So we'll need to get the base HASS docker image updated to build on 3.11 alpine.

@firstof9
Copy link
Collaborator

Or make your own dockerfile

@FuzzyMistborn
Copy link
Contributor

True but that's time consuming :-)

And hmmm...looks like they added Alpine 3.11 back in December: home-assistant/docker-base#55

@firstof9
Copy link
Collaborator

firstof9 commented Feb 28, 2020

If you open docker shell into the container and cat /etc/os-release it says alpine 3.10 👎

@FuzzyMistborn
Copy link
Contributor

Huh, wonder why they aren't basing off 3.11 then with that commit.

@firstof9
Copy link
Collaborator

firstof9 commented Feb 28, 2020

I guess you could nab the docker file from their repo ie:
https://github.com/home-assistant/docker-base/blob/master/alpine/armv7/Dockerfile

and on a Pi docker-compose 3.11 I think would cause it to nab alpine 3.11

I'll give it a shot later tonight/tomorrow

@lonelyseraphim
Copy link
Author

When I do apk add docker-compse and it installs after reboot I get the following error. I don't seem to get any scripy error now at least.

`Logger: homeassistant.components.sensor
Integration: Sensor (documentation, issues)
First occured: 2:43:07 PM (1 occurences)
Last logged: 2:43:07 PM

Error while setting up mail_and_packages platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/config/custom_components/mail_and_packages/sensor.py", line 64, in async_setup_entry
CONF_DURATION: entry.data[CONF_DURATION]
KeyError: 'gif_duration'`

@firstof9
Copy link
Collaborator

firstof9 commented Mar 1, 2020

When I do apk add docker-compse and it installs after reboot I get the following error. I don't seem to get any scripy error now at least.

Remove and re-add the integration that'll fix the error.
I'm still working out the reconfigure without remove/re-adding.

@FuzzyMistborn
Copy link
Contributor

Just fyi, something I noticed as I had several pieces of mail today I didn't get that scrambled image I was getting before. I wonder if scipy/resizing was causing that problem too.

@firstof9
Copy link
Collaborator

firstof9 commented Mar 2, 2020

From what I can tell it seems it maybe a alpine issue some how, my venv install on RPi3 was working fine.

@firstof9 firstof9 mentioned this issue Jun 16, 2020
5 tasks
@firstof9
Copy link
Collaborator

There's new resize code in the latest beta, has anyone noticed any issues with the images that were occurring before with the scrambled image? @FuzzyMistborn @lonelyseraphim

@FuzzyMistborn
Copy link
Contributor

Not running it atm, will let you know when I do.

@moralmunky
Copy link
Owner

This is working nicely. The large square items are being resize and centered.

@firstof9
Copy link
Collaborator

@moralmunky should help with the video generation as well. How's that look?

@moralmunky
Copy link
Owner

The only think I've noticed is that it appears they are being saves out with a reduced color palette at some point in the process.

@firstof9
Copy link
Collaborator

It's part of the resizer, it's using the Lanczos filter to upscale/downscale as needed, but I've noticed the images appear far more clear and easier to read the text.

@moralmunky
Copy link
Owner

Most of the USPS image don't have much contrast and it does improve readability.Reading up, It looks like that is the default behavior of resize_contain()?

@firstof9
Copy link
Collaborator

Correct, the full list of options are: NEAREST, BILINEAR, BICUBIC, LANCZOS

@firstof9 firstof9 added this to To do in 0.2.x via automation Jun 20, 2020
@firstof9 firstof9 moved this from To do to In progress in 0.2.x Jun 20, 2020
@firstof9 firstof9 mentioned this issue Jun 21, 2020
5 tasks
0.2.x automation moved this from In progress to Done Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external This issue is a result of external issues workaround-available Work around is available for this issue
Projects
No open projects
0.2.x
  
Done
Development

Successfully merging a pull request may close this issue.

5 participants