Python 2.4.4 crashes inside a turbogears project

Terry Reedy tjreedy at udel.edu
Tue Dec 11 13:24:34 EST 2007


"bulgaro" <bulgaro76 at gmail.com> wrote in message 
news:8a700bbd-a273-4c56-833c-baf4ca097134 at d61g2000hsa.googlegroups.com...

| I hope not to be OT but this is a python problem, not a turbogears one.

What you have shown is not a crash but a planned shutdown in response to an 
error.  There is a difference ;-).  It is almost certainly not a problem 
with the CPython interpreter but with your program or something else.

| 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.

If it 'imports' (in the Python sense) something that is neither Python code 
or a compiled version thereof, that would explain the message below.

| 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

Sometime is trying to read python.exe as Python code.   It is not.

| 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.

Don't do that.

tjr








More information about the Python-list mailing list