1

I'm trying to install uinput and found the command I need to run (pip install python-uinput)

except that I get this error when I try to run it:

Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement python-uinput
No distributions at all found for python-uinput
Storing complete log in /root/.pip/pip.log

does anybody know what I'm doing wrong?

Blü
  • 631
  • 2
  • 11
  • 26

1 Answers1

2

You can install the library manually. The official webpage says how to do it.

Basically you download the provided tarball unpack it and run the setup script.

Fastest way to download the tarball is using the program wget:

wget http://tjjr.fi/sw/python-uinput/releases/python-uinput-0.10.2.tar.gz

then to unpack it you run

tar -xzf python-uinput-0.10.2.tar.gz

and at last you build and install the module:

python setup.py build
python setup.py install

It seems that some dependent libraries are missing on your RPi. I needed to install libudev-dev to got the module to build the module.

jnovacho
  • 2,825
  • 6
  • 27
  • 44
  • how do I download the tarball on the raspberry pi, do I have to download it on windows and then put it on a usb stick? – Blü Apr 21 '15 at 08:41
  • I was finally able to test on the raspberry and when I try to build it, It says that ev.py is missing – Blü Apr 24 '15 at 08:38
  • According this thread (https://www.raspberrypi.org/forums/viewtopic.php?t=75681&p=541203), it should work fine. Check which python version you have. Maybe it's the problem. – jnovacho Apr 24 '15 at 08:43
  • okay, I got further, now I have the error command "gcc" failed with exit status 1 – Blü Apr 24 '15 at 09:02
  • Did you get any error log from GCC? Have you tried running it with root privileges? – jnovacho Apr 24 '15 at 09:35
  • I don't even know what GCC is, I got that error while running python setup.py build in the folder with the file – Blü Apr 24 '15 at 11:07
  • GCC is a C compiler, the uinput needs some low level C stuff to work, so it needs to compile part of its code. I've tried it on my PC (Xubuntu 14.04) and it seems you need to install libudev-dev package. Run `sudo apt-get install libudev-dev` to install the missing package. And then run the python install again. – jnovacho Apr 24 '15 at 11:31