I looked at changeset 2256 at http://trac.turbogears.org/changeset/2256 and reverted the affected modlist assignment in startup.py to the original code, sort of:

        modnames = filter(lambda modname: modname.startswith(package),
                          sys.modules.keys())
        modlist = [modules[modname] for modname in modnames]

...and everything worked. Might there be an issue with the list comprehension with conditional in 2.4.3, or at least the build I'm running?


Anderson Vitous wrote:

I started running into the same issues again as reported in separate emails, which I thought I had resolved (by wiping clean site-packages and reinstalling TG 1.0 from scratch). After < a day of working OK, same error message chain again, ending with:

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-1.0-py2.4.egg/turbogears/startup.py", line 50, in reloader_thread modlist = [modules[modname] for modname in modules if modname.startswith(package)]
RuntimeError: dictionary changed size during iteration
2007-01-05 16:28:40,138 cherrypy.msg INFO ENGINE: SystemExit raised: shutting down autoreloader
2007-01-05 16:28:40,141 cherrypy.msg INFO HTTP: HTTP Server shut down
2007-01-05 16:28:40,148 cherrypy.msg INFO ENGINE: CherryPy shut down

All I did was, klunking along with the TG book tutorial (Ch 5), add a new template and controller method. Wham. Deleting all the *.pyc files in my project doesn't help, either.

Still on OS/X 10.4.8, DarwinPorts Python 2.4.3

Should I be reverting to a pre-1.0 release for now (e.g. 1.0b2)?

Thanks,
Anderson

Lee McFadden wrote:

Hmm, seen a few of these threads since the release of 1.0.  It seems
to be something to do with changeset r2256.  I shall investigate
further later this evening.

Lee



>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to