[Numpy-discussion] Use of numarray from numpy package [# INC NO 24609]

LANDRIU David SAp landriu at discovery.saclay.cea.fr
Wed Aug 30 08:51:51 EDT 2006


Hello,
  
  I come back to my question : how to use numarray 
 with the numpy installation ?
  
  
  After some update in the system there is another 
 error message :

>> AttributeError: 'module' object has no attribute 'NewAxis'

 It seems , from advice of the system manager, that an kind of 
alias failed to execute the right action.
      

Thanks in advance for your answer,

   Cheers,
   
     David Landriu

------------- Begin Forwarded Message -------------


>Date: Wed, 30 Aug 2006 14:14:27 +0200 (MEST)
>To: LANDRIU David SAp <landriu at discovery.saclay.cea.fr>
>Subject: Re: Use of numarray from numpy package [# INC NO 24609]
>From: User Support <user.support at cc.in2p3.fr>
>Error-to: Jean-Rene Rouet <rouet at in2p3.fr>
>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, __STOCK_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=0.1 required=4.0 tests=AWL autolearn=no version=2.63
>X-Spam-Level: 
>
>
>Réponse de User-Support à votre question :
>------------------------------------------
>
>Rebonjour
>Essayez maintenat svp
>
>WW

Voici ce que j'obtiens maintenant :

{ccali22}~(0)>setenv PYTHONPATH /usr/local/lib/python2.3/site-packages/numpy
{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 ?
   
  Indeed, after numpy installation, when I try to use it in the code,
 I get the same error as below :
 
.../... 
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", line 2, in ?
    from numpy import geterr
ImportError: No module named numpy
>>>

  Thanks for your answer,
  
     Cheers,
     
       David Landriu
 




--------------------------------------------------------------------

David Landriu                 DAPNIA/SAp CEA SACLAY  (France)                   

Phone  : (33|0)169088785 
Fax    : (33|0)169086577 

---------------------------------------------------------------------





More information about the NumPy-Discussion mailing list