[Scipy-tickets] [SciPy] #507: import problem with r3369 - imports a non-scipy script

SciPy scipy-tickets@scipy....
Wed Sep 26 14:18:48 CDT 2007

#507: import problem with r3369 - imports a non-scipy script
 Reporter:  tloredo  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:  0.7     
Component:  Other    |     Version:          
 Severity:  normal   |    Keywords:          
 This is on RHEL 5, with Python 2.5.1, numpy, gcc 4.2.1.

 scipy r3369 installs fine, but when I try to test it, import fails:

 >>> import scipy
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/lib/python2.5/site-packages/scipy/__init__.py", line
 63, in <module>
   File "/usr/local/lib/python2.5/site-packages/numpy/_import_tools.py",
 line 177, in __call__
     self._init_info_modules(packages or None)
   File "/usr/local/lib/python2.5/site-packages/numpy/_import_tools.py",
 line 100, in _init_info_modules
   File "/usr/local/lib/python2.5/site-packages/numpy/_import_tools.py",
 line 72, in _init_info_modules
     exec 'import %s.info as info' % (package_name)
   File "<string>", line 1, in <module>
   File "/home/inference/loredo/python/scripts/special.py", line 97, in
     def factrl(n, ntop=0, prev=N.ones((33),N.Float)):
 AttributeError: 'module' object has no attribute 'Float'

 It is trying to load an old script of mine that happens to be named
 I haven't used it in a long while, so it hasn't been updated from Numeric
 to numpy.
 But that's beside the point---I don't think "import scipy" should be
 trying to
 import this script!

 This did not happen with scipy-0.6.0.

 Thanks for all your hard work on SciPy!

 -Tom Loredo

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

More information about the Scipy-tickets mailing list