PyCrypto Library for python2.5

Bug #915175 reported by Navraj Chohan
6
This bug affects 1 person
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://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz

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=128.111.55.230

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

Revision history for this message
Geert Audenaert (geert-f) wrote :

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 ?

Revision history for this message
Vaibhav Arora (vaibhavarora-nitt) wrote :

  Geert,

          Ya either you can upload an app from command line without packaging into tar .

        And if u want to tar , yes you will have to install the pcrypto library and then package it into a tar after that and upload.

Vaibhav

Changed in appscale:
status: In Progress → Invalid
status: Invalid → In Progress
Changed in appscale:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.