AppEngine server cannot import atom module

I have the gdata library installed on my ArchLinux and a simple application that imports the atom library at the beginning when I start the gapp engine and access this web application,

$ python2.5. / dev_appserver.py ~ / myapp

It throws an exception "There is no module named atom". But when I run "import atom" interactively in Python2.5, it works well. How can I import an atomic module in GAppEngine applications?

+3
source share
1 answer

atom.py , GAE Python, , . ( , appcfg.py update myapp/, , , --verbose , , ).

(, , zip zip sys.path, . zipimport ).

, atom.py, ; , .. (. modulefinder Python ).

atom , , , import, - __init__.py , ; ( zipimport , , , zip -r Linux).

( - ), C- ( .so .pyd, Python, Python), , GAE (. ), Python GAE, GAE , Python. , , GAE, pure-Python , .

+11

Source: https://habr.com/ru/post/1712011/


All Articles