List Info

Thread: starnge error at startup




starnge error at startup
user name
2006-07-20 15:20:41
I get the following error when starting pythonwin on a
particular script. I 
would like to be able to debug the script, but pythonwin
won't seem to open it. 
  Has anyone any idea what could cause this?  I assume it
must be something to 
do with the way the script is laid out or some obscure
syntax I'm using.


File
"C:\Python\Lib\site-packages\pythonwin\pywin\fra
mework\intpyapp.py", line 
171, in InitInstance
     import interact
   File
"C:\Python\Lib\site-packages\pythonwin\pywin\fra
mework\interact.py", 
line 21, in ?
     import pywin.scintilla.IDLEenvironment
   File 
"C:\Python\Lib\site-packages\pythonwin\pywin\sci
ntilla\IDLEenvironment.py", line 
54, in ?
    
GetIDLEModule("AutoIndent").IndentSearcher.readl
ine = fast_readline
   File 
"C:\Python\Lib\site-packages\pythonwin\pywin\sci
ntilla\IDLEenvironment.py", line 
24, in GetIDLEModule
     __import__(modname)
   File
"C:\Python\Lib\site-packages\pythonwin\pywin\idl
e\AutoIndent.py", line 
503, in ?
     import tokenize
   File "C:\Python\lib\tokenize.py", line 38,
in ?
     COMMENT = N_TOKENS
exceptions.NameError: name 'N_TOKENS' is not defined
-- 
Robin Becker
_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32
starnge error at startup
user name
2006-07-20 20:20:42
At Thursday 20/7/2006 12:20, Robin Becker wrote:

>I get the following error when starting pythonwin on a
particular script. I
>would like to be able to debug the script, but pythonwin
won't seem 
>to open it.


>      import tokenize
>    File "C:\Python\lib\tokenize.py",
line 38, in ?
>      COMMENT = N_TOKENS
>exceptions.NameError: name 'N_TOKENS' is not defined

Looking at tokenize.py, it imports all from token.py
Look at your token.py. There is a notice at the top of the
file, it 
should have been built automatically, but perhaps something
failed.



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.c
om.ar/respuestas

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )