Bug 908669

Summary: Python path specified incorrectly in beakerlib-journalling
Product: [Fedora] Fedora Reporter: Miroslav Hradílek <mhradile>
Component: beakerlibAssignee: Petr Muller <pmuller>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 17CC: ohudlick, pmuller, psplicha
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: beakerlib-1.7-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 908670 (view as bug list) Environment:
Last Closed: 2013-05-22 03:19:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 908670    

Description Miroslav Hradílek 2013-02-07 10:07:08 UTC
Description of problem:
File '/usr/bin/beakerlib-journalling' contains '#!/usr/bin/env python' while it should contain full path '#!/usr/bin/python' instead.

This would normally be no problem but when in use with software collections it makes python testing impossible because collections do not necessarily have to contain all python modules or compatible python distribution in general. 

Version-Release number of selected component (if applicable):
beakerlib-1.6-1.fc17.noarch

How reproducible:
Always

Actual results:
# scl enable python27 'make run'
chmod a+x runtest.sh test.py
./runtest.sh
Traceback (most recent call last):
  File "/usr/bin/beakerlib-journalling", line 30, in <module>
    import rpm
ImportError: No module named rpm
rlJournalStart: Failed to initialize the journal. Bailing out...
make: *** [run] Error 1

Expected results:
Just run the test.

Additional information:
This may affect other beakerlib python scripts as well.

Comment 2 Fedora Update System 2013-04-30 15:11:57 UTC
beakerlib-1.7-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/beakerlib-1.7-1.fc19

Comment 3 Fedora Update System 2013-04-30 20:05:23 UTC
Package beakerlib-1.7-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing beakerlib-1.7-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7067/beakerlib-1.7-1.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-05-22 03:19:14 UTC
beakerlib-1.7-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.