473,662 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Upgrading to 2.3 from 2.2, questions

Hello,

(Note: if there is a FAQ that covers this issue just give me the URL. I
checked python.org's General and Windows FAQ's and didn't see anything.)

I am about to upgrade from Python 2.2 to 2.3. Here are a few questions:

- Do I need to uninstall 2.2 first?
- Are there any paths I should add to my Win 2k PATH environment variable?
- I am running on Windows 2000 and I have several site-packages installed.
These were installed using individual one-click installation programs (thank
you module writers). Do I need to rerun each of the installations again,
after I upgrade? Or, is there a directory or two I can simply copy over?
- Anything I should do before upgrading to preserve my current setup, or
other caveats?

Thanks.
Jul 18 '05 #1
4 1697
Robert Oschler wrote:
(Note: if there is a FAQ that covers this issue just give me the URL. I
checked python.org's General and Windows FAQ's and didn't see anything.)
I think it's a frequently asked question, but it's not a FAQ...
I am about to upgrade from Python 2.2 to 2.3. Here are a few questions:

- Do I need to uninstall 2.2 first?
I don't know if there's an official answer other than "yes". I don't
know if there's a safe answer other than "yes".
- Are there any paths I should add to my Win 2k PATH environment variable?
Same as whatever you have with Python 2.2.... I try never to put
apps in my PATH, but use lots of .BAT files to run things and put
all those in a single \BIN folder that is in my PATH. Seems to
work out much cleaner that way.
- I am running on Windows 2000 and I have several site-packages installed.
These were installed using individual one-click installation programs (thank
you module writers). Do I need to rerun each of the installations again,
after I upgrade? Or, is there a directory or two I can simply copy over?
While it might work, it's not guaranteed. Extensions need to
be compiled for the specific version, while pure Python packages
will generally run as-is if you just copy them (generally they
are all in python/lib/site-packages). No guarantees again.
- Anything I should do before upgrading to preserve my current setup, or
other caveats?


Basically, nothing other than uninstall and full install of new
version plus all extensions is guaranteed to work, IMHO and IME.
On the other hand, I've often gotten by without uninstalling
and by copying or just leaving site-packages as-is, with the
exception of getting new versions of anything that has a .pyd
or .dll (C extensions).

-Peter
Jul 18 '05 #2
Peter Hansen wrote:
Robert Oschler wrote:
- Do I need to uninstall 2.2 first?

I don't know if there's an official answer other than "yes". I don't
know if there's a safe answer other than "yes".

I'm pretty sure that there should be no problems with having different
versions of Python running side-by-side. I have had 2.0 and 2.1 on the
same machine, and 2.1 and 2.2, with no problems at all.
- I am running on Windows 2000 and I have several site-packages
installed.
These were installed using individual one-click installation programs
(thank
you module writers). Do I need to rerun each of the installations
again,
after I upgrade? Or, is there a directory or two I can simply copy
over?

While it might work, it's not guaranteed. Extensions need to
be compiled for the specific version, while pure Python packages
will generally run as-is if you just copy them (generally they
are all in python/lib/site-packages). No guarantees again.

As Peter says, any packages that contain C extension (.pyd) modules need
to be compiled for the specific version of Python. You will need to
download new versions of those packages. Packages that are pure Python
*should* run just as well under the new version as the old version,
providing that it doesn't trip over any of the possible
backwards-compatibility issues (such problems are moderately unusual) --
however, if you copy from site-packages to site-packages, be sure to
delete any .pyc files because those are probably *not*
version-portable. You're probably better off re-running the installer,
if it's still available. (Also, odds are good that there's a new
version of those packages, and while you're upgrading Python is a good
time to upgrade other things too, so you may want to go ahead and
re-download those packages as well.)

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #3
Jeff Shannon wrote:
Peter Hansen wrote:
Robert Oschler wrote:
- Do I need to uninstall 2.2 first? I don't know if there's an official answer other than "yes". I don't
know if there's a safe answer other than "yes".


I'm pretty sure that there should be no problems with having different
versions of Python running side-by-side. I have had 2.0 and 2.1 on the
same machine, and 2.1 and 2.2, with no problems at all.


Robert is quite right that multiple versions can work together
simultaneously. In fact, some of us have to do development
which ensures compatibility with different versions by running
automated tests under each of several installed copies of Python.

(I took the OP's subject line "upgrading" to imply this wasn't
what he wanted to do, but it is certainly feasible and simple.)
however, if you copy from site-packages to site-packages, be sure to
delete any .pyc files because those are probably *not*
version-portable.


(If the .py files still exist, they will quietly be recompiled to
..pyc files by the new version, so this shouldn't normally be
a concern. If a given .py file is gone and only the .pyc file
exists, I believe you should get a "RuntimeErr or - Bad Magic
number in .pyc" message. As I mentioned above, we often
alternate between versions of Python and rarely have to pay
special attention to the .pyc files that are left in our
application directories, and site-packages should be no
different.)

-Peter
Jul 18 '05 #4
"Robert Oschler" <no************ @nospam.com> wrote in message news:<gO******* *************@a delphia.com>...
Hello,

(Note: if there is a FAQ that covers this issue just give me the URL. I
checked python.org's General and Windows FAQ's and didn't see anything.)

I am about to upgrade from Python 2.2 to 2.3. Here are a few questions:

- Do I need to uninstall 2.2 first?
- Are there any paths I should add to my Win 2k PATH environment variable?
- I am running on Windows 2000 and I have several site-packages installed.
These were installed using individual one-click installation programs (thank
you module writers). Do I need to rerun each of the installations again,
after I upgrade? Or, is there a directory or two I can simply copy over?
- Anything I should do before upgrading to preserve my current setup, or
other caveats?

Thanks.


It's about time I try to give answers. Here I go...

1. No, and as a side note the GUI installer for windows gives you an
option to backup a lot of old python stuff in case you want to.
2. Did you have to with 2.2? I'm going to say no and stick with it
unless someone out there has something.
3. Not sure, but I'm leaning towards yes.
4. See #1 and back stuff up yourself too (just in case you need
another copy of things).
Jul 18 '05 #5

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

Similar topics

2
1420
by: Zachary | last post by:
Hello, I've heard some rumors about Python 3.0. I am wondering what sort of upgrading I'll have to do, as I have also heard people on this group asking us to use certain modules or operators or whatever. Is it a major sort of upgrade? What would I need to do to prepare for it? Thanks, Zack
5
512
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a starting point the compiler can no longer find the function as at the bottom of this posting, that was in the Global.asax.vb file. All the function does is give an easy / quick way of getting the application
13
2635
by: Noesis Strategy | last post by:
When I ordered my new laptop, Sony didn't offer Access 2003 in its bundles. Recently, I have begun to design Access databases using an copy of Access 2002 from my previous laptop. It works fine, but I would like to have all the office apps on the same version. So I have a few questions: 1) Is the file format the same as 2002? Can 2002 users read 2003 files? 2) What are the major reasons for upgrading to 2002 ?
1
1017
by: ww | last post by:
I have been leaning C# for a month or so now. I'm enjoying it. However I don't have the newest version of viusal Studio.NET. You know, VS ..NET 2003. Will I miss much if I stay with my older version of VS .NET or should I really look into upgrading? If so, Why? thanks. -w w
4
1544
by: Spurry Moses | last post by:
I know it's in Beta 2, but I can't report any good experiences with upgrading a project form 2003 to 2005. I tried to upgrade a 2003 project to C# Express 2005. My application has hardly anything, as I'd just started on it. It contains just a main form, and about box and a few class files. After upgrading it - which seemed to go smoothly, my main form wouldn't load. Some errors because of a custom control that I had created. I deleted...
15
5062
by: Asaf | last post by:
Hi, I have received a source code project written in C++ VS.NET 2003 on .NET 1.1 that compiles without a problem. I have opened this source code in VS.NET 2005 and the Log wizard says that Errors 0 and Warnings 0. When trying to recompile the project I have received these errors:
4
1402
by: John Dann | last post by:
Couple of questions about upgrading an existing installation of VB2003 (Pro) to 2005 (Pro): 1. Not having dabbled in VB2005 yet, I'd feel more comfortable also keeping a working VB2003 environment available to me for program maintenance etc. Is there likely to be any problem in doing this? And, as an addendum to this question and something that may be obvious but not to me! To what extent is VB2005 tied to v2.0 of the Framework?
5
1356
by: John | last post by:
Hi I have an access 97 app which I have the option to upgrade to either access 2000 or access 2003. Which one should I choose. I have heard nasty things about access 2000. Thanks Regards
6
1602
by: JimLad | last post by:
Hi, We have a major ASP app that we are in the process of upgrading to ASP.NET 1.1 and probably on to ASP.NET 2.0 in the middle of next year. (We will also be upgrading to SQL2K5 at the same time). The current architecture is heavily based on the client side, both for validation and data access. The asp page is returned and then data is modified or selected using XMLHTTP objects embedded on the page, which post or get to a data...
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
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 we have to send another system
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.