473,468 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Understand what the ImportError error is

1 New Member
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 2031
ilikepython
844 Recognized Expert Contributor
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 Recognized Expert Expert
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.