Closed noraatfedora closed 2 years ago
I'm getting this issue trying to install through pip on fedora 34:
pip
[jared@fedora ~]$ pip3 install remarkable-mouse Defaulting to user installation because normal site-packages is not writeable Collecting remarkable-mouse Using cached remarkable_mouse-6.0.0-py3-none-any.whl (21 kB) Collecting paramiko Using cached paramiko-2.7.2-py2.py3-none-any.whl (206 kB) Collecting pynput Using cached pynput-1.7.3-py2.py3-none-any.whl (99 kB) Collecting screeninfo Using cached screeninfo-0.7.tar.gz (10 kB) Collecting libevdev Using cached libevdev-0.9.tar.gz (27 kB) Collecting bcrypt>=3.1.3 Using cached bcrypt-3.2.0-cp36-abi3-manylinux2010_x86_64.whl (63 kB) Requirement already satisfied: pynacl>=1.0.1 in ./.local/lib/python3.9/site-packages (from paramiko->remarkable-mouse) (1.4.0) Collecting cryptography>=2.5 Using cached cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl (3.0 MB) Requirement already satisfied: cffi>=1.1 in /usr/lib64/python3.9/site-packages (from bcrypt>=3.1.3->paramiko->remarkable-mouse) (1.14.5) Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.9/site-packages (from bcrypt>=3.1.3->paramiko->remarkable-mouse) (1.15.0) Requirement already satisfied: pycparser in /usr/lib/python3.9/site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko->remarkable-mouse) (2.20) Requirement already satisfied: ply==3.11 in /usr/lib/python3.9/site-packages (from pycparser->cffi>=1.1->bcrypt>=3.1.3->paramiko->remarkable-mouse) (3.11) Requirement already satisfied: python-xlib>=0.17 in ./.local/lib/python3.9/site-packages (from pynput->remarkable-mouse) (0.31) Collecting evdev>=1.3 Using cached evdev-1.4.0.tar.gz (26 kB) Using legacy 'setup.py install' for libevdev, since package 'wheel' is not installed. Using legacy 'setup.py install' for evdev, since package 'wheel' is not installed. Using legacy 'setup.py install' for screeninfo, since package 'wheel' is not installed. Installing collected packages: evdev, cryptography, bcrypt, screeninfo, pynput, paramiko, libevdev, remarkable-mouse Running setup.py install for evdev ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2oeyv1ic/evdev_6176bcaed9734dc5bd61b7d70f32ab48/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2oeyv1ic/evdev_6176bcaed9734dc5bd61b7d70f32ab48/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-k06ptj8v/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/jared/.local/include/python3.9/evdev cwd: /tmp/pip-install-2oeyv1ic/evdev_6176bcaed9734dc5bd61b7d70f32ab48/ Complete output (29 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/evdev copying evdev/util.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/ff.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/events.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/device.py -> build/lib.linux-x86_64-3.9/evdev copying evdev/__init__.py -> build/lib.linux-x86_64-3.9/evdev running build_ext running build_ecodes writing ecodes.c (using /usr/include/linux/input.h /usr/include/linux/input-event-codes.h /usr/include/linux/uinput.h) building 'evdev._input' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/evdev gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.9 -c evdev/input.c -o build/temp.linux-x86_64-3.9/evdev/input.o -std=c99 -Wno-error=declaration-after-statement evdev/input.c:10:10: fatal error: Python.h: No such file or directory 10 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2oeyv1ic/evdev_6176bcaed9734dc5bd61b7d70f32ab48/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2oeyv1ic/evdev_6176bcaed9734dc5bd61b7d70f32ab48/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-k06ptj8v/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/jared/.local/include/python3.9/evdev Check the logs for full command output.
Am I doing something wrong?
Install python3-devel or python3-dev
I'm getting this issue trying to install through
pip
on fedora 34:Am I doing something wrong?