PyCrypto Library for python2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppScale |
Fix Committed
|
High
|
Vaibhav Arora |
Bug Description
There is an import error for pycrypto.
Here is a potential solution by Vaibhav:
1- Download and extract Pcrypto to a temp Library L
I used http://
2 - Go to the temp Library L
And typed "/usr/bin/python setup.py install --install-lib PATH_TO_APP_DIR", where PATH_TO_APP_DIR is the top level directory of the app
I tested the solution first with Sdk of Gae :
python2.5 ../dev_appserver.py guestbook/ --port=8090 --address=
This works.
Then I tested with Appscale .
Adding the import line - "from Crypto.Cipher import AES" to the guestbook App and tried to deploy guestbook app on Appscale , but it showed an ImportError.
After that I nstalled the lib on guestbook App directory and again tried to run an AppScale instance which deploys guestbook . And the app now comes up without any import errors.
I have also tried 1 generic solution , where you dont have to do it for each app , but that one doesn't work
Changed in appscale: | |
status: | In Progress → Invalid |
status: | Invalid → In Progress |
Changed in appscale: | |
status: | In Progress → Fix Committed |
This work around seems to work. I now applied it directly into the deployed application. But your work around implies that this is performed in the app before it is packaged into a tar, correct ?