-
Notifications
You must be signed in to change notification settings - Fork 28
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
returned non-zero exit status 1 #36
Comments
Same for Windows 10, python 3 64 bits
|
Similar issue for me. MacOS 10.14.6. It started out OK, but then died when trying to update GDAL.
|
Ubuntu 19.04, with pip3 in anaconda.
This should be improved in the following way:
|
@jocago, I suggest adding this to the issue text. This is the desired behaviour. A switch |
I'm running pipupgrade 1.5.2 and get a similar error:
|
pipupgrade/src/pipupgrade/commands/helper.py Line 307 in 392ead7
This happens because on line 308 on the file /src/pipupgrade/commands/helper.py an exception is raised if subprocess.Popen returns non-0 value. So, the solution would be adding something like: except PopenError as e:
if(type(e) == subprocess.CalledProcessError):
print(f"Non-zero value returned by pip while updating {package.name}")
elif raise_err:
raise I'll create a pull request (If I find how). |
Pull request created: #99 |
Ran pipupgrade --latest
Python 3.6 on macOS 10.14.6 (18G87)
Traceback (most recent call last):
File "/anaconda3/bin/pipupgrade", line 10, in
sys.exit(main())
File "/anaconda3/lib/python3.6/site-packages/pipupgrade/cli/init.py", line 14, in wrapper
return fn(**params)
File "/anaconda3/lib/python3.6/site-packages/pipupgrade/commands/init.py", line 260, in command
_pip.call("install", package.name, pip_exec = package.source, user = user, quiet = not verbose, no_cache_dir = True, upgrade = True)
File "/anaconda3/lib/python3.6/site-packages/pipupgrade/_pip.py", line 69, in call
return popen(*params, output = True)
File "/anaconda3/lib/python3.6/site-packages/pipupgrade/util/system.py", line 70, in popen
raise sp.CalledProcessError(code, command)
subprocess.CalledProcessError: Command '/anaconda3/bin/pip install normality --quiet --no-cache-dir --upgrade' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: