Automatic reload giving strange errors...

1 view
Skip to first unread message

sams...@gmail.com

unread,
Oct 28, 2008, 9:29:26 PM10/28/08
to TurboGears
Starting my program with the standard start-projname works 100% of the
time.

But for some reason, today the auto-reloading (that comes standard
with the development project when I save my changes) is having
troubles. It fails 100% of the time. It has never failed before
today.

Often it has a different error message, just to make it more
confusing...

Here's the latest:

Traceback (most recent call last):
File "./start-xstart.py", line 37, in <module>
from xstart.controllers import Root
File "/home/me/dev_branch/ws/xstart/xstart/controllers.py", line
1220

^
IndentationError: expected an indented block
2008-10-29 01:22:07,911 cherrypy.msg INFO ENGINE: SystemExit raised:
shutting down autoreloader


I've also gotten:
Traceback (most recent call last):
File "./start-xstart.py", line 37, in <module>
from xstart.controllers import Root
File "/home/me/dev_branch/ws/xstart/xstart/controllers.py", line 699

^
SyntaxError: invalid syntax
2008-10-29 01:16:57,245 cherrypy.msg INFO ENGINE: SystemExit raised:
shutting down autoreloader

and a few others which I'll post if they show up again.

I need to emphasize that immediately afterwards without changing
anything, just running start-xstart (my projname), it always runs
fine. And 100% of the time it fails in the reload after changing
something...but often with a different error message (maybe four or
five total).

Any thoughts?

sams...@gmail.com

unread,
Oct 28, 2008, 9:29:28 PM10/28/08
to TurboGears

sams...@gmail.com

unread,
Nov 2, 2008, 5:07:25 PM11/2/08
to TurboGears
Someone must have an idea....this is still a very annoying issue for
me. :(

Christoph Zwerschke

unread,
Nov 2, 2008, 5:20:22 PM11/2/08
to turbo...@googlegroups.com
sams...@gmail.com schrieb:

> Someone must have an idea....this is still a very annoying issue for
> me. :(

Seems like you save a controller module with a syntax error, e.g. wrong
indentation or mixed tabs and spaces, while cherrypy is still running.
In this case, you need to restart the app manually.

I'm using an editor that displays such syntax errors, and I save my
files only when they are valid, so I seldom run into this problem.

-- Christoph

Reply all
Reply to author
Forward
0 new messages