[Numpy-discussion] documentation generator based on pyparsing

Nils Wagner nwagner@iam.uni-stuttgart...
Fri Nov 30 01:36:11 CST 2007

On Thu, 29 Nov 2007 10:01:26 +0100
  Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
> Hi Nils,
> Nils Wagner wrote:
>> The output of
>> ./gendocs.py -m 'scipy.linsolve.umfpack'
>> differs from your example output (available at
>> http://scipy.org/Generate_Documentation)
> I had to update the umfpack info.py file (where the 
>module docstring is) 
> to conform the documentation standards. The gendocs.py 
>relies on that, 
> so use, please, the newest SVN version of scipy - it 
>should work with 
> rev. 3601 and later.
Hi Robert,

Thank you for your note. It works fine for me with 
python2.5. However python2.3 results in

./gendocs.py -m 'scipy.linsolve.umfpack'
Traceback (most recent call last):
   File "./gendocs.py", line 261, in ?
   File "./gendocs.py", line 207, in main
     default = 1, help = help['page'] )
   File "/usr/lib64/python2.3/optparse.py", line 820, in 
     option = self.option_class(*args, **kwargs)
   File "/usr/lib64/python2.3/optparse.py", line 430, in 
   File "/usr/lib64/python2.3/optparse.py", line 499, in 
     raise OptionError("invalid option type: %r" % 
self.type, self)
optparse.OptionError: option -p/--page: invalid option 
type: <type 'int'>

How can I resolve this problem ?


More information about the Numpy-discussion mailing list