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

Non zipsafe dependencies for plugins aren't extracted out of eggs #4428

Closed
toddgardner opened this issue Apr 5, 2017 · 1 comment
Closed

Comments

@toddgardner
Copy link

If you create a plugin that requires a non-zipsafe dependency, pants will attempt to run it from an egg, which messes up packages like boto and boto3:

  File "build/bdist.macosx-10.12-x86_64/egg/boto3/session.py", line 347, in resource
    has_low_level_client)

Exception message: The 's3' resource does not exist.
The available resources are:
   - 

These need to be extracted to the local filesystem before being used.

As a workaround, these dependencies can be installed into the pants virtualenv directly by modifying the pants setup script.

@jsirois
Copy link
Member

jsirois commented Jun 25, 2018

Sorry for the large delay getting to this @toddgardner. It looks like this should have been solved by #4887 which flipped plugin installation to using wheels which are properly installed on the filesystem instead of being accessed through their zipped .whl file. I'll mark this as closed but please speak up if you find otherwise.

@jsirois jsirois closed this as completed Jun 25, 2018
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

2 participants