python-uinput
python-uinput copied to clipboard
[Issue] Can't install uinput on OpenSuse Tumbleweed
Hello guys,
I've tried to install python-uinput manually and automatically via pip, but neither of these options worked;
When execute sudo pip install python-uinput
I receive the following error:
$ sudo pip install python-uinput
Collecting python-uinput
Using cached https://files.pythonhosted.org/packages/54/b7/be7d0e8bbbbd440fef31242974d92d4edd21eb95ed96078b18cf207c7ccb/python-uinput-0.11.2.tar.gz
Installing collected packages: python-uinput
Running setup.py install for python-uinput ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-e7gyxby9/python-uinput/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-zx1wj8ct/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/uinput
copying src/ev.py -> build/lib.linux-x86_64-3.7/uinput
copying src/__init__.py -> build/lib.linux-x86_64-3.7/uinput
running build_ext
building '_libsuinput' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/libsuinput
creating build/temp.linux-x86_64-3.7/libsuinput/src
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -I/usr/include/python3.7m -c libsuinput/src/suinput.c -o build/temp.linux-x86_64-3.7/libsuinput/src/suinput.o
gcc -pthread -shared build/temp.linux-x86_64-3.7/libsuinput/src/suinput.o -L/usr/lib64 -l:libudev.so.1 -lpython3.7m -o build/lib.linux-x86_64-3.7/_libsuinput.cpython-37m-x86_64-linux-gnu.so
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython3.7m
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-e7gyxby9/python-uinput/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-zx1wj8ct/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-e7gyxby9/python-uinput/
When trying to compile it manually, this error is shown with Python3:
$ python setup.py build
running build
running build_py
running build_ext
building '_libsuinput' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -I/usr/include/python3.7m -c libsuinput/src/suinput.c -o build/temp.linux-x86_64-3.7/libsuinput/src/suinput.o
gcc -pthread -shared build/temp.linux-x86_64-3.7/libsuinput/src/suinput.o -L/usr/lib64 -l:libudev.so.1 -lpython3.7m -o build/lib.linux-x86_64-3.7/_libsuinput.cpython-37m-x86_64-linux-gnu.so
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython3.7m
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
With python 2:
$ python setup.py build
running build
running build_py
running build_ext
building '_libsuinput' extension
gcc -pthread -fno-strict-aliasing -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DNDEBUG -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fwrapv -fPIC -I/usr/include/python2.7 -c libsuinput/src/suinput.c -o build/temp.linux-x86_64-2.7/libsuinput/src/suinput.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/libsuinput/src/suinput.o -L/usr/lib64 -l:libudev.so.1 -lpython2.7 -o build/lib.linux-x86_64-2.7/_libsuinput.so
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython2.7
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Does anyone know how to fix that?
I'm running kernel 5.0.3.
Thanks in advance! Cheers!