Reputation: 183
all. I am unable to use pycrypto lib which supposed to come with GAE. In my app.yaml:
libraries:
- name: pycrypto
version: latest
In my code:
from Crypto.Cipher import AES
This will give me a module not found error. It appears this will happen on any module that is not under C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\lib
But the package is listed under the GAE supported libraries like webapp2 and others which I do not have such problems. https://cloud.google.com/appengine/docs/python/tools/libraries27
There was an issue for a much older version which should be fixed. Issue number 1627.
The issue was fixed by 1.7.4. And I am on 1.9.17.
Anyone ran into this problem as well that could please provide a solution? Thanks!
Upvotes: 0
Views: 656
Reputation: 2536
Do a pip install pycrypto
(or whatever you are normally doing to install new modules) locally and you'll be able to use pycryto
. I know this contradicts to the regular way you use third-party libs that are supposedly already built-in in GAE but the pycrypt
module doesn't seem to apply to that.
Upvotes: 1