joaorb64 / joycond-cemuhook

Support for cemuhook's UDP protocol for joycond devices
MIT License
139 stars 19 forks source link

evdev is uninstallable #62

Open zzx-the-neptune opened 2 years ago

zzx-the-neptune commented 2 years ago

When trying to install evdev i got this: Installing collected packages: evdev, asyncio, argparse Running setup.py install for evdev ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q5helrhe/evdev_0fcfcc1214234a9e8ac848f6da6c7636/setup.py'"'"'; file='"'"'/tmp/pip-install-q5helrhe/evdev_0fcfcc1214234a9e8ac848f6da6c7636/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-a7ha6oxt/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/Spark/.local/include/python3.10/evdev cwd: /tmp/pip-install-q5helrhe/evdev_0fcfcc1214234a9e8ac848f6da6c7636/ Complete output (31 lines): running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/evdev copying evdev/util.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ff.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/events.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/device.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/init.py -> build/lib.linux-x86_64-3.10/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.10 creating build/temp.linux-x86_64-3.10/evdev gcc -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.10 -c evdev/input.c -o build/temp.linux-x86_64-3.10/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 | ^~~~~~ 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 io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q5helrhe/evdev_0fcfcc1214234a9e8ac848f6da6c7636/setup.py'"'"'; file='"'"'/tmp/pip-install-q5helrhe/evdev_0fcfcc1214234a9e8ac848f6da6c7636/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-a7ha6oxt/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/Spark/.local/include/python3.10/evdev Check the logs for full command output. [Spark@fedora joycond-cemuhook]$ python3 joycond-cemuhook.py Traceback (most recent call last): File "/home/Spark/joycond-cemuhook/joycond-cemuhook.py", line 2, in import evdev ModuleNotFoundError: No module named 'evdev' [Spark@fedora joycond-cemuhook]$ pip3 isntall evdev ERROR: unknown command "isntall" - maybe you meant "install" [Spark@fedora joycond-cemuhook]$ pip3 install evdev Defaulting to user installation because normal site-packages is not writeable Collecting evdev Using cached evdev-1.5.0.tar.gz (26 kB) Preparing metadata (setup.py) ... done Using legacy 'setup.py install' for evdev, since package 'wheel' is not installed. Installing collected packages: evdev Running setup.py install for evdev ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xn_ef7gn/evdev_47015b4d75e64feb86f6f0436307fec2/setup.py'"'"'; file='"'"'/tmp/pip-install-xn_ef7gn/evdev_47015b4d75e64feb86f6f0436307fec2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-rpq9m3n9/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/Spark/.local/include/python3.10/evdev cwd: /tmp/pip-install-xn_ef7gn/evdev_47015b4d75e64feb86f6f0436307fec2/ Complete output (31 lines): running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/evdev copying evdev/util.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ff.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/events.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/device.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/init.py -> build/lib.linux-x86_64-3.10/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.10 creating build/temp.linux-x86_64-3.10/evdev gcc -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.10 -c evdev/input.c -o build/temp.linux-x86_64-3.10/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 | ^~~~~~ 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 io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xn_ef7gn/evdev_47015b4d75e64feb86f6f0436307fec2/setup.py'"'"'; file='"'"'/tmp/pip-install-xn_ef7gn/evdev_47015b4d75e64feb86f6f0436307fec2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-rpq9m3n9/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/Spark/.local/include/python3.10/evdev Check the logs for full command output. [Spark@fedora joycond-cemuhook]$ pip3 install wheel Defaulting to user installation because normal site-packages is not writeable Collecting wheel Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB) Installing collected packages: wheel Successfully installed wheel-0.37.1 [Spark@fedora joycond-cemuhook]$ pip3 install evdev Defaulting to user installation because normal site-packages is not writeable Collecting evdev Using cached evdev-1.5.0.tar.gz (26 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: evdev Building wheel for evdev (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/setup.py'"'"'; file='"'"'/tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-c2xb51n6 cwd: /tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/ Complete output (29 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/evdev copying evdev/util.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ff.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/events.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/device.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/init.py -> build/lib.linux-x86_64-3.10/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.10 creating build/temp.linux-x86_64-3.10/evdev gcc -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.10 -c evdev/input.c -o build/temp.linux-x86_64-3.10/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 | ^~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1

ERROR: Failed building wheel for evdev Running setup.py clean for evdev Failed to build evdev Installing collected packages: evdev Running setup.py install for evdev ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/setup.py'"'"'; file='"'"'/tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-vih8yy18/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/Spark/.local/include/python3.10/evdev cwd: /tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/ Complete output (30 lines): running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/evdev copying evdev/util.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ff.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/events.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/device.py -> build/lib.linux-x86_64-3.10/evdev copying evdev/init.py -> build/lib.linux-x86_64-3.10/evdev running build_ext ecodes.c already exists ... skipping build_ecodes building 'evdev._input' extension creating build/temp.linux-x86_64-3.10 creating build/temp.linux-x86_64-3.10/evdev gcc -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.10 -c evdev/input.c -o build/temp.linux-x86_64-3.10/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 | ^~~~~~ 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 io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/setup.py'"'"'; file='"'"'/tmp/pip-install-folqy4so/evdev_bce74754abe74c3093e725b91ac89258/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-vih8yy18/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/Spark/.local/include/python3.10/evdev Check the logs for full command output.

ItsMaddieNow commented 1 year ago

I had a similar issue, I resolved it by installing python3-devel on fedora linux.