Oops, what I forgot to mention was that I encountered an initial problem with the ni module in gendoc. When I tried to run gendoc the first time, I got the following: Traceback (innermost last): File "./gendoc", line 2, in ? import ni File ".../python/imported/lib/1.4/ni.py", line 435, in ? File ".../python/imported/lib/1.4/ni.py", line 399, in install File ".../python/imported/lib/1.4/ihooks.py", line 364, in install File ".../python/imported/lib/1.4/ni.py", line 390, in install File ".../python/imported/lib/1.4/ni.py", line 239, in init_package File ".../python/imported/lib/1.4/ni.py", line 261, in call_init_module File ".../python/imported/lib/1.4/ni.py", line 204, in load_module File ".../python/imported/lib/1.4/ihooks.py", line 262, in load_module File ".../python/imported/lib/1.4/ihooks.py", line 173, in load_source File "./__init__.py", line 1, in ? path = __.__path__[0] TypeError: unsubscriptable object Any clues as to what's the problem here? Raymond
However, I seem to come across the following problem:
*** Importing gendoc Collecting information Generating documents for HTMLg Traceback (innermost last): File "./gendoc", line 7, in ? gendoc.main() ... File "./gendoc/formatters/HTMLgenFormatter.py", line 88, in html_rc import __ ImportError: No module named __
Does anybody out there know what the "__" module refers to? I tried looking through some python books but found nothing specifically related to this.
The __ is used by the "ni" module.
You will probably find you have the "formatters" directory on your path - it shouldnt be - the "ni" module allows Python to find it in the sub-directory automatically...
Mark.
_______________ DOC-SIG - SIG for the Python Documentation Project send messages to: doc-sig@python.org administrivia to: doc-sig-request@python.org _______________
Raymond Sui wrote:
Oops, what I forgot to mention was that I encountered an initial problem with the ni module in gendoc. When I tried to run gendoc the first time, I got the following:
Traceback (innermost last): File "./gendoc", line 2, in ? import ni File ".../python/imported/lib/1.4/ni.py", line 435, in ? File ".../python/imported/lib/1.4/ni.py", line 399, in install File ".../python/imported/lib/1.4/ihooks.py", line 364, in install File ".../python/imported/lib/1.4/ni.py", line 390, in install File ".../python/imported/lib/1.4/ni.py", line 239, in init_package File ".../python/imported/lib/1.4/ni.py", line 261, in call_init_module File ".../python/imported/lib/1.4/ni.py", line 204, in load_module File ".../python/imported/lib/1.4/ihooks.py", line 262, in load_module File ".../python/imported/lib/1.4/ihooks.py", line 173, in load_source File "./__init__.py", line 1, in ? path = __.__path__[0] TypeError: unsubscriptable object
Any clues as to what's the problem here?
Raymond
The problem you have is probably that you are running against the untared distribution. Either you run 'make install' (check the definitions of PYTHON_BIN and PYTHON_LIB in the Makefile first), or you set up the *parent* directory of gendoc in $PYTHONPATH, and copy the 'gendoc' file to some directory in your $PATH. -- Daniel Larsson, ABB Industrial Systems AB _______________ DOC-SIG - SIG for the Python Documentation Project send messages to: doc-sig@python.org administrivia to: doc-sig-request@python.org _______________
participants (2)
-
Daniel Larsson -
suir@nms.otc.com.au