![](https://secure.gravatar.com/avatar/530dcbe8a8db8ec095883c2b7452e992.jpg?s=120&d=mm&r=g)
Hi I try to write a very simple example with nevow. but I have this error, where I wrong? It seems that I cannot load the file alextest.py but the file exists! Thanks!! alex@mail:~/src/python/tests/nevow_samples/mysample0$ twistd -noy runapp.tac 2004/08/19 08:47 CEST [-] Log opened. 2004/08/19 08:47 CEST [-] twistd 1.3.0rc1 (/usr/bin/python2.3 2.3.4) starting up 2004/08/19 08:47 CEST [-] reactor class: twisted.internet.default.SelectReactor 2004/08/19 08:47 CEST [-] Loading runapp.tac... 2004/08/19 08:47 CEST [-] Traceback (most recent call last): 2004/08/19 08:47 CEST [-] File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 118, in getApplication 2004/08/19 08:47 CEST [-] application = service.loadApplication(filename, style, passphrase) 2004/08/19 08:47 CEST [-] File "/usr/lib/python2.3/site-packages/twisted/application/service.py", line 319, in loadApplication 2004/08/19 08:47 CEST [-] application = sob.loadValueFromFile(filename, 'application', passphrase) 2004/08/19 08:47 CEST [-] File "/usr/lib/python2.3/site-packages/twisted/persisted/sob.py", line 213, in loadValueFromFile 2004/08/19 08:47 CEST [-] exec data in d, d 2004/08/19 08:47 CEST [-] File "<string>", line 1 2004/08/19 08:47 CEST [-] import alextest 2004/08/19 08:47 CEST [-] ^ 2004/08/19 08:47 CEST [-] SyntaxError: invalid syntax 2004/08/19 08:47 CEST [-] Failed to load application: invalid syntax (line 1) 2004/08/19 08:47 CEST [-] Traceback (most recent call last): File "/usr/bin/twistd", line 36, in ? run() File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 184, in run app.run(runApp, ServerOptions) File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 205, in run runApp(config) File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 174, in runApp application = app.getApplication(config, passphrase) --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 118, in getApplication application = service.loadApplication(filename, style, passphrase) File "/usr/lib/python2.3/site-packages/twisted/application/service.py", line 319, in loadApplication application = sob.loadValueFromFile(filename, 'application', passphrase) File "/usr/lib/python2.3/site-packages/twisted/persisted/sob.py", line 213, in loadValueFromFile exec data in d, d exceptions.SyntaxError: invalid syntax (line 1) Failed to load application: invalid syntax (line 1) 2004/08/19 08:47 CEST [-] barchi@roggeroetortia.it Poligrafico_Roggero_&_Tortia S.p.A. ------------------------------------------ Via Frejus 5 - 10092 Beinasco TO Italy Tel. +390113499222 - Fax +39 0113498866