开发者

Using gaetestbed within virtualenv

开发者 https://www.devze.com 2023-01-06 06:57 出处:网络
I\'d like to give GAE Testbed a try, but am running into the following error after completing the instructions on its homepage.

I'd like to give GAE Testbed a try, but am running into the following error after completing the instructions on its homepage.

$ nosetests --with-gae
...
ImportErr开发者_如何学Cor: No module named dev_appserver

I've confirmed that this happens in both a virtualenv and outside of one.


Use the --gae-lib-root option as in

$ nosetests --with-gae --gae-lib-root=/opt/my/google_appengine


Resolved by adding google_appengine directory to PYTHONPATH.


Solved with these parameters:

  • --with-gae
  • --gae-lib-root="C:\Program Files\Google\google_appengine"

No backslash at the end of the GAE path and quotes.


This can also be solved on Linux by creating a sym link to the directory the plugin expects to find google-appengine, which is /usr/local/google_appengine . It's mentioned briefly at the top of the overview on this page here: http://farmdev.com/projects/nosegae/

 sudo ln -s /home/username/google_appengine /usr/local/google_appengine
0

精彩评论

暂无评论...
验证码 换一张
取 消