Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4540144
By: boostpy2005
Thanks for the reply.
the call stack
[26/Sep/2007:14:18:01] ENGINE CherryPy shut down
Traceback (most recent call last):
File
"C:\Programme\eclipse32\plugins\org.python.pydev.debug_1.3.9\pysrc\pydev
d.py", line 784, in ?
debugger.run(setup['file'], None, None)
File
"C:\Programme\eclipse32\plugins\org.python.pydev.debug_1.3.9\pysrc\pydev
d.py", line 636, in run
execfile(file, globals, locals) #execute the script
-----------our code deleted-----------
cherrypy.engine.start(blocking=not asService)
File "C:\Programme\Python24\Lib\site-packages\cherrypy\_cpengine.py",
line
93, in start
self.block()
File "C:\Programme\Python24\Lib\site-packages\cherrypy\_cpengine.py",
line
103, in block
self.autoreload()
File "C:\Programme\Python24\Lib\site-packages\cherrypy\_cpengine.py",
line
168, in autoreload
if filename:
TypeError: __nonzero__ should return an int
the following is the code segment out of the module _cpengine
sysfiles = []
for k, m in sys.modules.items():
if re.match(self.autoreload_match, k):
if hasattr(m, "__loader__"):
if hasattr(m.__loader__, "archive"):
k = m.__loader__.archive
k = getattr(m, "__file__", None)
sysfiles.append(k)
for filename in sysfiles + self.reload_files:
if filename:
if type(filename) != str:
continue
if filename.endswith(".pyc"):
filename = filename[:-1]
oldtime = self.mtimes.get(filename, 0)
if oldtime is None:
# Module with no .py file. Skip it.
continue
try:
mtime = os.stat(filename).st_mtime
except OSError:
# Either a module with no .py file, or it's been deleted.
mtime = None
if filename not in self.mtimes:
# If a module has no .py file, this will be None.
self.mtimes[filename] = mtime
else:
if mtime is None or mtime > oldtime:
# The file has been deleted or modified.
self.reexec()
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users