Issue 1082090
Created on 2004-12-09 13:25 by niederberger, last changed 2004-12-10 11:58 by a1s.
msg1551 |
Author: [hidden] (niederberger) |
Date: 2004-12-09 13:25 |
|
Fails with the following traceback:
C:\Python23\Lib\site-packages\roundup>python demo.py
Traceback (most recent call last):
File "demo.py", line 15, in ?
from roundup.scripts import roundup_server
File
"C:\Python23\Lib\site-packages\roundup\scripts\roundup_server.py",
line 3
2, in ?
from roundup.cgi import cgitb, client
File
"C:\Python23\Lib\site-packages\roundup\cgi\cgitb.py",
line 10, in ?
import sys, os, types, string, keyword, linecache,
tokenize, inspect, cgi
File "C:\Python23\lib\tokenize.py", line 38, in ?
COMMENT = N_TOKENS
NameError: name 'N_TOKENS' is not defined
|
msg1552 |
Author: [hidden] (don_fu) |
Date: 2004-12-09 14:30 |
|
Logged In: YES
user_id=1083360
it works for me.
have a look at C:\Python23\lib\token.py and see if it
defines N_TOKENS. If it does, some other token.py shadows
the standard lib file.
I once had the same problem but only vaguely recall the
context. I think I installed some windows readline library
for python.
stefan.
|
msg1553 |
Author: [hidden] (a1s) |
Date: 2004-12-09 15:22 |
|
Logged In: YES
user_id=8719
... and the offending module is token.py in the roundup package.
Ricardo, you must run C:\Python23\Scripts\roundup-demo.bat,
not C:\Python23\Lib\site-packages\roundup\demo.py
|
msg1554 |
Author: [hidden] (richard) |
Date: 2004-12-09 21:42 |
|
Logged In: YES
user_id=6405
The docs need to be updated since "python demo.py" is the
widely-advertised method of running the demo script.
|
msg1555 |
Author: [hidden] (a1s) |
Date: 2004-12-10 11:58 |
|
Logged In: YES
user_id=8719
"python demo.py" must be run from *source* distribution;
installation.txt does have a note on that.
|
|
Date |
User |
Action |
Args |
2004-12-09 13:25:15 | niederberger | create | |
|