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

Adding pyzipper to lambda layer #5

Closed
mjnsr opened this issue May 23, 2019 · 4 comments
Closed

Adding pyzipper to lambda layer #5

mjnsr opened this issue May 23, 2019 · 4 comments

Comments

@mjnsr
Copy link

mjnsr commented May 23, 2019

I have tried to add pyzipper as an dependency for my AWS lambda layer:
pipenv install pyzipper
ERROR: Could not find a version that matches p7zip-full No versions found
I am not sure but the package seems to depend on the zipfile package rather than p7zip? I have tried to simply satisfy the requirement but this did not work.

@danifus
Copy link
Owner

danifus commented May 23, 2019

Hi mjnsr,

There is no dependency on p7zip in this package. This zip implementation is based on Python's zipfile module and uses pycryptodomex as its only dependency. So if Python's zipfile works and you are able to install pycryptodomex, this package should work too.

@danifus danifus closed this as completed May 23, 2019
@mjnsr
Copy link
Author

mjnsr commented May 23, 2019

Yes, it did not work with:
pip3 install pyzipper
pipenv install pyzipper
However, this worked just fine:
sudo pip3 install git+https://github.com/danifus/pyzipper.git#egg=pyzipper
pipenv install pyzipper
I can't really say why and what but the github clone works fine. Thanks for the work and letting me encrypt files!

@danifus
Copy link
Owner

danifus commented May 24, 2019

Yeah, that is strange behaviour. I'll keep an eye out to see if it happens anywhere else. Has this happened in any other environment for you (outside of aws lambda layer)?

Glad you like using the package!

@mjnsr
Copy link
Author

mjnsr commented May 25, 2019

It happened on an AWS EC2 AMI Linux 2 instance. I found that specifically Pandas has to be packaged on Amazon's machines in order to work as a Lambda layer. Thus, I went straight to their machines.
I had no problem testing locally. However, we get a complete 7zip install by default and I was not sure what exactly was part of the package. The error sounded plausible to begin with but checking the code...

And yes, there was no such thing as an easily available encryption method that allows decryption with standard software tools. I was really glad having spotted your package.

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