Why this Difference in Importing NumPy 1.2 vs 1.4?

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/>

If your on windows, you can probably get rid of it through the Add/Remove Programs portion of the Conrol Panel.
-- Paul Hobson Senior Staff Engineer Geosyntec Consultants Portland, OR
On Mar 26, 2010, at 8:09 PM, "Wayne Watson" <sierra_mtnview@sbcglobal.netmailto:sierra_mtnview@sbcglobal.net> wrote:
Thanks. How do I switch? Do I just pull down 1.3 or better 1.2 (I use it.), and install it? How do I (actually my colleague) somehow remove 1.4? Is it as easy as going to IDLE's path browser and removing, under site-packages, numpy? (I'm not sure that's even possible. I don't see a right-click menu.)
On 3/26/2010 7:22 PM, mailto:PHobson@Geosyntec.com PHobson@Geosyntec.commailto:PHobson@Geosyntec.com wrote: 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: mailto:numpy-discussion-bounces@scipy.org numpy-discussion-bounces@scipy.orgmailto:numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.orgmailto:numpy-discussion-bounces@scipy.org] On Behalf Of Wayne Watson Sent: Friday, March 26, 2010 5:44 PM To: mailto:numpy-discussion@scipy.org numpy-discussion@scipy.orgmailto: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: <http://www.speckledwithstars.net/www.speckledwithstars.net/http://www.speckledwithstars.net/>
_______________________________________________ NumPy-Discussion mailing list mailto:NumPy-Discussion@scipy.orgNumPy-Discussion@scipy.orgmailto:NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussionhttp://mail.scipy.org/mailman/listinfo/numpy-discussion
-- 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: <http://www.speckledwithstars.net/www.speckledwithstars.net/http://www.speckledwithstars.net/>
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.orgmailto:NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Yes, that is very likely the solution. It's clear that the module is in the list. I say likely, since I've never done it before and there always seems to be something that gets overlooked in what seems to be something so simple. :-)
However, my colleague is on XP. Ah, same idea there.
I find it odd that no one seems to address the removal of modules from site-packages from Windows. Thanks.
On 3/28/2010 9:13 AM, PHobson@Geosyntec.com wrote:
If your on windows, you can probably get rid of it through the Add/Remove Programs portion of the Conrol Panel.
-- Paul Hobson Senior Staff Engineer Geosyntec Consultants Portland, OR
On Mar 26, 2010, at 8:09 PM, "Wayne Watson"<sierra_mtnview@sbcglobal.netmailto:sierra_mtnview@sbcglobal.net> wrote:
Thanks. How do I switch? Do I just pull down 1.3 or better 1.2 (I use it.), and install it? How do I (actually my colleague) somehow remove 1.4? Is it as easy as going to IDLE's path browser and removing, under site-packages, numpy? (I'm not sure that's even possible. I don't see a right-click menu.)
On 3/26/2010 7:22 PM,mailto:PHobson@Geosyntec.com PHobson@Geosyntec.commailto:PHobson@Geosyntec.com wrote: 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:mailto:numpy-discussion-bounces@scipy.org numpy-discussion-bounces@scipy.orgmailto:numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.orgmailto:numpy-discussion-bounces@scipy.org] On Behalf Of Wayne Watson Sent: Friday, March 26, 2010 5:44 PM To:mailto:numpy-discussion@scipy.org numpy-discussion@scipy.orgmailto: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:<<http://www.speckledwithstars.net/>www.speckledwithstars.net/<http://www.speckledwithstars.net/>>
NumPy-Discussion mailing list mailto:NumPy-Discussion@scipy.orgNumPy-Discussion@scipy.orgmailto:NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussionhttp://mail.scipy.org/mailman/listinfo/numpy-discussion
-- 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:<<http://www.speckledwithstars.net/>www.speckledwithstars.net/<http://www.speckledwithstars.net/>>
NumPy-Discussion mailing list NumPy-Discussion@scipy.orgmailto:NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (2)
-
PHobson@Geosyntec.com
-
Wayne Watson