I can install Python 2.4 on the Fedora 3 Linux system, but after I do a
number of Linux utilities and commands, like yum, stop working because
they were dependent on the Python 2.3 installation. What happens is that
Python 2.4 replaces the /usr/bin/python module with the Python 2.4
version. If I replace /usr/bin/python with the Python 2.3 version
executable, which is still on my system, that all the aforesaid modules
depend on, they start working again, but I can no longer execute
modules, like IDLE, which was part of my Python 2.4 distribution.
What is the solution to this ? The operating system was installed with
Python 2.3 and the development libraries but no tools, doc, or
otherwise. I have installed Python 2.4 with all the RPMs and copied down
the Python 2.4 documentation to my machine ( since python24-docs.rpm
gives one very little ). I would naturally like to use Python 2.4
without killing all the commands that depend on Python 2.3. No doubt
these commands have their modules in the site libraries for Python 2.3.
Of course I would love to update these dependencies to use Python 2.4
but newer RPMs for these commands do not exist.
I do not know whether this is a Python problem or a Fedora 3 problem but
I thought I would ask here first and see if anybody else had the same
problem. I imagine the problem might exist on other Linux systems. 7 3200
Dnia Tue, 05 Apr 2005 21:21:37 +0000, Edward Diener napisal(a): I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If I replace /usr/bin/python with the Python 2.3 version executable, which is still on my system, that all the aforesaid modules depend on, they start working again, but I can no longer execute modules, like IDLE, which was part of my Python 2.4 distribution.
What is the solution to this ? The operating system was installed with Python 2.3 and the development libraries but no tools, doc, or otherwise. I have installed Python 2.4 with all the RPMs and copied down the Python 2.4 documentation to my machine ( since python24-docs.rpm gives one very little ). I would naturally like to use Python 2.4 without killing all the commands that depend on Python 2.3. No doubt these commands have their modules in the site libraries for Python 2.3. Of course I would love to update these dependencies to use Python 2.4 but newer RPMs for these commands do not exist.
I do not know whether this is a Python problem or a Fedora 3 problem but I thought I would ask here first and see if anybody else had the same problem. I imagine the problem might exist on other Linux systems.
It's rather Fedora related, I have Python 2.2, 2.3 and 2.4 on my Ubuntu
box and they seem to coexist without problems.
If you can afford breaking package dependencies a bit, save a copy of
python2.3 binary somewhere and recreate it after installing Python 2.4,
OR make a symbolic link /usr/bin/python to /usr/bin/python2.3 and use
/usr/bin/python2.4 explicitely when you want to use the newer version. You
may also try to link modules from /usr/lib/python2.3/site-packages to
/usr/lib/python2.4/site-packages (all or just few of them) - most should
be upwards compatible. It may make Fedora utilities work again
(you haven't provided error messages, so it's hard to tell) even with
Python 2.4.
--
Przed siebie idziesz i zabijasz | http://apcoln.linuxpl.org
Nic nie czujac w serce sztylet wbijasz | http://biznes.linux.pl
----------------------------------------| http://www.juanperon.info
JID: Ar**********@ja bber.org | http://www.naszedzieci.org
Marcin Stêpnicki wrote: Dnia Tue, 05 Apr 2005 21:21:37 +0000, Edward Diener napisal(a):
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If I replace /usr/bin/python with the Python 2.3 version executable, which is still on my system, that all the aforesaid modules depend on, they start working again, but I can no longer execute modules, like IDLE, which was part of my Python 2.4 distribution.
What is the solution to this ? The operating system was installed with Python 2.3 and the development libraries but no tools, doc, or otherwise. I have installed Python 2.4 with all the RPMs and copied down the Python 2.4 documentation to my machine ( since python24-docs.rpm gives one very little ). I would naturally like to use Python 2.4 without killing all the commands that depend on Python 2.3. No doubt these commands have their modules in the site libraries for Python 2.3. Of course I would love to update these dependencies to use Python 2.4 but newer RPMs for these commands do not exist.
I do not know whether this is a Python problem or a Fedora 3 problem but I thought I would ask here first and see if anybody else had the same problem. I imagine the problem might exist on other Linux systems. It's rather Fedora related, I have Python 2.2, 2.3 and 2.4 on my Ubuntu box and they seem to coexist without problems.
If you can afford breaking package dependencies a bit, save a copy of python2.3 binary somewhere and recreate it after installing Python 2.4
After I installed Python 2.4, the Python 2.3 executable still existed on the
system. So the only difference which occurred is that the Python 2.4
installation copied to the /usr/bin/python executable the /usr/bin/python2.4
executable ( it would seem more understandable that /usr/bin/python be a
link instead ). So there is really no need to recreate it. Essentially the
two versions co-exist on the system but only one can be /usr/bin/python and
therefore executed when a Python script is is used as a command.
, OR make a symbolic link /usr/bin/python to /usr/bin/python2.3 and use /usr/bin/python2.4 explicitely when you want to use the newer version.
Yes, this is the right solution. I am so used to just executing a Python
script that I forgot that I could just say 'python2.4 ascript.py'.
You may also try to link modules from /usr/lib/python2.3/site-packages to /usr/lib/python2.4/site-packages (all or just few of them) - most should be upwards compatible.
By link do you simply mean moving the unique modules in the site packages
from the python2.3 directory to the python2.4 site-packages directory, or is
there something else I must do to see if they work ?
It may make Fedora utilities work again (you haven't provided error messages, so it's hard to tell) even with Python 2.4.
The errors when executed from the command line, when python2.4 is python,
involved not being able to find modules, no doubt because they were not in
the python2.4 site-packages subdirectory. When python2.3 is python, the
modules are found and everything works. Maybe it is just a matter of moving
of copying these modules on over and seeing if that fixes things. Do
site-packages have to "register" themselves in any way during setup ? I do
not think so, but I may be wrong.
Marcin Stepnicki wrote: It's rather Fedora related, I have Python 2.2, 2.3 and 2.4 on my
Ubuntu box and they seem to coexist without problems.
It's not a Fedora problem at all.
The 2.4.1 RPM's just move the default /usr/bin/python symlink to point
to the new Python24 instead of Python23 that is the system default. You
can move it back and then just point to it in the shebang in your
scripts (#!/usr/bin/python24)
Or you could compile 2.4 from source as I did, then you won't need to
change symlinks, just install it in /usr/local/bin/python24 or
something. I prefer this method, as it means you can have a seperate
2.4 install of wxPython etc (just change the LD_LIBRARY_PATH ).
Edward Diener wrote: I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If I replace /usr/bin/python with the Python 2.3 version executable, which is still on my system, that all the aforesaid modules depend on, they start working again, but I can no longer execute modules, like IDLE, which was part of my Python 2.4 distribution.
What is the solution to this ? The operating system was installed with Python 2.3 and the development libraries but no tools, doc, or otherwise. I have installed Python 2.4 with all the RPMs and copied down the Python 2.4 documentation to my machine ( since python24-docs.rpm gives one very little ). I would naturally like to use Python 2.4 without killing all the commands that depend on Python 2.3. No doubt these commands have their modules in the site libraries for Python 2.3. Of course I would love to update these dependencies to use Python 2.4 but newer RPMs for these commands do not exist.
I do not know whether this is a Python problem or a Fedora 3 problem but I thought I would ask here first and see if anybody else had the same problem. I imagine the problem might exist on other Linux systems.
Actually the Fedora RPMS supplied on the Python website are fine: http://www.python.org/2.4.1/rpms.html
Quoting from that page: # Q) Is it safe to install these RPMs on a Red Hat system? Will they over-write the system python and cause problems with other Red Hat applications that expect a different version of Python? # A) The RPMs that start with "python2.4" are built to not interfere with the system Python. They install as "/usr/bin/python2.4" and will not conflict with the system Python unless you are running on a system that ships the a version of Python which has the same major/minor number.
To invoke the interpreter with these packages, you will explicitly have to run "python2.4" . Note that all Python RPMs provided by Python.org and Red Hat provide a "/usr/bin/python2.4" (or similar, with major/minor number), even if they also provide "/usr/bin/python". So, yes, it should be safe.
Note that you may need to build and install a second copy of any packages which you need access to with the supplemental version of Python. You can build packages of these files for the Python 2.4 interpreters for packages which use Distutils, by using the command "python2.4 setup.py bdist_rpm".
This is by far the preferred way to install a different version of
Python to the default version provided with a distribution, as you don't
then conflict with packages that require the default version.
Also, it is better to do it like this using real packages than to rename
files manually. I have used the above successfully on Fedora Core 3 (and
other similar versions on other distro versions), if it doesn't work for
you there is a source RPM available to rebuild from
Hope that helps
David
David Fraser wrote: Edward Diener wrote:
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If I replace /usr/bin/python with the Python 2.3 version executable, which is still on my system, that all the aforesaid modules depend on, they start working again, but I can no longer execute modules, like IDLE, which was part of my Python 2.4 distribution.
What is the solution to this ? The operating system was installed with Python 2.3 and the development libraries but no tools, doc, or otherwise. I have installed Python 2.4 with all the RPMs and copied down the Python 2.4 documentation to my machine ( since python24-docs.rpm gives one very little ). I would naturally like to use Python 2.4 without killing all the commands that depend on Python 2.3. No doubt these commands have their modules in the site libraries for Python 2.3. Of course I would love to update these dependencies to use Python 2.4 but newer RPMs for these commands do not exist.
I do not know whether this is a Python problem or a Fedora 3 problem but I thought I would ask here first and see if anybody else had the same problem. I imagine the problem might exist on other Linux systems.
Actually the Fedora RPMS supplied on the Python website are fine: http://www.python.org/2.4.1/rpms.html Quoting from that page:
# Q) Is it safe to install these RPMs on a Red Hat system? Will they over-write the system python and cause problems with other Red Hat applications that expect a different version of Python? # A) The RPMs that start with "python2.4" are built to not interfere with the system Python. They install as "/usr/bin/python2.4" and will not conflict with the system Python unless you are running on a system that ships the a version of Python which has the same major/minor number.
To invoke the interpreter with these packages, you will explicitly have to run "python2.4" . Note that all Python RPMs provided by Python.org and Red Hat provide a "/usr/bin/python2.4" (or similar, with major/minor number), even if they also provide "/usr/bin/python". So, yes, it should be safe.
Note that you may need to build and install a second copy of any packages which you need access to with the supplemental version of Python. You can build packages of these files for the Python 2.4 interpreters for packages which use Distutils, by using the command "python2.4 setup.py bdist_rpm".
This is by far the preferred way to install a different version of Python to the default version provided with a distribution, as you don't then conflict with packages that require the default version.
I do have a separate package installed for Python2.4 and it coexists
with Python2.3. The real problem is that a great number of other
packages, which are initially part of the system, depend on Python2.3 so
I must leave /usr/bin/python as Python2.3. I do not know of a way to
reinstall these other packages to use Python2.4 instead. Does the line
above, "python2.4 setup.py bdist_rpm" mean that I am supposed to run
this against each of these other package's rpm files and substitute for
"bdist_rpm" the name of the rpm file ? Also, it is better to do it like this using real packages than to rename files manually. I have used the above successfully on Fedora Core 3 (and other similar versions on other distro versions), if it doesn't work for you there is a source RPM available to rebuild from
Is "bdist_rpm" the source rpm for these packages which currently depend
on Python2.3 ?
Further help getting my Fedora 3 packages which depend on Python2.3 to
use Python2.4 would be appreciated.
Another solution is to just install 2.4 and then make an alias for
yum='/usr/bin/python2.3 yum' or whatever the path is :)
Edward Diener wrote: I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If I replace /usr/bin/python with the Python 2.3 version executable, which is still on my system, that all the aforesaid modules depend on, they start working again, but I can no longer execute modules, like IDLE, which was part of my Python 2.4 distribution.
What is the solution to this ? The operating system was installed with Python 2.3 and the development libraries but no tools, doc, or otherwise. I have installed Python 2.4 with all the RPMs and copied down the Python 2.4 documentation to my machine ( since python24-docs.rpm gives one very little ). I would naturally like to use Python 2.4 without killing all the commands that depend on Python 2.3. No doubt these commands have their modules in the site libraries for Python 2.3. Of course I would love to update these dependencies to use Python 2.4 but newer RPMs for these commands do not exist.
I do not know whether this is a Python problem or a Fedora 3 problem but I thought I would ask here first and see if anybody else had the same problem. I imagine the problem might exist on other Linux systems.
Joseph Garvin wrote: Another solution is to just install 2.4 and then make an alias for yum='/usr/bin/python2.3 yum' or whatever the path is :)
If it were just 'yum' under Fedora 3, I could probably do that but
looking at the dependencies on the python2.3 package in Synaptic there
must be about 50 other packages mentioned. Which one of these
specifically use python2.3 to execute their .py scripts and which ones
just use python2.3 shared libraries is another matter which will take
much work to discover. But thanks for your suggestion nonetheless. Edward Diener wrote:
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If I replace /usr/bin/python with the Python 2.3 version executable, which is still on my system, that all the aforesaid modules depend on, they start working again, but I can no longer execute modules, like IDLE, which was part of my Python 2.4 distributio n.
What is the solution to this ? The operating system was installed with Python 2.3 and the development libraries but no tools, doc, or otherwise. I have installed Python 2.4 with all the RPMs and copied down the Python 2.4 documentation to my machine ( since python24-docs.rpm gives one very little ). I would naturally like to use Python 2.4 without killing all the commands that depend on Python 2.3. No doubt these commands have their modules in the site libraries for Python 2.3. Of course I would love to update these dependencies to use Python 2.4 but newer RPMs for these commands do not exist.
I do not know whether this is a Python problem or a Fedora 3 problem but I thought I would ask here first and see if anybody else had the same problem. I imagine the problem might exist on other Linux systems. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Guillaume Gervais |
last post by:
Hello there,
I'm using Debian GNU/Linux testing/unstable (sarge) as an operating system.
About a month ago, I installed python 2.3 on my machine, from the sources.
And it worked perfectly. But about 3 weeks ago, I made a update of the
packages list (apt-get update) followed by a apt-get dist-upgrade. I short,
I upgraded Debian.
But among the ugraded packages was python2.3. And it doesn't seem to
|
by: timothy.williams |
last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2
machine.
I have python in a non-standard place, but I'm using --prefix with the
configure script to point to where I have everything. The make install
in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/
directory
libwx_base-2.5.so@ libwx_gtk_adv-2.5.so.3.0.0*
libwx_base-2.5.so.3@ libwx_gtk_core-2.5.so@
|
by: Darren L. Weber |
last post by:
The following is a first attempt to almost create a shell script for
installation of ATLAS and LAPACK. It does not work right now and it is
specific to a particular platform. It is posted here to archive it and
throw into the public domain, maybe others will find it useful. It is
at least a documentation of some relevant notes on the procedure.
Corrections and updates would be really appreciated. Alternatives to
automate this process...
|
by: Gary Wessle |
last post by:
Hi
I am trying to install NumPy in my debian/testing linux
2.6.15-1-686.
with no numpy for debian/testing, I am left alone, since the
experimental version available by debian will result in a dependency
nightmares,
so after unpacking the downloaded file "numpy-0.9.6.tar.gz"
|
by: gmax2006 |
last post by:
Hi,
I am having hard time with installing MySQLdb on Linux.
My Python version is 2.3. I have downloaded
"MySQL-python-1.2.1_p2.tar.gz" from sourceforge. The README file
asks for MySQL installation. My MySql server is on another box. That is
why I think I should to install just the MySql client (am I right?).
My Linux is "Red Hat Enterprise Linux ES release 4 (Nahant)"
| |
by: Nico Grubert |
last post by:
Hi there,
I'd like to install Python 2.3.5. on a 64-Bit OS (Suse Linux Enterprise
Server 10) on an AMD Opteron 64-Bit machine.
I have to use Python 2.3.5.
Do I need a special source archive or can I use "Python-2.3.5.tgz" from
http://www.python.org/ftp/python/2.3.5/Python-2.3.5.tgz ?
Is there anything special I have to care about or is installing Python
|
by: Yansky |
last post by:
I asked my hosting company if they would upgrade Python on my server
to the latest version. They responded with:
"Sorry no. We tend to stick with what comes packaged with the unix
distribution to ease maintenance issues.
There is nothing stopping you from running your own version of python
from within your own account. Download the source and compile it and
install it into your own space. Adjust the fist line of your python
scripts to...
|
by: jgelfand |
last post by:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":
building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include...
|
by: everlast |
last post by:
I'm installing BLT module (among others) in my directories - not as a root user. The installation of Tcl and Tk went fine(that means that all of my system variables like PREFIX are set correctly), but when I try to install BLT i get this error message with make:
(cd src; make all)
make: Entering directory `/usr/OpenFOAM/ext/src/tcl/blt2.4z/src'
gcc -c -Wall -m64 -fPIC -I. -I. -I/usr/OpenFOAM/ext/Linux/include bltAlloc.c
In file...
|
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...
|
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...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |