question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation with pip fails (on Arch Linux)

See original GitHub issue

I wanted to setup a development build for pandas, but this fails because of an installation error in bottleneck.

First, I set up a virtual environment. Then pip install bottleneck gives me this error:

Collecting bottleneck
  Using cached https://files.pythonhosted.org/packages/b8/d9/2b0beb43e0f8b25624699f918d6b00e53c46812da911eb15ec9ffebf1917/Bottleneck-1.3.0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /home/alex/Projects/virtualenvs/pandas-dev/bin/python /home/alex/Projects/virtualenvs/pandas-dev/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpfzm0irx4
         cwd: /tmp/pip-install-hvrtun08/bottleneck
    Complete output (75 lines):
    running dist_info
    creating /tmp/pip-modern-metadata-jm_6d26f/Bottleneck.egg-info
    writing /tmp/pip-modern-metadata-jm_6d26f/Bottleneck.egg-info/PKG-INFO
    writing dependency_links to /tmp/pip-modern-metadata-jm_6d26f/Bottleneck.egg-info/dependency_links.txt
    writing requirements to /tmp/pip-modern-metadata-jm_6d26f/Bottleneck.egg-info/requires.txt
    writing top-level names to /tmp/pip-modern-metadata-jm_6d26f/Bottleneck.egg-info/top_level.txt
    writing manifest file '/tmp/pip-modern-metadata-jm_6d26f/Bottleneck.egg-info/SOURCES.txt'
    Traceback (most recent call last):
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/core/__init__.py", line 16, in <module>
        from . import multiarray
    ImportError: /tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/core/multiarray.cpython-38-x86_64-linux-gnu.so: undefined symbol: cblas_cdotc_sub
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/alex/Projects/virtualenvs/pandas-dev/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
        main()
      File "/home/alex/Projects/virtualenvs/pandas-dev/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/home/alex/Projects/virtualenvs/pandas-dev/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 110, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 156, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 236, in run_setup
        super(_BuildMetaLegacyBackend,
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 196, in <module>
        setup(**metadata)
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib64/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib64/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/command/dist_info.py", line 31, in run
        egg_info.run()
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 296, in run
        self.find_sources()
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 303, in find_sources
        mm.run()
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 534, in run
        self.add_defaults()
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 570, in add_defaults
        sdist.add_defaults(self)
      File "/usr/lib64/python3.8/distutils/command/sdist.py", line 228, in add_defaults
        self._add_defaults_ext()
      File "/usr/lib64/python3.8/distutils/command/sdist.py", line 311, in _add_defaults_ext
        build_ext = self.get_finalized_command('build_ext')
      File "/usr/lib64/python3.8/distutils/cmd.py", line 299, in get_finalized_command
        cmd_obj.ensure_finalized()
      File "/usr/lib64/python3.8/distutils/cmd.py", line 107, in ensure_finalized
        self.finalize_options()
      File "setup.py", line 75, in finalize_options
        import numpy
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/__init__.py", line 142, in <module>
        from . import add_newdocs
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/add_newdocs.py", line 13, in <module>
        from numpy.lib import add_newdoc
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/lib/__init__.py", line 8, in <module>
        from .type_check import *
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/lib/type_check.py", line 11, in <module>
        import numpy.core.numeric as _nx
      File "/tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/core/__init__.py", line 26, in <module>
        raise ImportError(msg)
    ImportError:
    Importing the multiarray numpy extension module failed.  Most
    likely you are trying to import a failed build of numpy.
    If you're working with a numpy git repo, try `git clean -xdf` (removes all
    files not under version control).  Otherwise reinstall numpy.
    
    Original error was: /tmp/pip-build-env-40hp1wwq/overlay/lib/python3.8/site-packages/numpy/core/multiarray.cpython-38-x86_64-linux-gnu.so: undefined symbol: cblas_cdotc_sub
    
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/alex/Projects/virtualenvs/pandas-dev/bin/python /home/alex/Projects/virtualenvs/pandas-dev/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpfzm0irx4 Check the logs for full command output.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gogglecommented, Feb 22, 2020

Thanks @qwhelan, now installing bottleneck via pip in a virtual environment works without any errors.

0reactions
rdbismecommented, Feb 18, 2022

@abhishekshingadiya can you provide the steps you followed and the output of the commands in order to have a detailed reproduction? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Fail to install python-pip / Pacman & Package ...
I tried to install pip3 by using pacman. But I got 404 from mirror site. Look like 'python-msgpack-1.0.2-4-x86_64.pkg.tar.zst' is not exist.
Read more >
How do I install pip on arch linux? - python - Stack Overflow
NOTE: for python 2.7 you would need to install python2-pip instead of python-pip . Save this answer.
Read more >
Pip stopped working on Arch Linux - Unix Stack Exchange
I have mixed Arch packages with Pip packages which I shouldn't do, but now executing Pip outside of virtual environment shows this error...
Read more >
Pip not letting any package install : r/archlinux - Reddit
When I run pip install <package>, pip will download every version of the package and then fail with: ERROR: Could not find a...
Read more >
Getting Started with PIP on ArchLinux - Linux Hint
PIP is a large suite of tools that are used to automate the installation and management of python packages and modules. It is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found