strange error when importing a module

Discussion in 'Python' started by Robin Becker, Jul 20, 2006.

  1. Robin Becker

    Robin Becker Guest

    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.
    >>> from rlextra.utils.SimpleXMLRPCServer import SimpleXMLRPCServer

    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?
    --
    Robin Becker
    Robin Becker, Jul 20, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sam Crow

    Error importing cgi module

    Sam Crow, Jun 27, 2003, in forum: Python
    Replies:
    2
    Views:
    765
    =?ISO-8859-1?Q?Gerhard_H=E4ring?=
    Jun 27, 2003
  2. Jay O'Connor

    STrange error importing win32gui

    Jay O'Connor, Nov 12, 2003, in forum: Python
    Replies:
    4
    Views:
    383
    Mark Hammond
    Nov 13, 2003
  3. plb
    Replies:
    2
    Views:
    341
  4. Pradnyesh Sawant

    doubt with importing module, given module name

    Pradnyesh Sawant, Apr 9, 2007, in forum: Python
    Replies:
    0
    Views:
    275
    Pradnyesh Sawant
    Apr 9, 2007
  5. -ecosys.com
    Replies:
    4
    Views:
    295
    Calvin Spealman
    Sep 28, 2007
Loading...

Share This Page