python - GAE's webapp2_extra.i18n can't import babel on MacOSX -


i followed tutorial enable i18n functionality in gae project:

http://webapp-improved.appspot.com/tutorials/i18n.html

however, after easy_install babel, can't access gae due error:

file "/users/myname/developer/gae/project/webapp2_extras/i18n.py", line 16, in <module>     import babel importerror: no module named babel 

and tried load in cmdline:

 $ python2.7 python 2.7.1 (r271:86832, jul 31 2011, 19:30:53)  [gcc 4.2.1 (based on apple inc. build 5658) (llvm build 2335.15.00)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import babel >>>  

it works fine!

i suspect problem gae can't load library, don't know how solve it.

please help, thanks!

my working environment maxosx lion, python2.7, gae 1.6.6.

the doc states

for app engine, download babel , pytz , add libraries app directory.

that means have copy them app directory, not easy_install, sdk has import restrictions emulate production environment.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -