From: LANDRIU D. S. <la...@di...> - 2006-08-30 12:52:22
|
Hello, =20 I come back to my question : how to use numarray=20 with the numpy installation ? =20 =20 After some update in the system there is another=20 error message : >> AttributeError: 'module' object has no attribute 'NewAxis' It seems , from advice of the system manager, that an kind of=20 alias failed to execute the right action. =20 Thanks in advance for your answer, Cheers, =20 David Landriu ------------- Begin Forwarded Message ------------- >Date: Wed, 30 Aug 2006 14:14:27 +0200 (MEST) >To: LANDRIU David SAp <la...@di...> >Subject: Re: Use of numarray from numpy package [# INC NO 24609] >From: User Support <use...@cc...> >Error-to: Jean-Rene Rouet <ro...@in...> >X-CEA-Source: externe >X-CEA-DebugSpam: 7% >X-CEA-Spam-Report: No antispam rules were triggered by this message >X-CEA-Spam-Hits: __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __STOC= K_CRUFT 0 >MIME-Version: 1.0 >Content-Transfer-Encoding: 8bit >X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on discovery >X-Spam-Status: No, hits=3D0.1 required=3D4.0 tests=3DAWL autolearn=3Dno ve= rsion=3D2.63 >X-Spam-Level:=20 > > >R=E9ponse de User-Support =E0 votre question : >------------------------------------------ > >Rebonjour >Essayez maintenat svp > >WW Voici ce que j'obtiens maintenant : {ccali22}~(0)>setenv PYTHONPATH /usr/local/lib/python2.3/site-packages/nump= y {ccali22}~(0)> {ccali22}~(0)> {ccali22}~(0)>python Python 2.3.5 (#2, Oct 17 2005, 17:20:02) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-52)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from numarray import * Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'NewAxis' >>> ############################################## ############################################## Hello, is it necessary to install numarray separately to use numpy ? =20 Indeed, after numpy installation, when I try to use it in the code, I get the same error as below : =20 .../...=20 Python 2.4.1 (#1, May 13 2005, 13:45:18) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-42)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from numarray import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/numpy/numarray/__init__.py",= line 1, in ? from util import * File "/usr/local/lib/python2.3/site-packages/numpy/numarray/util.py", lin= e 2, in ? from numpy import geterr ImportError: No module named numpy >>> Thanks for your answer, =20 Cheers, =20 David Landriu =20 -------------------------------------------------------------------- David Landriu DAPNIA/SAp CEA SACLAY (France) = =20 Phone : (33|0)169088785=20 Fax : (33|0)169086577=20 --------------------------------------------------------------------- |