Bug 1024297 - dstat should use system python interpreter
Summary: dstat should use system python interpreter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dstat
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 11:05 UTC by Elias Persson
Modified: 2013-11-02 04:53 UTC (History)
2 users (show)

Fixed In Version: dstat-0.7.2-12.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-02 04:53:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Elias Persson 2013-10-29 11:05:47 UTC
Description of problem:
Hashbang of /usr/bin/dstat is "#!/usr/bin/env python". Since it depends on a specific version of python, it should use that specific version of python (i.e. "#!/usr/bin/python" (or python2, or python2.7))


Version-Release number of selected component (if applicable):
dstat-0.7.2-10.fc19.noarch


How reproducible:
Always


Steps to Reproduce (using virtualenvwrapper commands, with python3 installed):
1. Create virtualenv: mktmpenv -p /usr/bin/python3
2. Run dstat


Actual results:
$ dstat
  File "/usr/bin/dstat", line 120
    except getopt.error, exc:
                       ^
SyntaxError: invalid syntax


Expected results:
Normal dstat results.

Comment 1 Fedora Update System 2013-10-29 11:42:07 UTC
dstat-0.7.2-12.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/dstat-0.7.2-12.fc19

Comment 2 Fedora Update System 2013-10-30 01:56:15 UTC
Package dstat-0.7.2-12.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 dstat-0.7.2-12.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-20280/dstat-0.7.2-12.fc19
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-11-02 04:53:38 UTC
dstat-0.7.2-12.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.