i have a repo to control my laptop with a PS3 controller as a remote, very handy to watch videos and stuff on a monitor with the keyboard far away :relieved:
it works fine and stuff but i'm tired of pulling the repo manually, resolving the dependencies and installing the package each time i refresh my ArchLinux installation...
python-virtualenv: to isolate the python packages from the system
without this package, the first lines of ./scripts/install.sh will fail and the python dependencies will be installed system-wide, which is not desirable for such a python project in production...
tk: to have access X server functionnalities, otherwise the program throws
> remote-PS3
Traceback (most recent call last):
File "/home/amtoine/.local/share/remote-PS3/run", line 10, in <module>
from remote import device, hooks, utils
File "/home/amtoine/.local/share/virtualenvs/remote-PS3/lib/python3.10/site-packages/remote/device.py", line 6, in <module>
from remote import hooks, prompt, state, utils
File "/home/amtoine/.local/share/virtualenvs/remote-PS3/lib/python3.10/site-packages/remote/hooks.py", line 7, in <module>
from remote import computer, state
File "/home/amtoine/.local/share/virtualenvs/remote-PS3/lib/python3.10/site-packages/remote/computer.py", line 3, in <module>
from pynput.keyboard import Controller as KeyboardController
File "/home/amtoine/.local/share/virtualenvs/remote-PS3/lib/python3.10/site-packages/pynput/__init__.py", line 40, in <module>
from . import keyboard
File "/home/amtoine/.local/share/virtualenvs/remote-PS3/lib/python3.10/site-packages/pynput/keyboard/__init__.py", line 31, in <module>
backend = backend(__name__)
File "/home/amtoine/.local/share/virtualenvs/remote-PS3/lib/python3.10/site-packages/pynput/_util/__init__.py", line 76, in backend
raise ImportError('this platform is not supported: {}'.format(
ImportError: this platform is not supported: ('failed to acquire X connection: libtk8.6.so: cannot open shared object file: No such file or directory', ImportError('libtk8.6.so: cannot open shared object file: No such file or directory'))
Try one of the following resolutions:
Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly
and i found [this stackoverflow thread](https://stackoverflow.com/a/48505199) and installed `tk`
- changes the version with the `pkgver` function
- simply calls `./scripts/install.sh` in the `package` function
other changes
i've generated VERSIONS.md with generate-versions.nu and applied the correct package version in the PKGBUILD after a local installation :+1:
i have a repo to control my laptop with a PS3 controller as a remote, very handy to watch videos and stuff on a monitor with the keyboard far away :relieved:
this is the remote-ps3 project :ok_hand:
it works fine and stuff but i'm tired of pulling the repo manually, resolving the dependencies and installing the package each time i refresh my ArchLinux installation...
the package
goat-remote-git
python-virtualenv
: to isolate thepython
packages from the system without this package, the first lines of./scripts/install.sh
will fail and thepython
dependencies will be installed system-wide, which is not desirable for such apython
project in production...tk
: to have access X server functionnalities, otherwise the program throwsTry one of the following resolutions:
other changes
i've generated
VERSIONS.md
withgenerate-versions.nu
and applied the correct package version in thePKGBUILD
after a local installation :+1: