[Tutor] python 2.2 configuration question

Lloyd Kvam pythontutor@venix.com
Tue, 25 Jun 2002 18:48:57 -0400


You may need to do some cleanup to get your Python modules working right.
Python2.2 uses some different C coding conventions, so compiled C modules
are different between the versions.

I dealt with the 1.5.2 by renaming (mv) /usr/bin/python to /usr/bin/rhpython.
This left /usr/local/bin/python (version 2.2) as my default.  That made it easy
to install other modules.  It also allowed idle to work.

The problem is that some of the redhat utilities REQUIRE 1.5.2, so they will
fail (often quietly, with no error messages) unless you mv rhpython back to
/usr/bin/python

White, Mike wrote:

> I've got a question about Python configuration.  I am running Red Hat 7.3
> and Gnome 1.4.  Red Hat installs version 1.5.2 and version 2.2 of Python.  I
> have found that when I want to run a Python script, Red Hat will start up
> version 1.5.2 by default.  If I start the script with 2.2, Python does not
> see all of the modules it needs.  For instance, I have been trying to run
> rpcalc, which requires Python 2.2, PyQT, and QT to be installed.  I have all
> of that, but the QT stuff was installed in the 1.5.2 directory.  I copied
> all of the QT stuff into the 2.2 directory and Python 2.2 sees the QT
> modules ok, but stops when QT tries to call another module that I can't find
> in the 1.5.2 directories.  What I'm wondering is can I configure 2.2 to see
> all modules, even the ones in the 1.5.2 directories, and will they work?
> Red Hat installed both Pythons at install time.  Should I delete 2.2 and
> reinstall a tar ball and configure it there or is there an easier way?
> 
> Mike White
> 
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 


-- 
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice: 
603-443-6155
fax: 
801-459-9582