473,390 Members | 1,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 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 2028
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

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

Similar topics

0
by: Carsten Gehling | last post by:
Figured out myself - I just removed the line with "from url import Url" -it doesn't seem to be used anywhere ;-) - Carsten > -----Oprindelig meddelelse----- > Fra:...
2
by: x-herbert | last post by:
Hi, I have a small test to "compile" al litle script as a WMI-Tester. The script include a wmi-wrapper and "insert" the Win32-modeles. here the code: my "WMI-Tester.py" ----- import wmi
0
by: Wicked | last post by:
Hi all, Has anyone got rpm.py? Is this a class/module for Python? I am getting the following error: File "./extra/scripts/update_release.py", line 42, in ? import rpm ImportError: No...
0
by: M. Lavasani | last post by:
Hi I am trying to test Python-2.3. Any solution for this problem please: >>>gmake test case $MAKEFLAGS in \ *-s*)...
6
by: o'seally | last post by:
solaris/linux admins/rookie_developers that battle with this error are probably all frustrated when it happens. i bet you're also somehow frustrated by this seemingly unsolvable error :-) ...take...
0
by: Ben McBride | last post by:
I'm trying to wrap a DLL, using SWIG, for an extension module and am having an obscure ImportError. I've been unable to find anything through the SWIG documentation and an extensive google search....
1
by: flupke | last post by:
Hi, i am in search of a cddb module for Python on windows. I stumbled upon http://sourceforge.net/projects/cddb-py but couldn't use it since the mci.dll is compiled against Python2.0. So i'm...
11
by: Fred | last post by:
I hope someone can help me with the below problem... Thanks, Fred My enviroment: -------------------------- Slackware Linux 10.2 Python 2.4.2 MySql version 4.1.14
1
by: Prof Rodney Coates | last post by:
Although I have been using Macs for a quarter of a century and was doing scientific programming in the '60's I am VERY new to Python on the Mac. I have been writing some very simple applications and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.