[NumPy-Tickets] [NumPy] #1405: NameError: global name 'numpy' is not defined

NumPy Trac numpy-tickets@scipy....
Mon Feb 22 09:12:03 CST 2010


#1405: NameError: global name 'numpy' is not defined
----------------------------+-----------------------------------------------
 Reporter:  sienkiew        |       Owner:  somebody
     Type:  defect          |      Status:  new     
 Priority:  high            |   Milestone:          
Component:  numpy.numarray  |     Version:  devel   
 Keywords:                  |  
----------------------------+-----------------------------------------------
 {{{
   File "/usr/stsci/pyssgdev/2.5.4/numpy/lib/utils.py", line 79, in
 get_numarray_include
     include_dirs = get_numarray_include_dirs()
   File "/usr/stsci/pyssgdev/2.5.4/numpy/numarray/util.py", line 45, in
 get_numarray_include_dirs
     base = os.path.dirname(numpy.__file__)
 NameError: global name 'numpy' is not defined
 }}}

 Reproduce by:

 {{{
 numpy.get_numarray_include()
 }}}

 The problem is:

 {{{
 import numpy as np

 ...

     base = os.path.dirname(numpy.__file__)
 }}}

 NumPy version 2.0.0.dev8251

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1405>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list