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

SCIPY Install Error during "poetry install" #13

Open
matchstickboy opened this issue Sep 4, 2022 · 0 comments
Open

SCIPY Install Error during "poetry install" #13

matchstickboy opened this issue Sep 4, 2022 · 0 comments

Comments

@matchstickboy
Copy link

Hello,

I'm running into an issue with the installation of SCIPY (so it seems) when running the "poetry install" command. I'm not sure if it's a problem with the package or my environment. Is anyone able to shed some light on the following error output?

Thanks,

Chris


• Installing scipy (1.6.1): Failed

CalledProcessError

Command '['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/bin/python', '/home/tester/.local/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/pip-22.2.2-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10', '--no-deps', '/home/tester/.cache/pypoetry/artifacts/bc/74/e2/a22451059efb69c32be2d51a7727b1133375122dd7564e8a8e9df4f1cd/scipy-1.6.1.tar.gz']' returned non-zero exit status 1.

at /usr/lib/python3.10/subprocess.py:524 in run
520│ # We don't call process.wait() as .exit does that for us.
521│ raise
522│ retcode = process.poll()
523│ if check and retcode:
→ 524│ raise CalledProcessError(retcode, process.args,
525│ output=stdout, stderr=stderr)
526│ return CompletedProcess(process.args, retcode, stdout, stderr)
527│
528│

The following error occurred when trying to handle this error:

EnvCommandError

Command ['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/bin/python', '/home/tester/.local/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/pip-22.2.2-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10', '--no-deps', '/home/tester/.cache/pypoetry/artifacts/bc/74/e2/a22451059efb69c32be2d51a7727b1133375122dd7564e8a8e9df4f1cd/scipy-1.6.1.tar.gz'] errored with the following return code 1, and output:
Processing /home/tester/.cache/pypoetry/artifacts/bc/74/e2/a22451059efb69c32be2d51a7727b1133375122dd7564e8a8e9df4f1cd/scipy-1.6.1.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
    setup.py:461: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /tmp/pip-modern-metadata-21ez7qqo'), proceeding with generating Cython sources and expanding templates
      warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
    setup.py:563: DeprecationWarning:
    
      `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
      of the deprecation of `distutils` itself. It will be removed for
      Python >= 3.12. For older Python versions it will remain present.
      It is recommended to use `setuptools < 60.0` for those Python versions.
      For more details, see:
        https://numpy.org/devdocs/reference/distutils_status_migration.html
    
    
      from numpy.distutils.core import setup
    Running from SciPy source directory.
    INFO: lapack_opt_info:
    INFO: lapack_armpl_info:
    INFO: customize UnixCCompiler
    INFO:   libraries armpl_lp64_mp not found in ['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
    INFO:   NOT AVAILABLE
    INFO:
    INFO: lapack_mkl_info:
    INFO:   libraries mkl_rt not found in ['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
    INFO:   NOT AVAILABLE
    INFO:
    INFO: openblas_lapack_info:
    INFO:   libraries openblas not found in ['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
    INFO:   NOT AVAILABLE
    INFO:
    INFO: openblas_clapack_info:
    INFO:   libraries openblas,lapack not found in ['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
    INFO:   NOT AVAILABLE
    INFO:
    INFO: flame_info:
    INFO:   libraries flame not found in ['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
    INFO:   NOT AVAILABLE
    INFO:
    INFO: accelerate_info:
    INFO:   NOT AVAILABLE
    INFO:
    INFO: atlas_3_10_threads_info:
    INFO: Setting PTATLAS=ATLAS
    INFO:   libraries tatlas,tatlas not found in /home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib
    INFO:   libraries tatlas,tatlas not found in /usr/local/lib
    INFO:   libraries tatlas,tatlas not found in /usr/lib64
    INFO:   libraries tatlas,tatlas not found in /usr/lib
    INFO:   libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu
    INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
    INFO:   NOT AVAILABLE
    INFO:
    INFO: atlas_3_10_info:
    INFO:   libraries satlas,satlas not found in /home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib
    INFO:   libraries satlas,satlas not found in /usr/local/lib
    INFO:   libraries satlas,satlas not found in /usr/lib64
    INFO:   libraries satlas,satlas not found in /usr/lib
    INFO:   libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu
    INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
    INFO:   NOT AVAILABLE
    INFO:
    INFO: atlas_threads_info:
    INFO: Setting PTATLAS=ATLAS
    INFO:   libraries ptf77blas,ptcblas,atlas not found in /home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib
    INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
    INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
    INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib
    INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu
    INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
    INFO:   NOT AVAILABLE
    INFO:
    INFO: atlas_info:
    INFO:   libraries f77blas,cblas,atlas not found in /home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib
    INFO:   libraries f77blas,cblas,atlas not found in /usr/local/lib
    INFO:   libraries f77blas,cblas,atlas not found in /usr/lib64
    INFO:   libraries f77blas,cblas,atlas not found in /usr/lib
    INFO:   libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu
    INFO: <class 'numpy.distutils.system_info.atlas_info'>
    INFO:   NOT AVAILABLE
    INFO:
    INFO: lapack_info:
    INFO:   libraries lapack not found in ['/home/tester/.cache/pypoetry/virtualenvs/blue-jupyter-NE-QdkDt-py3.10/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
    INFO:   NOT AVAILABLE
    INFO:
    /tmp/pip-build-env-sravpze3/overlay/lib/python3.10/site-packages/numpy/distutils/system_info.py:1902: 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))()
    INFO: lapack_src_info:
    INFO:   NOT AVAILABLE
    INFO:
    /tmp/pip-build-env-sravpze3/overlay/lib/python3.10/site-packages/numpy/distutils/system_info.py:1902: 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))()
    INFO:   NOT AVAILABLE
    INFO:
    Traceback (most recent call last):
      File "/tmp/tmpufw41c6i_in_process.py", line 363, in <module>
        main()
      File "/tmp/tmpufw41c6i_in_process.py", line 345, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/tmp/tmpufw41c6i_in_process.py", line 164, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/tmp/pip-build-env-sravpze3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 161, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/tmp/pip-build-env-sravpze3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 253, in run_setup
        super(_BuildMetaLegacyBackend,
      File "/tmp/pip-build-env-sravpze3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 145, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 588, in <module>
        setup_package()
      File "setup.py", line 584, in setup_package
        setup(**metadata)
      File "/tmp/pip-build-env-sravpze3/overlay/lib/python3.10/site-packages/numpy/distutils/core.py", line 135, in setup
        config = configuration()
      File "setup.py", line 499, in configuration
        raise NotFoundError(msg)
    numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found.
    To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
    See site.cfg.example in the Scipy source directory and
    https://docs.scipy.org/doc/scipy/reference/building/index.html for details.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

at ~/.local/lib/python3.10/site-packages/poetry/utils/env.py:1473 in run
1469│ output = subprocess.check_output(
1470│ command, stderr=subprocess.STDOUT, env=env, **kwargs
1471│ )
1472│ except CalledProcessError as e:
→ 1473│ raise EnvCommandError(e, input=input
)
1474│
1475│ return decode(output)
1476│
1477│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

The following error occurred when trying to handle this error:

PoetryException

Failed to install /home/tester/.cache/pypoetry/artifacts/bc/74/e2/a22451059efb69c32be2d51a7727b1133375122dd7564e8a8e9df4f1cd/scipy-1.6.1.tar.gz

at ~/.local/lib/python3.10/site-packages/poetry/utils/pip.py:51 in pip_install
47│
48│ try:
49│ return environment.run_pip(*args)
50│ except EnvCommandError as e:
→ 51│ raise PoetryException(f"Failed to install {path.as_posix()}") from e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant