[PYTHON DOC-SIG] Gendoc
Daniel Larsson
dlarsson@sw.seisy.abb.se
Tue, 25 Mar 1997 09:25:33 +0100
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
_______________