[Python] Problema test Nevow
Stefano
e.tino a email.it
Ven 21 Set 2007 11:10:57 CEST
Ciao a tutti,
nel tentativo di dare un occhio agli esempi di Nevow con
C:\Nevow\examples>twistd -noy examples.tac
mi viene restituito il seguente errore
2007/09/21 10:47 +0200 [-] ImportError: cannot import name testformless
2007/09/21 10:47 +0200 [-] Failed to load application: cannot import
name testformless
Il tutto in WinXP con Python 2.4, Twisted 2.5 e Nevow 0.9.18
Qualcuno ha già incontrato questo errore?
Riporto qui di seguito il log completo (spero comprensibile).
Ho risolto parzialmente la situazione commentando le righe di import dei
moduli tests in examples.tac. Ma poi gli esempi di formless non
funzionano (appunto :-) )
Grazie in anticipo.
Saluti
Stefano
--------------- Log --------------------
C:\Nevow\examples>twistd -noy examples.tac
2007/09/21 10:47 +0200 [-] Log opened.
2007/09/21 10:47 +0200 [-] twistd 2.5.0 (C:\Python24\python.exe 2.4.2)
starting up
2007/09/21 10:47 +0200 [-] reactor class: <class
'twisted.internet.selectreactor.SelectReactor'>
2007/09/21 10:47 +0200 [-] Loading examples.tac...
2007/09/21 10:47 +0200 [-] C:\Nevow\examples\tree\tree.py:34:
exceptions.DeprecationWarning: [v0.8] htmlstr is deprecated because it's
buggy. Please start using xmlfile and/or xmlstr.
2007/09/21 10:47 +0200 [-] Traceback (most recent call last):
2007/09/21 10:47 +0200 [-] File
"C:\Python24\Lib\site-packages\twisted\application\app.py", line 218, in
getApplication
2007/09/21 10:47 +0200 [-] application =
service.loadApplication(filename, style, passphrase)
2007/09/21 10:47 +0200 [-] File
"C:\Python24\Lib\site-packages\twisted\application\service.py", line
341, in loadApplication
2007/09/21 10:47 +0200 [-] application =
sob.loadValueFromFile(filename, 'application', passphrase)
2007/09/21 10:47 +0200 [-] File
"C:\Python24\Lib\site-packages\twisted\persisted\sob.py", line 215, in
loadValueFromFile
2007/09/21 10:47 +0200 [-] exec fileObj in d, d
2007/09/21 10:47 +0200 [-] File "examples.tac", line 86, in ?
2007/09/21 10:47 +0200 [-] raise e
2007/09/21 10:47 +0200 [-] ImportError: cannot import name testformless
2007/09/21 10:47 +0200 [-] Failed to load application: cannot import
name testformless
2007/09/21 10:47 +0200 [-] Unhandled Error
Traceback (most recent call last):
File
"C:\Python24\Lib\site-packages\twisted\application\app.py", line 379, in run
runApp(config)
File
"C:\Python24\Lib\site-packages\twisted\scripts\twistd.py", line 23, in
runApp
_SomeApplicationRunner(config).run()
File
"C:\Python24\Lib\site-packages\twisted\application\app.py", line157, in run
self.application = self.createOrGetApplication()
File
"C:\Python24\Lib\site-packages\twisted\application\app.py", line207, in
createOrGetApplication
application = getApplication(self.config, passphrase)
--- <exception caught here> ---
File
"C:\Python24\Lib\site-packages\twisted\application\app.py", line218, in
getApplication
application = service.loadApplication(filename, style,
passphrase)
File
"C:\Python24\Lib\site-packages\twisted\application\service.py", line
341, in loadApplication
application = sob.loadValueFromFile(filename,
'application', passphrase)
File
"C:\Python24\Lib\site-packages\twisted\persisted\sob.py", line 215, in
loadValueFromFile
exec fileObj in d, d
File "examples.tac", line 86, in ?
raise e
exceptions.ImportError: cannot import name testformless
Failed to load application: cannot import name testformless
2007/09/21 10:47 +0200 [-]
Maggiori informazioni sulla lista
Python