doctest import failure

j vickroy jim.vickroy at noaa.gov
Thu Aug 29 14:47:26 EDT 2002


Hello,

The doctest module is not working on my installation.  Here is a sample
session:

D:\my-py-pkgs\generic-v2.0>python
Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import doctest
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python22\lib\doctest.py", line 298, in ?
    from inspect import classify_class_attrs as _classify_class_attrs
ImportError: cannot import name classify_class_attrs
>>> import inspect
>>> dir(inspect)
['BlockFinder', 'CO_NEWLOCALS', 'CO_OPTIMIZED', 'CO_VARARGS',
'CO_VARKEYWORDS', 'EndOfBlock', 'ListReader', '__author__', '__builtins__',
'__date__', '__doc__', '__file__', '__name__', 'currentframe', 'dis',
'findsource', 'formatargspec', 'formatargvalues', 'getabsfile', 'getargs',
'getargspec', 'getargvalues', 'getblock', 'getclasstree', 'getcomments',
'getdoc', 'getfile', 'getframeinfo', 'getinnerframes', 'getlineno',
'getmembers', 'getmodule', 'getmoduleinfo', 'getmodulename',
'getouterframes', 'getsource', 'getsourcefile', 'getsourcelines', 'imp',
'indentsize', 'isbuiltin', 'isclass', 'iscode', 'isframe', 'isfunction',
'ismethod', 'ismodule', 'isroutine', 'istraceback', 'joinseq',
'modulesbyfile', 'os', 're', 'stack', 'string', 'strseq', 'sys', 'tokenize',
'trace', 'types', 'walktree']
>>>

Is the inspect module, in my installation, incomplete?

I installed Python using the MS Windows binary installer (Python-2.2.1.exe)
downloaded from http://www.python.org/.

Thanks.





More information about the Python-list mailing list