[Scipy-tickets] [SciPy] #606: NameError: global name 'numpy' is not defined

SciPy scipy-tickets@scipy....
Sat Feb 16 05:40:13 CST 2008


#606: NameError: global name 'numpy' is not defined
--------------------------+-------------------------------------------------
 Reporter:  nils          |       Owner:  wnbell
     Type:  defect        |      Status:  new   
 Priority:  high          |   Milestone:  0.7   
Component:  scipy.sparse  |     Version:  devel 
 Severity:  critical      |    Keywords:        
--------------------------+-------------------------------------------------
 {{{
 python -i test_complex.py
   (0, 0)        1.0
   (1, 1)        1.0
   (2, 2)        1.0
 Traceback (most recent call last):
   File "test_complex.py", line 8, in <module>
     print A.real()
   File "/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py",
 line 310, in __getattr__
     return self._real()
   File "/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py",
 line 332, in _real
     return self.tocsr()._real()
   File "/usr/local/lib64/python2.5/site-packages/scipy/sparse/data.py",
 line 30, in _real
     return self._with_data(numpy.real(self.data),copy=False)
 NameError: global name 'numpy' is not defined
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/606>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list