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
...
ImportError: No module named dev_appserver
I've confirmed that this happens in both a virtualenv and outside of one.
tox is a generic virtualenv management and test command line tool you can use for: checking that your package installs correctly with different Python versions and interpreters. running your tests in each of the environments, configuring your test tool of choice.
If you build with virtualenv --system-site-packages ENV, your virtual environment will inherit packages from /usr/lib/python2. 7/site-packages (or wherever your global site-packages directory is). This can be used if you have control over the global site-packages directory, and you want to depend on the packages there.
To use the virtual environment you created to run Python scripts, simply invoke Python from the command line in the context where you activated it. For instance, to run a script, just run python myscript.py .
Use the --gae-lib-root
option as in
$ nosetests --with-gae --gae-lib-root=/opt/my/google_appengine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With