473,378 Members | 1,360 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,378 software developers and data experts.

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 1951
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
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
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
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
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
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
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
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
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
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
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: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.