Bug 908669 - Python path specified incorrectly in beakerlib-journalling
Summary: Python path specified incorrectly in beakerlib-journalling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: 17
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 908670
TreeView+ depends on / blocked
 
Reported: 2013-02-07 10:07 UTC by Miroslav Hradílek
Modified: 2016-09-20 02:09 UTC (History)
3 users (show)

Fixed In Version: beakerlib-1.7-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 908670 (view as bug list)
Environment:
Last Closed: 2013-05-22 03:19:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.