Re-installing Numeric and PIL Files

W

W. Watson

For some reason Python 2.2.4 cannot find the Numeric module. It's been
suggested that I should re-install the Numeric file. How do that? Also the
PIL. The three install files are:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
 
R

Robert Kern

W. Watson said:
For some reason Python 2.2.4 cannot find the Numeric module. It's been
suggested that I should re-install the Numeric file. How do that? Also the
PIL. The three install files are:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe

The latter two are executable installers. Run them.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
W

W. Watson

Robert said:
The latter two are executable installers. Run them.
I have re-run Numeric. The python program still cannot detect the Numeric
module. In IDLE, Run Modules shows:
> Traceback (most recent call last):
> File
> "C:\Sandia_Meteors\NewSentinel\Test_Install_YG\Python_Install\sentuser.py",
> line 8, in <module>
> from Numeric import *
> ImportError: No module named Numeric

sentuser.py looks like:
#!/usr/bin/python

# Sentinel User Program
# J C Chavez
# (e-mail address removed)

from Tkinter import *
from Numeric import *
import Image
import ImageChops
import ImageTk
....


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
 
M

Matimus

For some reason Python 2.2.4 cannot find the Numeric module. It's been

Is this a typo, or are you really using 2.2.4? If so, you are going to
have to get the versions of Numeric and PIL that work with Python 2.2.
Or, alternatively, you can install python 2.4.4 with the .msi file you
listed. You should also be able to run that just like an executable if
you are using Windows XP. Based on the assumption that you have Python
2.2 installed, this will leave you with two version of Python, which
will work, but could be tricky. It might be best to just uninstall and
reinstall Python.

-Matt
 
W

W. Watson

Matimus said:
Is this a typo, or are you really using 2.2.4? If so, you are going to
have to get the versions of Numeric and PIL that work with Python 2.2.
Or, alternatively, you can install python 2.4.4 with the .msi file you
listed. You should also be able to run that just like an executable if
you are using Windows XP. Based on the assumption that you have Python
2.2 installed, this will leave you with two version of Python, which
will work, but could be tricky. It might be best to just uninstall and
reinstall Python.

-Matt
Yes, a typo. 2.4.4.

What is installed is:
python-2.4.4.msi
PIL-1.1.5.win32-py2.4.exe
Numeric-24.2.win32-py2.4.exe


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
 
W

W. Watson

BTW, I found a RemoveNumeric.exe and RemovePIL.exe in the C/Python24 folder,
but when I try to execute them, they produce a message about only being able
to use them at start-up.
 
R

Robert Kern

W. Watson said:
I have re-run Numeric. The python program still cannot detect the Numeric
module.

Well, check to make sure that the Python executable is the one that you think it
is. You can look at sys.executable to find the actual .exe of the running Python
interpreter. With Python 2.4.4 and a standard installation, it should be
c:\Python24\python.exe I believe. Then check to make sure that Numeric and PIL
are actually installed in c:\Python24\Lib\site-packages\ .

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
W

W. Watson

Robert said:
Well, check to make sure that the Python executable is the one that you think it
is. You can look at sys.executable to find the actual .exe of the running Python
interpreter. With Python 2.4.4 and a standard installation, it should be
c:\Python24\python.exe I believe. Then check to make sure that Numeric and PIL
are actually installed in c:\Python24\Lib\site-packages\ .
This may be a good clue. I'm not the author of the sentuser.py program that
I'm using 2.4 for. It's an application meant for another PC. On that
machine, I only have 2.4 installed. I decided to learn Python a few weeks
ago and installed 2.5.It's quite possible there's some confusion with the
just installed application. I have not yet started my education on python,
so know little about it.

I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

'I think it not improbable that man, like the grub that
prepares a chamber for the winged thing it has never seen but
is to be, may have... destinies that he does not understand."
-- Oliver Wendell Holmes
 
R

Robert Kern

W. Watson said:
I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.

I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
W

W. Watson

Robert said:
W. Watson said:
I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.

I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable
I'm savvy about a number of languages, but not yet about Python. What py
file will allow this to be executed?

main myprog
{
import sys
print sys.executable
pause
} ??




Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert
 
R

Robert Kern

W. Watson said:
Robert said:
W. Watson said:
I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.
I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable
I'm savvy about a number of languages, but not yet about Python. What py
file will allow this to be executed?

Just the lines between the comments here:

####
import sys
print sys.executable
####

I recommend going through the tutorial first, before worrying about Numeric or
PIL. Here is the URL for the 2.4.4 version:

http://www.python.org/doc/2.4.4/tut/tut.html

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
W

W. Watson

Robert said:
W. Watson said:
Robert said:
W. Watson wrote:

I did a search in the python24 folder for sys.exec* (in c:\python24), but
came up with nothing. [nothing in a search of c:--sys.exec*] I have two
python folders, c:\python24 and c:\python25. The contents of both folders
look fairly similar and each have a python.exe. I do not use a PIL or
Numeric in 2.5.
I'm sorry. sys is a module. I meant for you to execute the following Python code:

import sys
print sys.executable
I'm savvy about a number of languages, but not yet about Python. What py
file will allow this to be executed?

Just the lines between the comments here:

####
import sys
print sys.executable
####

I recommend going through the tutorial first, before worrying about Numeric or
PIL. Here is the URL for the 2.4.4 version:

http://www.python.org/doc/2.4.4/tut/tut.html
Here's the program I ran.

### begin
#!/usr/bin/python

# Check mysys

import sys
print sys.executable

### end

It put up a black screen in a flash and disappeared.

Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert
 
R

Robert Kern

W. Watson said:
Here's the program I ran.

### begin
#!/usr/bin/python

# Check mysys

import sys
print sys.executable

### end

It put up a black screen in a flash and disappeared.

Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
W

W. Watson

Robert said:
Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor
I entered each line in the shell, and the output shows
C:\Python25\pythonw.exe, so it's not using 2.4. How do I change that?


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert
 
W

W. Watson

Robert said:
Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor
I entered each line in the shell, and the output shows
C:\Python25\pythonw.exe, so it's not using 2.4. How do I change that?


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert
 
W

W. Watson

Robert said:
Run it from the terminal or execute those lines in the interactive interpreter
in IDLE. Also, you may want to use the Tutor list, instead of comp.lang.python.
It is more geared towards the questions you are asking.

http://mail.python.org/mailman/listinfo/tutor
I just installed python2.5 and the original program that uses 2.4 works.
Thanks for your help. Looks like on this machine that I'll be using 2.4 to
continue my education on python.


Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

"Humans aren't the first species to alter the atmosphere; that
distinction belongs to early bacteria, which some two million
years ago, invented photosynthesis.
-- Field Notes from a Catastrophe, Kolbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top