Hello,

PythonEggs seem to have a problem access the docstring of the root package.
Note that there is no problem accessing docstrings of contained modules and packages with Python's help().

The following session gives an example what I mean by using (and installing) the funkload package.

SYNDROME: Install PythonEgg and verify that help() does no longer work => SYNDROME
shell> cd funkload-1.5.0
shell> python setup.py install
...
# -- INSTALLS PythonEgg ...
# TEST: To access docstring of egg-root package -> FAILS.
shell> cd ..
shell> python
>>> import funkload
>>> help(funkload)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/setuptools-0.6b3-py2.4.egg/site.py", line 328, in __call__

  File "/usr/lib/python2.4/pydoc.py", line 1647, in __call__
    self.help(request)
  File "/usr/lib/python2.4/pydoc.py", line 1691, in help
    else: doc(request, 'Help on %s:')
  File "/usr/lib/python2.4/pydoc.py", line 1475, in doc
    pager(title % desc + '\n\n' + text.document(object, name))
  File "/usr/lib/python2.4/pydoc.py", line 295, in document
    if inspect.ismodule(object): return self.docmodule(*args)
  File "/usr/lib/python2.4/pydoc.py", line 1052, in docmodule
    for file in os.listdir(object.__path__[0]):
OSError: [Errno 2] No such file or directory: '/usr/lib/python2.4/site-packages/funkload-1.5.0-py2.4.egg/funkload'


Ciao,
Jens Engel
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to