Re: bug in svn version
Michele Petrazzo <[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Jonathan Ellis wrote: > On Fri, 21 Apr 2006 11:00:14 -0700, "Jonathan Ellis" > <[email protected]> said: >> On Fri, 21 Apr 2006 19:46:48 +0200, "Michele Petrazzo" >> <[email protected]> said: >>> I see that you had removed the "fork" concurrency, but now the problem >>> of the "not really restarting": >>> >>> """ >>> running scheduled task <function exit_if_modules_changed at 0x40501a3c> >>> found changed python module spyceLoader from db_cscd.py >>> # (Detected changed modules ['spyceLoader']. Restarting... >>> >>> (If you don't want Spyce to do this, turn off check_modules_and_restart >>> in your spyceconf file.) >>> (10235, 768) >>> michele:/opt/spyce/trunk/spyce$ >> That's a separate problem. It will get fixed. > > Should be fixed in subversion now. At least on win32; please test on > your platform. :) Not on mine: """ running scheduled task <function exit_if_modules_changed at 0x404ff1ec> found changed python module spyceLoader from db_cscd.py # (Detected changed modules ['spyceLoader']. Restarting... (If you don't want Spyce to do this, turn off check_modules_and_restart in your spyceconf file.) RAW EXIT CODE 768 """ spyce was execute with: "python2.4 spyce.py -l" and the default configuration found on rev. 860 Just other three question (may be a new mail-thread?) With this svn version, I found two problem and one problem solved: Problem: 1) when I have notice to an exception on a script, spyce show it, but if I try to reload the page, I receive: """ Unexpected exception: (please report!) Traceback (most recent call last): File "/opt/spycesvn/spyce/spyce.py", line 289, in commonHandler thespyce.spyceInit(request, response) File "/opt/spycesvn/spyce/spyce.py", line 567, in spyceInit self._startModule(modname, modfrom, modas, 1) File "/opt/spycesvn/spyce/spyce.py", line 549, in _startModule mod = modclass(self._api) File "db_cscd.py", line 45, in __init__ spyceModule.spyceModule.__init__(self, *args, **kw) AttributeError: class spyceModule has no attribute 'spyceModule' """ #-------file db_cscd.py class db_cscd(spyceModule.spyceModule): def __init__(self, *args, **kw): spyceModule.spyceModule.__init__(self, *args, **kw) I know that you wrote on the doc to not use the __init__ method, but with the "old" stable release all work. 2) When I Ctrl-C for end spyce, I see: File "/opt/spycesvn/spyce/spyceWWW.py", line 365, in spyceHTTPserver os.kill(pid) TypeError: kill() takes exactly 2 arguments (1 given) Break! Solved: Into the stable release, with the template system cheetah (1.0.x), spyce don't work... I receive an error on the "template.py" example: """ Spyce exception File: /opt/spyce/www/docs/examples/template.spy Message: NotFound: cannot find 'persona' Stack: <string>:86, in respond: None /opt/spyce/modules/response.py:193, in writeExpr: self.write(str(s)) /opt/spyce/modules/response.py:74, in writeExpr: apply(self._filter.writeExpr, (s,), kwargs) template.spy:16, in (main): =template.cheetah('template.tmpl') """ An this happen also into my scripts, but the same code (your and mine) with the rev. 860 work well... Thanks, Michele ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642