How to Work Around No Python-Pip in Trisquel
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
HI, I am trying to use a software named "hid-tools":
https://gitlab.freedesktop.org/libevdev/hid-tools/
In the instructions, it seems to require using python3-pip, however it seems Trisquel does not allow that package manager to exist. How can I use this GPLv2 software in Trisquel without Pip?
For context, I am trying to troubleshoot an issue with compatibility with a Wacom serial tablet I have. Here is the thread:
https://gitlab.freedesktop.org/libevdev/hid-tools/ says:
The hid-tools repository does not need to be installed, all tools and kernel tests can be run straight from the git repository, for example the following commands clone the repository and run the hid-recorder tool.
$ git clone https://gitlab.freedesktop.org/libevdev/hid-tools
$ cd hid-tools
$ sudo ./hid-recorder
I did those commands and they do not work.
I get the error:
sudo: unable to execute ./hid-recorder: No such file or directory
However when I type "ll" I see the following file and permissions set:
-rwxr-xr-x 1 davidphilipegil davidphilipegil 805 Jun 4 12:00 hid-recorder
name at domain writes:
> HI, I am trying to use a software named "hid-tools":
>
> https://gitlab.freedesktop.org/libevdev/hid-tools/
>
> In the instructions, it seems to require using python3-pip, however it
> seems Trisquel does not allow that package manager to exist. How can I
> use this GPLv2 software in Trisquel without Pip?
The instructions do say that installation isn't needed at all. The
instructions say that you can clone the git repo and run the tools right
from the repo.
Regarding the broader question: I've found that it is possible to
manually download and install the python packages that pip
provides. After all, pip is merely running build and installation
instructions that already exist in those packages.
--
"Cut your own wood and it will warm you twice"
The instructions produce the error:
sudo: unable to execute ./hid-recorder: No such file or directory
... after I enter "sudo ./hid-recorder" -- yes the file exists.
name at domain writes:
> The instructions produce the error:
> sudo: unable to execute ./hid-recorder: No such file or directory
>
> ... after I enter "sudo ./hid-recorder" -- yes the file exists.
Do you have python3 installed?
--
"Cut your own wood and it will warm you twice"
Yes. "which python3" says:
/usr/bin/python3
David Philipe Gil <name at domain> writes:
> Yes. "which python3" says:
> /usr/bin/python3
OK, so how about:
$ sudo python3 ./hid-recorder
...or
$ python3 ./hid-recorder
...if you already have access to /dev/hidrawX
--
"Cut your own wood and it will warm you twice"
When I type...
sudo python3 ./hid-recorder
I get the following output...
Traceback (most recent call last):
File "./hid-recorder", line 20, in
import hidtools.cli.record
File
"/home/davidphilipegil/Repositories/hid-tools/hidtools/cli/record.py",
line 20, in
import click
ModuleNotFoundError: No module named 'click'
David Philipe Gil <name at domain> writes:
> When I type...
>
> sudo python3 ./hid-recorder
>
> I get the following output...
>
> Traceback (most recent call last):
> File "./hid-recorder", line 20, in
> import hidtools.cli.record
> File
> "/home/davidphilipegil/Repositories/hid-tools/hidtools/cli/record.py",
> line 20, in
> import click
> ModuleNotFoundError: No module named 'click'
python-click and python3-click should be installable on trisquel.
--
"Cut your own wood and it will warm you twice"
That worked! It also complained about the "parse" library and solved it the same way, "install python3-parse". I did not know you could install python 3 libraries in Trisquel without pip. not bad!
Thanks!
Hi. you can add ppa repository with these commands (copy & paste in terminal):
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
hid-tools is free software but be careful, there is non-free softwares in ppa repository.
- Vous devez vous identifier ou créer un compte pour écrire des commentaires