Cannot Read MySQLdb docs within Python interpreter
Con
conradwt at gmail.com
Mon May 26 10:09:27 EDT 2008
Hi, I'm gettting a traceback when I attempt to read the MySQLdb docs
after installation on Mac OS X 10.5.2:
BEGIN TRACEBACK:
>>> help( "MySQLdb" )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site.py", line 346, in __call__
return pydoc.help(*args, **kwds)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1645, in __call__
self.help(request)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1687, in help
elif request: doc(request, 'Help on %s:')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1481, in doc
pager(title % desc + '\n\n' + text.document(object, name))
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 324, in document
if inspect.ismodule(object): return self.docmodule(*args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1072, in docmodule
contents.append(self.document(value, key, name))
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 325, in document
if inspect.isclass(object): return self.docclass(*args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1196, in docclass
lambda t: t[1] == 'method')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1146, in spill
name, mod, object))
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 326, in document
if inspect.isroutine(object): return self.docroutine(*args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1257, in docroutine
doc = getdoc(object) or ''
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 82, in getdoc
result = inspect.getdoc(object) or inspect.getcomments(object)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/inspect.py", line 521, in getcomments
lines, lnum = findsource(object)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/inspect.py", line 510, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
END TRACEBACK:
If anyone has any ideas as to how to resolve this issue, please feel
free to post the solution and thanks in advance.
-Conrad
More information about the Python-list
mailing list