Bug 53930

Summary: build-root path is compiled in
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: pythonAssignee: Mihai Ibanescu <mihai.ibanescu>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 2.2.3-7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-02-04 23:43:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2001-09-21 23:09:48 UTC
Description of Problem:

The build-root path is compiled into the .pyc and .pyo files. When printing
a traceback this path will be shown.


Version-Release number of selected component (if applicable):

python-2.2-0.3a


How Reproducible:

everytime

Steps to Reproduce:
1. cat <<"EOF" >test.py
import sys,traceback,xmlrpclib

try:
    xmlrpclib.dumps( ('foo', 'bar'), methodresponse=1 )
except:
    traceback.print_exc(file=sys.stdout)
EOF
2. python test.py


Actual Results:

Traceback (most recent call last):
  File "<stdin>", line 2, in ?
  File "/var/tmp/python-2.2-root/usr/lib/python2.2/xmlrpclib.py", line 737,
in dumps
    assert len(params) == 1, "response tuple must be a singleton"
AssertionError: response tuple must be a singleton


Expected Results:

no '/var/tmp/python-2.2-root' in the path of xmlrpclib.py

Comment 1 Trond Eivind Glomsrxd 2002-08-13 23:12:22 UTC
Still a problem.

Comment 2 Mihai Ibanescu 2002-10-21 21:43:35 UTC
Fixed in python-2.2.1-18.

Comment 3 Miloslav Trmac 2004-02-04 23:43:20 UTC
Fix confirmed in python-2.2.3-7.