Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force python version for dstat and other tools #111

Open
hechi opened this issue Feb 14, 2017 · 2 comments
Open

Force python version for dstat and other tools #111

hechi opened this issue Feb 14, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@hechi
Copy link

hechi commented Feb 14, 2017

Hey,

i enabled dstat-0.7.2 and start my experiments. But there was no output of dstat.
I found out that dstat-0.7.2 printed an error which is piped to /dev/null on the ssh cli invocation.
The error was a python syntax error which appears between python2.y and python3.x scripts.

/../dstat-0.7.2/dstat", line 119
    except getopt.error, exc:

Probably it would be a good idea for the peelframework to force specific python versions or print the dstat error messages. Just a suggestion :)

@aalexandrov
Copy link
Member

I guess the workaround would be to call dstat indirectly

/usr/bin/python2 /usr/bin/dstat

instead of

/usr/bin/dstat

@aalexandrov aalexandrov self-assigned this Feb 16, 2017
@aalexandrov aalexandrov added this to the Version 1.1.x milestone Feb 16, 2017
@hechi
Copy link
Author

hechi commented Feb 16, 2017

Yes as a workaround it would work, but not every python environment has to be in /usr/bin/ :)
probably it would be enough if you but the error pipe into the log and not to /dev/null
thx for helping :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants