Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #293 (closed defect: duplicate)

Opened 14 years ago

Last modified 12 years ago

Endless loop when restarting TG site

Reported by: matt@… Owned by: anonymous
Priority: high Milestone: 0.9
Component: TurboGears Version:
Severity: major Keywords:
Cc:

Description

Using SVN r403 on Windows XP with Python 2.4.1, I get the following endless autoreloading loop:

Original exception was:
2005/12/28 12:57:30 HTTP INFO SystemExit raised: shutting down autoreloader
2005/12/28 12:57:30 HTTP INFO CherryPy shut down
2005/12/28 12:57:30 CONFIG INFO Server parameters:
2005/12/28 12:57:30 CONFIG INFO   server.environment: development
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
2005/12/28 12:57:32 HTTP INFO SystemExit raised: shutting down autoreloader
2005/12/28 12:57:32 CONFIG INFO Server parameters:
2005/12/28 12:57:32 HTTP INFO CherryPy shut down
2005/12/28 12:57:32 CONFIG INFO   server.environment: development
2005/12/28 12:57:32 CONFIG INFO   server.logToScreen: True
2005/12/28 12:57:32 CONFIG INFO   server.logFile:
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
'import site' failed; use -v for traceback
2005/12/28 12:57:34 HTTP INFO SystemExit raised: shutting down autoreloader
2005/12/28 12:57:34 CONFIG INFO Server parameters:
2005/12/28 12:57:34 HTTP INFO CherryPy shut down
2005/12/28 12:57:34 CONFIG INFO   server.environment: development
2005/12/28 12:57:34 CONFIG INFO   server.logToScreen: True
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
[...]

This problem first arose when I was trying to subclass DataGrid, but my subclass did not even need to be used, only present in the controllers.py file. Further commenting-out led to a minimal demonstration of the bug, in controllers.py:

import turbogears
from turbogears import controllers,widgets

class OrderGrid(widgets.Widget):
    """Presents a grid with add/edit/delete controls based on a
     SelectResults object."""
    css=[widgets.CSSLink(widgets.static, "grid.css")]
    template = """
    <div xmlns:py="http://purl.org/kid/ns#">
    </div>
    """

class Root(controllers.RootController):
    @turbogears.expose()
    def index(self):
        import time
        return dict(now=time.ctime())

Change History

comment:1 Changed 14 years ago by anonymous

Unfortunately the changes to Kid in @411 did not resolve this bug.

comment:2 Changed 14 years ago by dstanek

  • Status changed from new to closed
  • Resolution set to duplicate

This is a dup of #148

Note: See TracTickets for help on using tickets.