Hi Friends,
I am fairly new to Web2py and I need help. I use windows.
Originally I set up Web2py on my computer using the binaries and I was
able to get the Web2py server come up and do some very basic tests
using the Web interface.
However, I was not able to run the examples that are provided in the
Web2py documentation using the intepreter. This led me to ask this
group and I was advised that to do that I should install the Web2py
code version and then use the command line invocation like this
Python web2py.py < and other command line arguments>
So I uninstalled the Web2py binary installation and installed the
Web2py code version. However, now I am not sure how the server and web
interface will start. I tried invoking Python like this from the
windows prompt
C:\Python web2py.py
but that did not work as it could not fne web2py.py so I changed it to
include the path to web2py.py like this
C:\Python C:\web2py\web2py.py
This worked somewhat but I now got an error which implied that import
gluon was not working. So I then added an environment variable
PYTHONPATH as follows:
PYTHONPATH
C:\web2py;C:\web2py\gluon
With this change the
C:\Phthon C:\web2py\web2py.py went further but I am now getting an
error which says
Traceback (most recent call last):
File "web2py.py", line 16, in <module>
import gluon.widget
File "C:\web2py\gluon\__init__.py", line 15, in <module>
from globals import current
File "C:\web2py\gluon\globals.py", line 139
except TypeError, e:
^
SyntaxError: invalid syntax
Can you please help with how to overcome this error. I will be very
grateful.
Thanks