473,508 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

installing 2.4

I just now installed 2.4. I naively copied my site-package from 2.3. The
first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:

ImportError: Module use of python23.dll conflicts with this version of
Python.

Grumble: Why does Numeric reference a module by release number?

My real question is, what all do I have to do in order to get the programs I
ran under 2.3 to work with 2.4?
Jul 18 '05 #1
26 1957
Jive wrote:
I just now installed 2.4. I naively copied my site-package from 2.3. The
first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:

ImportError: Module use of python23.dll conflicts with this version of
Python.

Grumble: Why does Numeric reference a module by release number?

My real question is, what all do I have to do in order to get the programs I
ran under 2.3 to work with 2.4?


Install all new versions (compatible with 2.4) of any *extension
modules* that you are using, such as Numeric. Only pure Python
code can run without change on a newer interpreter. Anything
that has a .pyd or .so file (i.e. dynamic libraries, containing
C code that follows the Python extension API conventions) must
be recompiled for the new version.

-Peter
Jul 18 '05 #2
Gack! I can't run it under 2.3 anymore either! Dag nab it!
"Jive" <so*****@microsoft.com> wrote in message
news:E8*********************@news.easynews.com...
I just now installed 2.4. I naively copied my site-package from 2.3. The
first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:

ImportError: Module use of python23.dll conflicts with this version of
Python.

Grumble: Why does Numeric reference a module by release number?

My real question is, what all do I have to do in order to get the programs I ran under 2.3 to work with 2.4?

Jul 18 '05 #3
Well ain't that a kick in the pants?

Version 2.3 is broke now, so I'm kind of stuck. I haven't found a 2.4
version of Numeric. Do you know where to find one?
"Peter Hansen" <pe***@engcorp.com> wrote in message
news:co**********@utornnr1pp.grouptelecom.net...
Jive wrote:
I just now installed 2.4. I naively copied my site-package from 2.3. The first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:

ImportError: Module use of python23.dll conflicts with this version of
Python.

Grumble: Why does Numeric reference a module by release number?

My real question is, what all do I have to do in order to get the programs I ran under 2.3 to work with 2.4?


Install all new versions (compatible with 2.4) of any *extension
modules* that you are using, such as Numeric. Only pure Python
code can run without change on a newer interpreter. Anything
that has a .pyd or .so file (i.e. dynamic libraries, containing
C code that follows the Python extension API conventions) must
be recompiled for the new version.

-Peter

Jul 18 '05 #4
Correction. It still runs under 2.3. However, Pythonwin now doesn't work
right under 2.3. The interactive window grabs the cursor and won't let it
go. I have to go to the task manager to kill Pythonwin.
"Jive" <so*****@microsoft.com> wrote in message
news:E8*********************@news.easynews.com...
I just now installed 2.4. I naively copied my site-package from 2.3. The
first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:

ImportError: Module use of python23.dll conflicts with this version of
Python.

Grumble: Why does Numeric reference a module by release number?

My real question is, what all do I have to do in order to get the programs I ran under 2.3 to work with 2.4?

Jul 18 '05 #5
Jive wrote:
I just now installed 2.4. I naively copied my site-package from 2.3. The
first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:

ImportError: Module use of python23.dll conflicts with this version of
Python.

Grumble: Why does Numeric reference a module by release number?

My real question is, what all do I have to do in order to get the programs I
ran under 2.3 to work with 2.4?


Install all new versions (compatible with 2.4) of any *extension
modules* that you are using, such as Numeric. Only pure Python
code can run without change on a newer interpreter. Anything
that has a .pyd or .so file (i.e. dynamic libraries, containing
C code that follows the Python extension API conventions) must
be recompiled for the new version.

-Peter
Jul 18 '05 #6
Well ain't that a kick in the pants?

Version 2.3 is broke now, so I'm kind of stuck. I haven't found a 2.4
version of Numeric. Do you know where to find one?
"Peter Hansen" <pe***@engcorp.com> wrote in message
news:co**********@utornnr1pp.grouptelecom.net...
Jive wrote:
I just now installed 2.4. I naively copied my site-package from 2.3. The first program I tried to run, which uses the gnuplot package, got this
error, complaining about module Numeric:

ImportError: Module use of python23.dll conflicts with this version of
Python.

Grumble: Why does Numeric reference a module by release number?

My real question is, what all do I have to do in order to get the programs I ran under 2.3 to work with 2.4?


Install all new versions (compatible with 2.4) of any *extension
modules* that you are using, such as Numeric. Only pure Python
code can run without change on a newer interpreter. Anything
that has a .pyd or .so file (i.e. dynamic libraries, containing
C code that follows the Python extension API conventions) must
be recompiled for the new version.

-Peter

Jul 18 '05 #7
Jive wrote:
Well ain't that a kick in the pants?

Version 2.3 is broke now, so I'm kind of stuck. I haven't found a 2.4
version of Numeric. Do you know where to find one?


Since 2.4 has only been released for a few days, it'll probably be a
short while yet before all the various third-party package maintainers
get a chance to build 2.4 versions of their packages. Your main options
at this point are to wait, or to do compile it yourself from source, or
to convince/bribe someone else to compile it from source for you. I
expect that a major package like Numeric will have 2.4-compiled binary
distributions pretty soon.

As for 2.3 being broken, check your application path and file
associations. You may be inadvertently running the 2.3 version of
Pythonwin under the 2.4 interpreter.

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #8
Jive wrote:
Well ain't that a kick in the pants?

Version 2.3 is broke now, so I'm kind of stuck. I haven't found a 2.4
version of Numeric. Do you know where to find one?


Since 2.4 has only been released for a few days, it'll probably be a
short while yet before all the various third-party package maintainers
get a chance to build 2.4 versions of their packages. Your main options
at this point are to wait, or to do compile it yourself from source, or
to convince/bribe someone else to compile it from source for you. I
expect that a major package like Numeric will have 2.4-compiled binary
distributions pretty soon.

As for 2.3 being broken, check your application path and file
associations. You may be inadvertently running the 2.3 version of
Pythonwin under the 2.4 interpreter.

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #9
I am befuddled. I've re-installed everything I can think of, but I still
get this behavior: I start up Pythonwin. Sometimes the interactive window
shows the copyright stuff; sometimes it doesn't; In any case, I can't close
it by clicking on the X button at the top right of the main window. The
interactive window seems to have the focus monopolized. I have to go to the
task manager to kill it.

As for checking the "application path", I don't know what that means.

I am rather disappointed with this turn of events.
Jul 18 '05 #10
I am befuddled. I've re-installed everything I can think of, but I still
get this behavior: I start up Pythonwin. Sometimes the interactive window
shows the copyright stuff; sometimes it doesn't; In any case, I can't close
it by clicking on the X button at the top right of the main window. The
interactive window seems to have the focus monopolized. I have to go to the
task manager to kill it.

As for checking the "application path", I don't know what that means.

I am rather disappointed with this turn of events.
Jul 18 '05 #11
It's only getting worse. I went to Add/remove programs and removed 2.4.
Now Python 2.4 numarray and Python 2.4 pywin extensions are still listed as
installed, but I cannot remove them.
Jul 18 '05 #12
It's only getting worse. I went to Add/remove programs and removed 2.4.
Now Python 2.4 numarray and Python 2.4 pywin extensions are still listed as
installed, but I cannot remove them.
Jul 18 '05 #13
Jive wrote:
As for checking the "application path", I don't know what that means.


Go to a command prompt, and type 'echo %path%'. You'll see a list of
all the directories that Windows looks in to find an executable -- i.e.,
if you type 'python', Windows will work through this list of directories
looking for a program named 'python', and will execute the first one it
finds. If you want 2.3 to be your default Python version, then you
should have 'C:\Python23\.' somewhere near the front of this list. If
'C:\Python24\.' is first in the list, then you may be running the wrong
version of Python.

Now, start up Windows Explorer and from the Tools menu, select 'Folder
Options'. In the property sheet that comes up, go to the 'File Types'
tab. Scroll down until you find the entry for 'PY Python File', select
it, and click on the 'Advanced' button near the bottom. You're now
looking at the file associations for .py files. Select the 'open'
action, and click 'Edit...'. If the application listed specifies a
Python24 path, then all .py files will (by default) be run by Python24.
If there's no path specified to python.exe, then Windows will search the
application path (as described above), and you might or might not be
running 2.4 by default.

I would *think* that uninstalling 2.4 should return these to their
previous values (i.e. 2.3), but I'm not sure. If they're not valid
values, then we can try to walk you through fixing them. (Note that I'm
giving directions that match Windows 2000, since that's what I'm on
right now. Things maybe a bit different if you're using a different
version of Windows, so be sure to include your Windows version in any
replies...)

Also, I'm presuming that the 2.4 packages that you installed use
distutils, which of course requires Python to be present. Ideally, you
should uninstall those packages *before* you uninstall Python 2.4. You
can try reinstalling 2.4, uninstalling the packages, and then
uninstalling 2.4 again... or, if the packages' files were deleted when
Python was uninstalled, you may have to hack your registry to remove
those entries from the uninstall list.

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #14
Jive wrote:
As for checking the "application path", I don't know what that means.


Go to a command prompt, and type 'echo %path%'. You'll see a list of
all the directories that Windows looks in to find an executable -- i.e.,
if you type 'python', Windows will work through this list of directories
looking for a program named 'python', and will execute the first one it
finds. If you want 2.3 to be your default Python version, then you
should have 'C:\Python23\.' somewhere near the front of this list. If
'C:\Python24\.' is first in the list, then you may be running the wrong
version of Python.

Now, start up Windows Explorer and from the Tools menu, select 'Folder
Options'. In the property sheet that comes up, go to the 'File Types'
tab. Scroll down until you find the entry for 'PY Python File', select
it, and click on the 'Advanced' button near the bottom. You're now
looking at the file associations for .py files. Select the 'open'
action, and click 'Edit...'. If the application listed specifies a
Python24 path, then all .py files will (by default) be run by Python24.
If there's no path specified to python.exe, then Windows will search the
application path (as described above), and you might or might not be
running 2.4 by default.

I would *think* that uninstalling 2.4 should return these to their
previous values (i.e. 2.3), but I'm not sure. If they're not valid
values, then we can try to walk you through fixing them. (Note that I'm
giving directions that match Windows 2000, since that's what I'm on
right now. Things maybe a bit different if you're using a different
version of Windows, so be sure to include your Windows version in any
replies...)

Also, I'm presuming that the 2.4 packages that you installed use
distutils, which of course requires Python to be present. Ideally, you
should uninstall those packages *before* you uninstall Python 2.4. You
can try reinstalling 2.4, uninstalling the packages, and then
uninstalling 2.4 again... or, if the packages' files were deleted when
Python was uninstalled, you may have to hack your registry to remove
those entries from the uninstall list.

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #15
"Jive" <so*****@microsoft.com> writes:
It's only getting worse. I went to Add/remove programs and removed 2.4.
Now Python 2.4 numarray and Python 2.4 pywin extensions are still listed as
installed, but I cannot remove them.


You mentioned in your first post about "copying your site package"
.... did you actually make a copy or did you perhaps "move" your
site-packages directory from beneath 2.3 to under 2.4. If so, then
the uninstall entry in the registry is not going to find the files to
be able to uninstall them.

Worst case you should be able to reinstall Python 2.3, and your
extension packages from their installer images. Don't worry about the
uninstall list in Add/Remove programs as reinstalling the packages
will just update their entries. That will refresh the files in your
Python 2.3 tree, and providing you don't disable the option, should
re-establish file associations and what not back to a 2.3
installation.

-- David
Jul 18 '05 #16
"Jive" <so*****@microsoft.com> writes:
It's only getting worse. I went to Add/remove programs and removed 2.4.
Now Python 2.4 numarray and Python 2.4 pywin extensions are still listed as
installed, but I cannot remove them.


You mentioned in your first post about "copying your site package"
.... did you actually make a copy or did you perhaps "move" your
site-packages directory from beneath 2.3 to under 2.4. If so, then
the uninstall entry in the registry is not going to find the files to
be able to uninstall them.

Worst case you should be able to reinstall Python 2.3, and your
extension packages from their installer images. Don't worry about the
uninstall list in Add/Remove programs as reinstalling the packages
will just update their entries. That will refresh the files in your
Python 2.3 tree, and providing you don't disable the option, should
re-establish file associations and what not back to a 2.3
installation.

-- David
Jul 18 '05 #17

"Jeff Shannon" <je**@ccvcorp.com> wrote in message
news:10*************@corp.supernews.com...
Jive wrote:
As for checking the "application path", I don't know what that means.


Go to a command prompt, and type 'echo %path%'. You'll see a list of
all the directories that Windows looks in to find an executable -- i.e.,
if you type 'python', Windows will work through this list of directories
looking for a program named 'python', and will execute the first one it
finds. If you want 2.3 to be your default Python version, then you
should have 'C:\Python23\.' somewhere near the front of this list. If
'C:\Python24\.' is first in the list, then you may be running the wrong
version of Python.


It now has Python22 in the path! How do I change that? I just now
re-installed 2.3 BTW.
Jul 18 '05 #18

"Jeff Shannon" <je**@ccvcorp.com> wrote in message
news:10*************@corp.supernews.com...
Jive wrote:
As for checking the "application path", I don't know what that means.


Go to a command prompt, and type 'echo %path%'. You'll see a list of
all the directories that Windows looks in to find an executable -- i.e.,
if you type 'python', Windows will work through this list of directories
looking for a program named 'python', and will execute the first one it
finds. If you want 2.3 to be your default Python version, then you
should have 'C:\Python23\.' somewhere near the front of this list. If
'C:\Python24\.' is first in the list, then you may be running the wrong
version of Python.


It now has Python22 in the path! How do I change that? I just now
re-installed 2.3 BTW.
Jul 18 '05 #19

"David Bolen" <db**@fitlinxx.com> wrote in message
news:uw***********@fitlinxx.com...
"Jive" <so*****@microsoft.com> writes:
It's only getting worse. I went to Add/remove programs and removed 2.4.
Now Python 2.4 numarray and Python 2.4 pywin extensions are still listed as installed, but I cannot remove them.
You mentioned in your first post about "copying your site package"
... did you actually make a copy or did you perhaps "move" your
site-packages directory from beneath 2.3 to under 2.4. If so, then
the uninstall entry in the registry is not going to find the files to
be able to uninstall them.


I copied, not moved;

Worst case you should be able to reinstall Python 2.3, and your
extension packages from their installer images. Don't worry about the
uninstall list in Add/Remove programs as reinstalling the packages
will just update their entries. That will refresh the files in your
Python 2.3 tree, and providing you don't disable the option, should
re-establish file associations and what not back to a 2.3
installation.


I've re-installed it, but things are all screwed up still.
Jul 18 '05 #20

"David Bolen" <db**@fitlinxx.com> wrote in message
news:uw***********@fitlinxx.com...
"Jive" <so*****@microsoft.com> writes:
It's only getting worse. I went to Add/remove programs and removed 2.4.
Now Python 2.4 numarray and Python 2.4 pywin extensions are still listed as installed, but I cannot remove them.
You mentioned in your first post about "copying your site package"
... did you actually make a copy or did you perhaps "move" your
site-packages directory from beneath 2.3 to under 2.4. If so, then
the uninstall entry in the registry is not going to find the files to
be able to uninstall them.


I copied, not moved;

Worst case you should be able to reinstall Python 2.3, and your
extension packages from their installer images. Don't worry about the
uninstall list in Add/Remove programs as reinstalling the packages
will just update their entries. That will refresh the files in your
Python 2.3 tree, and providing you don't disable the option, should
re-establish file associations and what not back to a 2.3
installation.


I've re-installed it, but things are all screwed up still.
Jul 18 '05 #21
"Peter Hansen" <pe***@engcorp.com> wrote:
Only pure Python code can run without change on a newer interpreter.


Is the interpreter smart enough to rebuild a pyc (if the corresponding py
file is there of course) file that was built by a previous version?

Jul 18 '05 #22
"Peter Hansen" <pe***@engcorp.com> wrote:
Only pure Python code can run without change on a newer interpreter.


Is the interpreter smart enough to rebuild a pyc (if the corresponding py
file is there of course) file that was built by a previous version?

Jul 18 '05 #23
Matt Gerrans wrote:
"Peter Hansen" <pe***@engcorp.com> wrote:
Only pure Python code can run without change on a newer interpreter.


Is the interpreter smart enough to rebuild a pyc (if the corresponding py
file is there of course) file that was built by a previous version?


Yes. The .pyc files contain a magic cookie that is
different in each major version, so 2.4 will recompile
your 2.3 .pyc files. .pyc files are not portable
between versions, generally, excepting maintenance releases.

-Peter
Jul 18 '05 #24
Matt Gerrans wrote:
"Peter Hansen" <pe***@engcorp.com> wrote:
Only pure Python code can run without change on a newer interpreter.


Is the interpreter smart enough to rebuild a pyc (if the corresponding py
file is there of course) file that was built by a previous version?


Yes. The .pyc files contain a magic cookie that is
different in each major version, so 2.4 will recompile
your 2.3 .pyc files. .pyc files are not portable
between versions, generally, excepting maintenance releases.

-Peter
Jul 18 '05 #25
Peter Hansen wrote:
Matt Gerrans wrote:
"Peter Hansen" <pe***@engcorp.com> wrote:
Only pure Python code can run without change on a newer interpreter.

Is the interpreter smart enough to rebuild a pyc (if the corresponding
py file is there of course) file that was built by a previous version?

Yes. The .pyc files contain a magic cookie that is
different in each major version, so 2.4 will recompile
your 2.3 .pyc files. .pyc files are not portable
between versions, generally, excepting maintenance releases.

-Peter


In fact this hidden recompilation, when it has to be applied to large
libraries, can impact performance considerably. I first came across this
when testing an application (which had its own, quite significant,
libraries) for compatibility between Cygwin and the standard Windows
interpreter, across different version numbers.

It was only when I started to look at file creation times I twigged that
running the program (for the first time only) under a different regime
was causing the libraries to be recompiled. Then the reason for the
inconsistency in run times was then obvious.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #26
Peter Hansen wrote:
Matt Gerrans wrote:
"Peter Hansen" <pe***@engcorp.com> wrote:
Only pure Python code can run without change on a newer interpreter.

Is the interpreter smart enough to rebuild a pyc (if the corresponding
py file is there of course) file that was built by a previous version?

Yes. The .pyc files contain a magic cookie that is
different in each major version, so 2.4 will recompile
your 2.3 .pyc files. .pyc files are not portable
between versions, generally, excepting maintenance releases.

-Peter


In fact this hidden recompilation, when it has to be applied to large
libraries, can impact performance considerably. I first came across this
when testing an application (which had its own, quite significant,
libraries) for compatibility between Cygwin and the standard Windows
interpreter, across different version numbers.

It was only when I started to look at file creation times I twigged that
running the program (for the first time only) under a different regime
was causing the libraries to be recompiled. Then the reason for the
inconsistency in run times was then obvious.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #27

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4907
by: Jean-Christian Imbeault | last post by:
I have a user account on a RH Linux machine but no root access. I succesfully installed apache 1.3 under my /home/ account but can't get PHP to install properly. I have done the following...
1
2392
by: SAP BASIS Consultant | last post by:
Hello, I am installing SAP R/3 on Win2000/SQL Server. There is a CD with the SQL Server RDBMS, as well as another one with SP 3A (Both are from SAP). According to the SAP installation manual,...
0
2793
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: ...
5
2708
by: Gerald Hernandez | last post by:
One of my development PC's died, and I need to have legacy VS and VS.Net installed at the same time. On the now dead PC, I had VS6 installed prior to installing VS.Net. This worked just fine. On...
0
2615
by: Steve | last post by:
I'm posting this message here, so that someone googling here will be able to find it. I was having problems installing cx_Oracle on Solaris. The build would fail with a message: > ld: fatal:...
3
4086
by: jaggi | last post by:
Hi all, I downloaded DB2 enterprise edition from partnerworld on ibm.com and unzipped and untarred it and copied it to CD and tried installing on AIX using SMIT. I am getting errors while...
3
1609
by: mariantrygg | last post by:
Hi I have an app that uses the a2K run-time. I have just discovered that installing this app breaks an access2003 installation causing the user to have to repair the installation using the...
13
8331
by: bjhartin | last post by:
All, I was working at a client's site when I installed Visual Basic 6 on a machine at their request. Existing applications on this machine had specified version 4.0 of the Jet OLEDB provider in...
7
2901
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
11
5666
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: ...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7118
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
7323
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
5625
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
5049
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
4706
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
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.