strange error when importing a module

R

Robin Becker

I'm trying to understand the following strangeness

C:\code\rlextra\ers>python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "c:\code\rlextra\utils\SimpleXMLRPCServer.py", line 148, in ?
import pydoc
File "C:\Python\lib\pydoc.py", line 54, in ?
import sys, imp, os, re, types, inspect, __builtin__
File "C:\Python\lib\inspect.py", line 31, in ?
import sys, os, types, string, re, dis, imp, tokenize, linecache
File "C:\Python\lib\tokenize.py", line 38, in ?
COMMENT = N_TOKENS
NameError: name 'N_TOKENS' is not defined

SimpleXMLRPCServer.py is a legacy version of the current SimpleXMLRPCserver
code. I don't think there's anything special about it and as a standalone script
it appears to work fine (ie it seems to compile and run).

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top