If using the Windows binary, the .exe file includes the Python interpreter, so you don't run it using your system's installed Python. Instead, it would be:
web2py.exe -S application -M Also, note that S and M are capitalized. Anyway, the point of the binary .exe file is for systems that do not have Python installed. If you have Python installed, it would be preferable to just use the source version of web2py -- don't bother with the .exe version. Anthony On Monday, March 6, 2017 at 7:14:34 AM UTC-5, Paul Ellis wrote: > > Hello, > > I know this question has been asked before, but didn't solve the problem > for me. > > I am using Windows 10 and web2py binary and have replaced web2py.py with > web2py.exe in the command python web2py.py -s [applicaiton] -m and am > getting this error: > > python web2py.exe -s [application] -m > SyntaxError: Non-ASCII character '\x90' in file web2py.exe on line 1, but > no encoding declared; see http://python.org/dev/peps/pep-0263/ for details > > I have also tried: > python web2py.exe > > e:\web2py\py web2py.exe > this gives a traceback, but the same error: > Traceback (most recent call last): > File "<string>", line 6, in <module> > File "__main__.py", line 126, in <module> > File "__main__py__.py", line 60, in <module> > File "web2py.exe", line 1 > SyntaxError: Non-ASCII character '\x90' in file web2py.exe on line 1, but > no encoding declared; see http://python.org/dev/peps/pep-0263/ for details > > What am I doing wrong? > > Cheers > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

