[Numpy-discussion] ImportError: No module named Numeric

Robert Kern rkern at ucsd.edu
Mon Jun 13 12:17:18 CDT 2005


Darren Thompson wrote:
> Hi,
> 
>     I know I have Numeric installed correctly because
> 
> Python 2.3.5 (#1, Jun 13 2005, 10:59:48)
> [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import Numeric
>  >>>
> 
> but
> Welcome to Aria version 2.0alpha.
> Traceback (most recent call last):
>   File "/usr/local/aria/aria2.0/aria2.py", line 770, in ?
>     from aria import AriaBaseClass
>   File "/usr/local/aria/aria2.0/src/py/aria.py", line 60, in ?
>     from TypeChecking import *
>   File "/usr/local/aria/aria2.0/src/py/TypeChecking.py", line 15, in ?
>     from Numeric import zeros as _zeros
> ImportError: No module named Numeric
> 
> Is there a way to make python module numeric permanent?

Add the lines

import sys
print sys.path

just before the "from Numeric import ..." line. It is possible that 
whatever environment Aria is using does not have Numeric's location in 
its module search path.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Numpy-discussion mailing list