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

We found a error with SoX, did you install it? #5

Open
Lew-Rockwell-Fan opened this issue Jan 9, 2021 · 3 comments
Open

We found a error with SoX, did you install it? #5

Lew-Rockwell-Fan opened this issue Jan 9, 2021 · 3 comments

Comments

@Lew-Rockwell-Fan
Copy link

Under Openbox in pclos, in lxterminal running bash as root, I just get this error message for every key:
We found a error with SoX, did you install it?
Python, sox and sox-devel are installed.

Question: If I can get this working, can I get it to run automatically in any login terminal or tty?

@hiringManager
Copy link

I get the same error, but experience no issues. However I'm using a python3 version I hacked together.

https://askubuntu.com/questions/290099/how-to-run-a-script-during-boot-as-root
tl;dr use crontab or create a systemd service to have it run automatically.

Also consider if you're using xinitrc, you could have it start at login and have your polkit(lxpolkit I'm guessing) prompt you after login - to avoid potential issues. A line at the end of your .bashrc running a script would be the best solution imo. (this app allows for multiple instances, so you should do > grep process; sudo linux-clicky &) I would take this route to save yourself a headache.

@robidev
Copy link

robidev commented Jun 10, 2023

Ive encountered this error as well. A manual test confirms that the play command does not work with sudo or su. It seems to me to be related, that if you run as a non-root user, you cannot let root play sounds, as described here; https://superuser.com/questions/756334/pulseaudio-no-sound-after-su-to-root-no-default-audio-device-configured So I think it only works if your program gets privileges as non-root user, or you ensure sox works under root

@slabua
Copy link

slabua commented Feb 17, 2024

Solved with sudo chmod 664 /dev/input/event*.
Then it is possible to execute main.py without root privileges.

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

No branches or pull requests

4 participants