Bug 1024297

Summary: dstat should use system python interpreter
Product: [Fedora] Fedora Reporter: Elias Persson <eprpg7>
Component: dstatAssignee: Jiri Popelka <jpopelka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: adrian, jpopelka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dstat-0.7.2-12.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-02 04:53:38 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:

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.