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 doesn't

See original GitHub issue

MacOS 10.14.6, Brew Python 3.7.4

adam@air-wired:~$ mkvirtualenv -p $(which python3) ginga
Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7'
/usr/local/lib/python2.7/site-packages/virtualenv.py:1047: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
New python executable in /Users/adam/Documents/src/Venvs/ginga/bin/python3.7
Also creating executable in /Users/adam/Documents/src/Venvs/ginga/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/ginga/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/ginga/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/ginga/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/ginga/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/adam/Documents/src/Venvs/ginga/bin/get_env_details
(ginga) adam@air-wired:~$ pip install ginga --no-cache
Collecting ginga
  Downloading https://files.pythonhosted.org/packages/a4/f8/0782723e7557bf5b5b6b09c711ad6e757a8e25968d8e025fcc4c1290e155/ginga-3.0.0.tar.gz (22.2MB)
     |██████████████▎                 | 10.0MB 1.5MB/s eta 0:00:0     

[[[ Download progress snipped ]]]

|████████████████████████████████| 22.2MB 1.5MB/s
    ERROR: Command errored out with exit status 1:
     command: /Users/adam/Documents/src/Venvs/ginga/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g5/74rpcxx56x54p7n1nx3wpykh0000gn/T/pip-install-cb6y4hak/ginga/setup.py'"'"'; __file__='"'"'/private/var/folders/g5/74rpcxx56x54p7n1nx3wpykh0000gn/T/pip-install-cb6y4hak/ginga/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 pip-egg-info
         cwd: /private/var/folders/g5/74rpcxx56x54p7n1nx3wpykh0000gn/T/pip-install-cb6y4hak/ginga/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/g5/74rpcxx56x54p7n1nx3wpykh0000gn/T/pip-install-cb6y4hak/ginga/setup.py", line 50, in <module>
        cmdclassd = register_commands()
    TypeError: register_commands() missing 3 required positional arguments: 'package', 'version', and 'release'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
athorntoncommented, Sep 23, 2019

Doing a pip install from GitHub 3.0.0 in a clean virtualenv works. So it clearly is the PyPi packaging.

Unlike NPM I think PyPi packages are immediately immutable, so the best you can do, I think, is a fast-follower release and delete the 3.0.0 package from PyPi. I am not entirely sure of that, though.

0reactions
athorntoncommented, Sep 24, 2019

3.0.1 installs fine. We can close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix PIP Install Not Working? - TechNewsToday
The most common reasons for issues with PIP installations is either that an incorrect PIP path is added to the PATH system variable,...
Read more >
4 Ways to Fix the Pip Install Not Working Issue
How to Fix the Pip Install Not Working Issue · Open Command Prompt. · Execute the command “python -v”. It will tell you...
Read more >
pip not working in Python Installation in Windows 10
In short, pip doesn't work and I am stuck. I get Syntaxerror: invalid syntax. pip is preinstalled in my Python. confirmed this with...
Read more >
How to Fix 'Pip' is Not Recognized as an Internal or External ...
This error usually means there's a problem with the Python installation or the system variable PATH is not set up correctly. Try reinstalling ......
Read more >
How to Install Pip on Windows - ActiveState
One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot...
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