472,119 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

Understand what the ImportError error is

1
I have recently received a Python program that I'm not able to compile. I read some tutorial but the error note doesn't make sense.
The program starts with
from Numeric import *
from FFT import *
from LinearAlgebra import *
from scipy import *
from CsvUtils import *
from math import log
from math import atan
from os.path import *
from string import *
from Scientific.Functions.Interpolation import *
from real import *

But when I try to compile it ( run module) the error says:
Traceback (most recent call last):
File "/Users/reemjaafar/Desktop/Python/InternalMagneticField2-DerivativeResult.py", line 1, in <module>
from Numeric import *
ImportError: No module named Numeric


So it is not recognizing the Numeric module, shouldn't that be already in the library of Phyton?
Aug 7 '07 #1
2 1974
ilikepython
844 Expert 512MB
I have recently received a Python program that I'm not able to compile. I read some tutorial but the error note doesn't make sense.
The program starts with
from Numeric import *
from FFT import *
from LinearAlgebra import *
from scipy import *
from CsvUtils import *
from math import log
from math import atan
from os.path import *
from string import *
from Scientific.Functions.Interpolation import *
from real import *

But when I try to compile it ( run module) the error says:
Traceback (most recent call last):
File "/Users/reemjaafar/Desktop/Python/InternalMagneticField2-DerivativeResult.py", line 1, in <module>
from Numeric import *
ImportError: No module named Numeric


So it is not recognizing the Numeric module, shouldn't that be already in the library of Phyton?
No, Numeric is not in the standard python libaray, you need to download it seperately. Try this link.
Aug 7 '07 #2
bartonc
6,596 Expert 4TB
No, Numeric is not in the standard python libaray, you need to download it seperately. Try this link.
Great link! Numeric is out of date. I'm not sure if NumPy translates Numeric imports or if you change "import numeric" to
Expand|Select|Wrap|Line Numbers
  1. import numpy
.
Aug 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Carsten Gehling | last post: by
reply views Thread by Wicked | last post: by
reply views Thread by M. Lavasani | last post: by
reply views Thread by Ben McBride | last post: by
1 post views Thread by flupke | last post: by
11 posts views Thread by Fred | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.