kinto
kinto copied to clipboard
Error on install
Trying to install Kinto but got error. This is log: Kinto 1.2-4 build 98d5309 Type in Linux like it's a Mac.
./xkeysnail_service.sh: line 212: pip3: command not found
Overlay key, 'Super_L' , detected. Will be removing so Super-Space can remap to Cmd-Space for app launching..
Will need to install python3-pip...
Debian
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:3 https://linux.teamviewer.com/deb stable InRelease
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease
Hit:5 http://repo.percona.com/percona/apt focal InRelease
Hit:6 https://artifacts.elastic.co/packages/7.x/apt stable InRelease
Hit:7 https://packages.microsoft.com/repos/ms-teams stable InRelease
Hit:8 http://repo.percona.com/prel/apt focal InRelease
Hit:9 http://ppa.launchpad.net/jtaylor/keepass/ubuntu focal InRelease
Hit:10 http://si.archive.ubuntu.com/ubuntu focal InRelease
Hit:11 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:12 http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal InRelease
Get:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24,3 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [56,6 kB]
Hit:15 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 190 kB in 2s (125 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python-pip-whl python3-wheel
Recommended packages:
python3-dev
The following NEW packages will be installed:
python-pip-whl python3-pip python3-wheel
0 upgraded, 3 newly installed, 0 to remove and 30 not upgraded.
Need to get 2053 kB of archives.
After this operation, 3456 kB of additional disk space will be used.
Get:1 http://si.archive.ubuntu.com/ubuntu focal/universe amd64 python3-wheel all 0.34.2-1 [23,8 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.1 [1799 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/universe amd64 python3-pip all 20.0.2-5ubuntu1.1 [230 kB]
Fetched 2053 kB in 0s (5079 kB/s)
Selecting previously unselected package python-pip-whl.
(Reading database ... 253188 files and directories currently installed.)
Preparing to unpack .../python-pip-whl_20.0.2-5ubuntu1.1_all.deb ...
Unpacking python-pip-whl (20.0.2-5ubuntu1.1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.34.2-1_all.deb ...
Unpacking python3-wheel (0.34.2-1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_20.0.2-5ubuntu1.1_all.deb ...
Unpacking python3-pip (20.0.2-5ubuntu1.1) ...
Setting up python3-wheel (0.34.2-1) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.1) ...
Setting up python3-pip (20.0.2-5ubuntu1.1) ...
Processing triggers for man-db (2.9.1-1) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
localuser:root being added to access control list
Cloning into 'xkeysnail'...
remote: Enumerating objects: 116, done.
remote: Counting objects: 100% (116/116), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 116 (delta 70), reused 98 (delta 63), pack-reused 0
Receiving objects: 100% (116/116), 34.79 KiB | 685.00 KiB/s, done.
Resolving deltas: 100% (70/70), done.
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Already up to date.
Note: switching to '51c369084e0045a8410d227bab52411bf84fb65b'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 51c3690 Update version to 0.3.0 Processing /home/davor/Downloads/kinto/xkeysnail Collecting evdev Downloading evdev-1.3.0.tar.gz (25 kB) Collecting inotify_simple Downloading inotify_simple-1.3.5.tar.gz (9.7 kB) Collecting python-xlib Downloading python_xlib-0.29-py2.py3-none-any.whl (176 kB) |████████████████████████████████| 176 kB 3.1 MB/s Requirement already satisfied, skipping upgrade: six>=1.10.0 in /usr/lib/python3/dist-packages (from python-xlib->xkeysnail==0.3.0) (1.14.0) Building wheels for collected packages: xkeysnail, evdev, inotify-simple Building wheel for xkeysnail (setup.py) ... done Created wheel for xkeysnail: filename=xkeysnail-0.3.0-py3-none-any.whl size=17545 sha256=af10613486dff6ebaef3b243977a745feec512b0747e9b25cd2e900f6a2354b4 Stored in directory: /tmp/pip-ephem-wheel-cache-mfp8txg9/wheels/f8/5c/77/882e8789ed933e6ff540a8e4f61f7fd3172fd1bbcdf0e642ea Building wheel for evdev (setup.py) ... 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-upl958b7/evdev/setup.py'"'"'; file='"'"'/tmp/pip-install-upl958b7/evdev/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-yz5wr_ga cwd: /tmp/pip-install-upl958b7/evdev/ Complete output (29 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/events.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/init.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/util.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/device.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/ff.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-3.8/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.8 creating build/temp.linux-x86_64-3.8/evdev x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c evdev/input.c -o build/temp.linux-x86_64-3.8/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 'x86_64-linux-gnu-gcc' failed with exit status 1
ERROR: Failed building wheel for evdev Running setup.py clean for evdev Building wheel for inotify-simple (setup.py) ... done Created wheel for inotify-simple: filename=inotify_simple-1.3.5-py3-none-any.whl size=7688 sha256=823c3de0a2cdf3c493ec49dbb53f291a9dddc19047a1b3f49af2b7f000482c26 Stored in directory: /root/.cache/pip/wheels/85/b2/be/354e28439e9b15a9a77924041be045e499f11bb03493529246 Successfully built xkeysnail inotify-simple Failed to build evdev Installing collected packages: evdev, inotify-simple, python-xlib, xkeysnail 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-upl958b7/evdev/setup.py'"'"'; file='"'"'/tmp/pip-install-upl958b7/evdev/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-f8brjuj4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/evdev cwd: /tmp/pip-install-upl958b7/evdev/ Complete output (28 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/events.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/init.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/util.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/device.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/ff.py -> build/lib.linux-x86_64-3.8/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-3.8/evdev running build_ext ecodes.c already exists ... skipping build_ecodes building 'evdev._input' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/evdev x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c evdev/input.c -o build/temp.linux-x86_64-3.8/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 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-upl958b7/evdev/setup.py'"'"'; file='"'"'/tmp/pip-install-upl958b7/evdev/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-f8brjuj4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/evdev Check the logs for full command output.
Kinto install has failed.
Python is installed.
davor@ubuntu:~/Downloads/kinto$ sudo apt install python3
[sudo] password for davor:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.8.2-0ubuntu2).
python3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
I'm not to familuor with Python and errors. But strange for is that error "Python.h: No such file or directory". Maybe missing global path for Python?
Efforts are made early on to install dependencies such as python & I see you are on some type of Debian based distro. When you provide more information regarding your specific distro I will try to help you more.
My issue template may ask for a lot but it’s important that I know what distro you are on.
Ubuntu 20.04 LTS
Thank you for effort
Oh crap.. didn’t expect that distro lol. They must no longer be referencing or aliasing pip3.. it’s probably just pip now.
Just changing pip3 to pip comes with same issue "./xkeysnail_service.sh: line 212: pip: command not found"
~/Downloads/kinto$ python3 --version Python 3.8.5
~/Downloads/kinto$ pip3 -V pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
on other hand, tried command in terminal, looks fine.
I apologize, I did not fully read your error log earlier. Your issue comes from xkeysnail not installing properly, this is rather unexpected given your distro, Ubuntu 20.xx is typically well supported and already has binaries for evdev that come down when installing xkeysnail but the log indicates that it was trying to compile it - which is fine assuming you have the right gcc compiler installed.. and you probably don't.
I've not seen this issue in awhile. I know it has occurred in more than just this one thread, probably 2 or 3.
https://github.com/rbreaves/kinto/issues/168
This commit fixed it for manjaro, but I will make sure that sudo apt install gcc
works fine. Just ran it and it appears to install it. I suspect it will fix your issue. Just let me know.
https://github.com/rbreaves/kinto/commit/11f8e33fdfdbe009a27179b185c1d930888e3133
Rolled back my Ubuntu 20.04 VM to its base setup image and made sure the current master still installs successfully and was able to confirm that it indeed does. Guess I am not able to replicate your issue from a clean base, but I am thinking I might ought to suppress the pip3 error, at least until after the setup attempts to install it (if that fails then mentioning it in the log should occur, but not until then.).
apt install python3-dev
to resolve this
apt install python3-dev
to resolve this
This worked for me too.
apt install python3-dev
to resolve this
This finally worked, thank you so much!