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.

pip install fails on Ubuntu

See original GitHub issue

Pip install on Ubuntu 16.04 with Python 2.7 fails the following error

Installing collected packages: quiver-engine
  Running setup.py install for quiver-engine ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Yr7lN5/quiver-engine/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-XVYrCV-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/quiver_engine
    copying quiver_engine/util.py -> build/lib.linux-x86_64-2.7/quiver_engine
    copying quiver_engine/server.py -> build/lib.linux-x86_64-2.7/quiver_engine
    copying quiver_engine/__init__.py -> build/lib.linux-x86_64-2.7/quiver_engine
    copying quiver_engine/layer_result_generators.py -> build/lib.linux-x86_64-2.7/quiver_engine
    copying quiver_engine/imagenet_utils.py -> build/lib.linux-x86_64-2.7/quiver_engine
    running egg_info
    writing requirements to quiver_engine.egg-info/requires.txt
    writing quiver_engine.egg-info/PKG-INFO
    writing top-level names to quiver_engine.egg-info/top_level.txt
    writing dependency_links to quiver_engine.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    
    reading manifest file 'quiver_engine.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'quiver_engine.egg-info/SOURCES.txt'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-Yr7lN5/quiver-engine/setup.py", line 20, in <module>
        'pillow'
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
        self.run_command('build')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
        self.run_command(cmd_name)
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 52, in run
        self.build_package_data()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 107, in build_package_data
        for package, src_dir, build_dir, filenames in self.data_files:
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 65, in __getattr__
        self.data_files = self._get_data_files()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 79, in _get_data_files
        return list(map(self._get_pkg_data_files, self.packages or ()))
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 91, in _get_pkg_data_files
        for file in self.find_data_files(package, src_dir)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 98, in find_data_files
        + self.package_data.get(package, []))
    TypeError: can only concatenate list (not "str") to list
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Yr7lN5/quiver-engine/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-XVYrCV-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Yr7lN5/quiver-engine/

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
ramakrishna-gitcommented, Dec 23, 2016

Update: It worked after following steps mentioned in similar issue thread for windows. Steps:

  1. clone the git repository locally.
  2. Replace ‘quiverboard/dist/’ with ['quiverboard/dist/’] in setup.py
  3. Installed with python setup.py install

The above problem got resolved. I faced another issue after the above steps, server was throwing 500 Internal server error while requesting /inputs url failing at code trying to jsonify list of files. Solution: Upgraded flask to 0.12 which adds the required jsonify(array) support.

Last issue faced was related to error while inferring input shape from model. Hardcoded the value single_input_shape = [200, 200] to make it work.

Cheers,

0reactions
jakebiancommented, Dec 23, 2016

Glad you were able to resolve you issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install error - python - Ask Ubuntu
You are installing pip with sudo but its using your user's home folder's python staging area. This can cause issues later on where...
Read more >
[Solved] pip command not found Ubuntu 20.04 - GoLinuxCloud
We discussed two main reasons due to which the pip: command not found error raised. First, the pip is not installed on your...
Read more >
Unable to install pip in ubuntu? - Stack Overflow
Try with this commands: sudo apt-get purge --auto-remove python-pip sudo apt-get update sudo apt-get -y install python-pip curl ...
Read more >
pip not working on ubuntu 18, how to fix that? - Server Fault
When I ran the pip command first, I got error as pip command not found. So, installed it using sudo apt install python-pip....
Read more >
pip install on latest ubuntu fails with error · Issue #398 - GitHub
Description: github actions for python 3.8 fails with the following error: ERROR: Invalid requirement: 'Warning: The lock flag' (from line 2 ...
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