How to Work Around No Python-Pip in Trisquel

11 replies [Last post]
davidpgil
Offline
Joined: 08/26/2015

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://github.com/linuxwacom/xf86-input-wacom/issues/123

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

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

davidpgil
Offline
Joined: 08/26/2015

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

yrk
yrk

I am a member!

Offline
Joined: 08/28/2012

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"

davidpgil
Offline
Joined: 08/26/2015

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.

yrk
yrk

I am a member!

Offline
Joined: 08/28/2012

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"

davidpgil
Offline
Joined: 08/26/2015

Yes. "which python3" says:
/usr/bin/python3

yrk
yrk

I am a member!

Offline
Joined: 08/28/2012

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"

davidpgil
Offline
Joined: 08/26/2015

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'

yrk
yrk

I am a member!

Offline
Joined: 08/28/2012

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"

davidpgil
Offline
Joined: 08/26/2015

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!

wfsyhf
Offline
Joined: 05/07/2020

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.