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

Exception: pip returned unsuccessfully #121

Open
bittlingmayer opened this issue Dec 1, 2016 · 5 comments
Open

Exception: pip returned unsuccessfully #121

bittlingmayer opened this issue Dec 1, 2016 · 5 comments
Assignees

Comments

@bittlingmayer
Copy link

I just saw this error:

Adams-MacBook-Pro:lambda bittlingmayer$ lambda-uploader
λ Building Package
�� Unexpected error. Please report this traceback.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/lambda_uploader/shell.py", line 173, in main
_execute(args)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/lambda_uploader/shell.py", line 73, in _execute
venv, cfg.ignore, extra_files)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/lambda_uploader/package.py", line 47, in build_package
pkg.build(ignore)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/lambda_uploader/package.py", line 68, in build
self.install_dependencies()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/lambda_uploader/package.py", line 141, in install_dependencies
self._install_requirements()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/lambda_uploader/package.py", line 208, in _install_requirements
raise Exception('pip returned unsuccessfully')
Exception: pip returned unsuccessfully

When I ran it again, there was no error, and the upload was successful.

pip is installed and working normally on my machine.

@martinb3
Copy link
Contributor

martinb3 commented Dec 1, 2016

Is this repeatable, or only happened once? We'd also need to see the output of trying to pip install the requirements for your project, as this exception is simply pip failing on your machine.

@jarosser06
Copy link
Contributor

Along with what Martin mentioned we would need to see it run with Debug logs so we can see the pip failure.

@bittlingmayer
Copy link
Author

I only saw it once. May make sense to change that error message to also surface the error message from the pip failure, so that next dev who follows the instruction to report the stacktrace will include it by default.

@jarosser06
Copy link
Contributor

I was thinking it may be beneficial to do that as well so I'll look at getting that changed.

@brandond
Copy link
Contributor

brandond commented Dec 4, 2016

Easy to reproduce by trying to install a C-based Python module without the appropriate libraries and/or headers installed.

@jarosser06 jarosser06 self-assigned this Jan 5, 2017
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