Red Hat Bugzilla – Bug 134315
Compatibility package needed for applications with embedded Python engine
Last modified: 2007-11-30 17:07:13 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.4.3)
Description of problem:
To ensure backward compatibility, a Python 2.2 package is needed in
addition to the standard Python 2.3. Applications built on RHEL3 with
an embedded Python engine will not be able to run on RHEL4 otherwise.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compile the attached program on an RHEL3 system with the command
cc -I/usr/include/python2.2 demo.c
/usr/lib/python2.2/config/libpython2.2.a -ldl -lpthread -lutil -lm -o demo
2.Run this on RHEL4 (beta): ./demo
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named os
Just the string
as if the program is run on RHEL3.
It would not help to fiddle with PYTHONPATH so demo would find the
Python 2.3 modules; the 2.2 engine can not load 2.3 modules.
It appears as it would be easy for Python 2.2 and Python 2.3 to
coexist. Almost everything, except for the /usr/bin/python and
/usr/bin/python2 executables, contain the 2.3 version number in the path.
Created attachment 104625 [details]
Demo program including a Python engine.
Red Hat does not guarantee binary compatibility across major releases for all
packages. For an explanation of Red Hat's compatibility support across major
releases, see the Red Hat Enterprise Linux 4 Application Compatibility Whitepaper: