I added this line to my .bashrc (Ubuntu 9.10):
export PYTHONPATH=/opt/google_appengine/
And then I ran dev_appserver via python2.5 on Ubuntu as follows:
$ python2.5 dev_appserver.py guestbook/
python2.5: can't open file 'dev_appserver.py': [Errno 2] No such file or directory
As you can see, it cannot be found dev_appserver.py, even if it is in my directory /opt/google_appengine/. To make sure this is not a problem, I did this:
sudo chmod a+rwx dev_appserver.py
To check if it was added to the system path for python2.5, I did the following:
$ python2.5
Python 2.5.5 (r255:77872, Apr 29 2010, 23:59:20)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for line in sys.path: print line
...
/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg
/opt/google_appengine/demos
/opt/google_appengine
/usr/local/lib/python25.zip
...
The directory appears in this list, so I donβt understand why it cannot be found when entering:
$ python2.5 dev_appserver.py guestbook/
I am new to Python, so I would appreciate any help. Thank.
Linc