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

Crashes on invocation #27

Closed
dschuessler opened this issue May 11, 2019 · 19 comments
Closed

Crashes on invocation #27

dschuessler opened this issue May 11, 2019 · 19 comments
Assignees

Comments

@dschuessler
Copy link

$ pipupgrade
Checking...
Traceback (most recent call last):
  File "/usr/local/bin/pipupgrade", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/pipupgrade/cli/__init__.py", line 14, in wrapper
    return fn(**params)
  File "/usr/local/lib/python3.7/site-packages/pipupgrade/commands/__init__.py", line 162, in command
    format = "json", pip_exec = pip_)
  File "/usr/local/lib/python3.7/site-packages/pipupgrade/_pip.py", line 65, in call
    return popen(*params, output = True)
  File "/usr/local/lib/python3.7/site-packages/pipupgrade/util/system.py", line 69, in popen
    raise sp.CalledProcessError(code, command)
subprocess.CalledProcessError: Command 'None list --outdated --format json' returned non-zero exit status 127.

Also happens with no flags and --latest --yes

macOS 10.14.4
Python 3.7.3
pip 19.0.3

@micgro42
Copy link

I have that problem on Ubuntu as well:

$pipupgrade --latest --interactive
Checking...
Traceback (most recent call last):
  File "/home/migr/.local/bin//pipupgrade", line 11, in <module>
    sys.exit(main())
  File "/home/migr/.local/lib/python2.7/site-packages/pipupgrade/cli/__init__.py", line 14, in wrapper
    return fn(**params)
  File "/home/migr/.local/lib/python2.7/site-packages/pipupgrade/commands/__init__.py", line 162, in command
    format = "json", pip_exec = pip_)
  File "/home/migr/.local/lib/python2.7/site-packages/pipupgrade/_pip.py", line 65, in call
    return popen(*params, output = True)
  File "/home/migr/.local/lib/python2.7/site-packages/pipupgrade/util/system.py", line 69, in popen
    raise sp.CalledProcessError(code, command)
subprocess.CalledProcessError: Command 'None list --outdated --format json' returned non-zero exit status 127

Ubuntu 4.15.0-43-generic
Python 2.7.15rc1
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

@binarykitchen
Copy link

Same problem here. Happened right after I switched from python v3.7.2 to v3.7.3 using pyenv.

@achillesrasquinha
Copy link
Owner

Hi everyone, thank you for tracking this issue down. I'll respond at the earliest!

@achillesrasquinha achillesrasquinha self-assigned this May 15, 2019
@achillesrasquinha
Copy link
Owner

pipupgrade version?

@dschuessler
Copy link
Author

1.5.0

@achillesrasquinha
Copy link
Owner

Can you try adding a pip-path as your option and does that work?

$ pipupgrade --pip-path pip [OPTIONS]

@dschuessler
Copy link
Author

I think so:

pipupgrade --pip-path pip
Checking...

Source: Installed Distributions (/usr/local/opt/python/libexec/bin/pip)

Name              Current Version Latest Version Home Page                                                               
----------------- --------------- -------------- ------------------------------------------------------------------------
astroid           2.1.0           2.2.5          https://github.com/PyCQA/astroid                                        
[...]                                      
wrapt             1.10.11         1.11.1         https://github.com/GrahamDumpleton/wrapt                                

Do you wish to update 20 packages? [Y/n/q]: 

@achillesrasquinha
Copy link
Owner

The expected behaviour is pipupgrade detects pip executables for you and attempts to upgrade all packages within their corresponding environments. This behaviour can be overridden using the --pip-path option. However, I'm guessing that pipupgrade wasn't able to detect a valid pip executable for you. Hence, None list --outdated --format json.

I'll take a look into it and dispatch a fix as soon as possible! :)

@achillesrasquinha
Copy link
Owner

@slw07g recommended this earlier at #13

@achillesrasquinha
Copy link
Owner

This has been fixed. Pending for release. Please use pipupgrade --self and try again.

@achillesrasquinha
Copy link
Owner

Released with 1.5.1

@dschuessler
Copy link
Author

$ pipupgrade --self
Checking...
pipupgrade upto date.

pipupgrade seems not aware of your update.

@achillesrasquinha
Copy link
Owner

$ pipupgrade --version?

@dschuessler
Copy link
Author

$ pipupgrade --version
1.5.0

@achillesrasquinha
Copy link
Owner

achillesrasquinha commented Jun 6, 2019

Can you try it now? pipupgrade --self and then check the version again?

@dschuessler
Copy link
Author

dschuessler commented Jun 6, 2019 via email

@achillesrasquinha
Copy link
Owner

@dschuessler

Could you update it manually otherwise

$ pip install --upgrade --no-cache pipupgrade

@dschuessler
Copy link
Author

dschuessler commented Jun 18, 2019 via email

@achillesrasquinha
Copy link
Owner

achillesrasquinha commented Jun 19, 2019

Great! Please repopen if persists.

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

4 participants