-
Notifications
You must be signed in to change notification settings - Fork 76
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
flash.py and other python scripts does not work on Arch Linux #72
Comments
Alright cool! :) |
Also, a wonder. What's up with the weird header in the sh-python files? #!/bin/sh
''':'
':'; python=$(command -v python)
':'; [ -z "$python" ] || [ -n "${python##*usr*}" ] && python="/usr/bin/python"
':'; exec "$python" "$0" "$@" Wouldn't a simple env in the shebang do it? #!/usr/bin/env python |
Thanks @erikw for your feedback. Most likely 1.3.8 will address most of them (that's because 1.3.7 it's already on the way). |
That wried shebang attempts to locate the correct python path in order to execute the script. Normally a /usr/bin/env python should do it, but there are cases in which there's a local python (e.g. installed via homebrew) that does not contain the required modules for the script to run. |
User's output of journalctl: when executing LOCK: Jul 23 12:26:16 warchx su[6130]: (to wesley) root on none
He recorded the screen showing what happens: http://youtu.be/ShjmSHtaKzc |
Just changed
to
in file /opt/prey-node-client/lib/agent/actions/lock/linux/prey-lock and now it works. :) With the first code, Arch Linux still uses python3. |
Thanks for the feedback @wesleycota. There are some other priorities in the pipeline right now, but I'll look into the issue as soon as possible. |
as a reminder, the weird lined pointed by erikw on 15 Jan 2015 still present and ALL the envs still point to python where not all distros have python as version 2 interpreter. |
Version: prey-node-client 1.3.6
OS: Arch Linux
Currently the feature of sending messages to a Arch Linux laptop does not work. This is because
/opt/prey-node-client/lib/agent/actions/alert/linux/flash.py
is a python2 script but in arch the binary "python" is a symlink to python3.Update:
The same goes for
/opt/prey-node-client/lib/agent/actions/lock/linux/pre-lock
and all other python scripts.The text was updated successfully, but these errors were encountered: