Python 2.4.4 crashes inside a turbogears project

bulgaro bulgaro76 at gmail.com
Tue Dec 11 06:03:06 EST 2007


Hi everybody.
I hope not to be OT but this is a python problem, not a turbogears
one.
I have a problem when starting a turbogears project.
In my model.py i import an api to work with a db which imports a pyd
library.
It gives me this output:

C:\Turbogears>python start-traffic.py dev.cfg
2007-12-11 09:52:52,701 traffic.controllers DEBUG New session
--------------------------------
2007-12-11 09:52:52,701 traffic.controllers DEBUG New session
--------------------------------
sys:1: DeprecationWarning: Non-ASCII character '\x90' in file C:
\Python24\python.exe on line 1, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  File "C:\Python24\python.exe", line 1
    MZÉ$,000$0 0☺ö~
      ^
SyntaxError: invalid syntax
2007-12-11 09:52:54,224 cherrypy.msg INFO ENGINE: SystemExit raised:
shutting down autoreloader
2007-12-11 09:52:54,224 cherrypy.msg INFO HTTP: HTTP Server shut down
2007-12-11 09:52:54,234 turbogears.identity INFO Identity shutting
down
2007-12-11 09:52:54,234 cherrypy.msg INFO ENGINE: CherryPy shut down

It looks like it reads the binary file python.exe
I know this is probably a python error but i can't find any solution.
I use python 2.4.4.
Any clue?
Thank you in advance.



More information about the Python-list mailing list