[Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4?

PHobson@Geosynte... PHobson@Geosynte...
Fri Mar 26 21:22:49 CDT 2010


Wayne,

The current release of Scipy doesn't work perfectly well with Numpy 1.4.

On my systems (Mac OS 10.6, WinXP, and Ubuntu), I'm running Numpy 1.4 with the current Scipy on Python 2.6.4. I get the same error you describe below on the first attempt. For some reason unknown to me, it works on the second try.

Switching to Numpy 1.3 is the best solution to the error.

-paul

From: numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.org] On Behalf Of Wayne Watson
Sent: Friday, March 26, 2010 5:44 PM
To: numpy-discussion@scipy.org
Subject: [Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4?

I wrote a program in Python 2.5 under Win7 and it runs fine using Numpy 1.2 , but not on a colleague's machine who has a slightly newer 2.5. We both use IDLE to execute the program. During import he gets this:

>>>
Traceback (most recent call last):
  File "C:\Documents and Settings\HP_Administrator.DavesDesktop\My Documents\Astro\Meteors\NC-FireballReport.py", line 38, in <module>
    from scipy import stats as stats # scoreatpercentile
  File "C:\Python25\lib\site-packages\scipy\stats\__init__.py", line 7, in <module>
    from stats import *
  File "C:\Python25\lib\site-packages\scipy\stats\stats.py", line 191, in <module>
    import scipy.special as special
  File "C:\Python25\lib\site-packages\scipy\special\__init__.py", line 22, in <module>
    from numpy.testing import NumpyTest
ImportError: cannot import name NumpyTest
>>>

Comments?


--

           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)



             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)

              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

           Poisoned Shipments. Serious illegal waste dumping may be

           occuring in the Meditrainean. Radioactive material,

           mercury, biohazards. -- Sci Am Mag, Feb., 2010, p14f.



                    Web Page: <www.speckledwithstars.net/<http://www.speckledwithstars.net/>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100326/7141b1bb/attachment-0001.html 


More information about the NumPy-Discussion mailing list