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.

Problem

When attempting to install pyusb v1.1.0 as a dependency offline, pip is unable to find a version for installation, which causes the install to fail.

Reproducing error

The following is run under Ubuntu 18.04:

$ python3 -m venv venv && cd venv && source bin/activate
$ python --version
Python 3.6.9
$ pip install -U setuptools pip && pip list
...
Package       Version
------------- -------
pip           20.3
pkg-resources 0.0.0
setuptools    50.3.2
$ pip download setuptools_scm pyusb
...
Saved ./pyusb-1.1.0.tar.gz
Saved ./setuptools_scm-4.1.2-py2.py3-none-any.whl
Saved ./setuptools-50.3.2-py3-none-any.whl
Successfully downloaded pyusb setuptools-scm setuptools
$ pip install pyusb-1.1.0.tar.gz --no-index -f .
Looking in links: .
Processing ./pyusb-1.1.0.tar.gz
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/user/venv/bin/python3 /home/user/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-sfmrtu9a/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links . -- 'setuptools>=30.3.0' wheel setuptools_scm
       cwd: None
  Complete output (3 lines):
  Looking in links: .
  ERROR: Could not find a version that satisfies the requirement wheel
  ERROR: No matching distribution found for wheel
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/user/venv/bin/python3 /home/user/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-sfmrtu9a/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links . -- 'setuptools>=30.3.0' wheel setuptools_scm Check the logs for full command output.

Comments

I’m not sure if this is a setuptools_scm problem or a pyusb problem, but wanted to bring the issue to your attention as pyusb has switched to setuptools_scm.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jonasmalacofilhocommented, Dec 5, 2020

@ap--

Yeah, 3 is probably a good enough solution.

Thanks for looking into this.

1reaction
jonasmalacofilhocommented, Nov 30, 2020

That makes sense.

And thank you for looking into this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"pip install unroll": "python setup.py egg_info" failed with error ...
Open a command prompt in elevated mode (run as administrator) · Firstly do pip install ez_setup · Then do pip install unroll (It...
Read more >
Python Setup.py egg_info Failed with Error Code 1? [Fixed]
What causes the python setup.py egg_info failed with error code 1? According to user reports, the error often occurs when your pip or...
Read more >
'Command "python setup.py egg_info" failed with error code 1 ...
The error code 1 is defined as Operation not permitted in python standard errno system symbols. This issue is mostly caused when your ......
Read more >
Command "python setup.py egg_info" failed with ... - GitHub
This means that your setuptools are out of date. You can fix this by doing: pip install --upgrade setuptools.
Read more >
Fix Command python setup.py egg_info failed with error code 1
Fix Command python setup.py egg_info failed with error code 1 · Check if PIP and Setuptools are installed. · Upgrade PIP and Setuptools...
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