[Numpy-tickets] [NumPy] #893: Numpy incompatible with python -OO

NumPy numpy-tickets@scipy....
Tue Aug 26 18:28:28 CDT 2008


#893: Numpy incompatible with python -OO
----------------------+-----------------------------------------------------
 Reporter:  cscott    |        Owner:  pierregm
     Type:  defect    |       Status:  new     
 Priority:  normal    |    Milestone:  1.2.0   
Component:  numpy.ma  |      Version:  none    
 Severity:  normal    |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by pierregm):

 Replying to [comment:5 cscott]:
 > {{{
 > $ python2.5 -OO -c 'import numpy'
 > }}}
 > is a good way to validate that all of the __doc__ issues have been
 fixed.

 That's what I did of course, but I run into other problems:

 {{{
 Traceback (most recent call last):
   File "<string>", line 1, in ?
   File "/usr/lib64/python2.4/site-packages/numpy/__init__.py", line 125,
 in ?
     import add_newdocs
   File "/usr/lib64/python2.4/site-packages/numpy/add_newdocs.py", line 9,
 in ?
     from lib import add_newdoc
   File "/usr/lib64/python2.4/site-packages/numpy/lib/__init__.py", line 4,
 in ?
     from type_check import *
   File "/usr/lib64/python2.4/site-packages/numpy/lib/type_check.py", line
 8, in ?
     import numpy.core.numeric as _nx
   File "/usr/lib64/python2.4/site-packages/numpy/core/__init__.py", line
 34, in ?
     from numpy.testing import Tester
   File "/usr/lib64/python2.4/site-packages/numpy/testing/__init__.py",
 line 12, in ?
     from utils import *
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 9, in ?
     from nosetester import import_nose
   File "/usr/lib64/python2.4/site-packages/numpy/testing/nosetester.py",
 line 88, in ?
     class NoseTester(object):
   File "/usr/lib64/python2.4/site-packages/numpy/testing/nosetester.py",
 line 292, in NoseTester
     _docmethod(_test_argv, '(testtype)')
   File "/usr/lib64/python2.4/site-packages/numpy/testing/nosetester.py",
 line 85, in _docmethod
     meth.__doc__ = meth.__doc__ % {'test_header':test_header}
 TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'
 }}}

 Until `nosetester` is fixed, I'm blind.

 I'm using r5708 slightly modified (commenting out the `trunc` function in
 `umathmodule.c.src` that prevents me to compile numpy).

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/893#comment:6>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list