Closed Asdf1qaz closed 3 months ago
@Asdf1qaz Python versions are the same? CPython3.10.12.final.0-64
? What is different in the install logs? Could you post both, please.
Sorry, still learning linux. Where are the install logs for this stored? and the python installed is:
k@k-Vivobook:~$ python3 Python 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0] on linux
@Asdf1qaz /var/log/asus-numberpad-driver
@ldrahnik I have same issue This is my instalation log Reading package lists... Building dependency tree... Reading state information... gcc is already the newest version (4:11.2.0-1ubuntu1). ibus is already the newest version (1.5.26-4). libevdev2 is already the newest version (1.12.1+dfsg-1). libxkbcommon-dev is already the newest version (1.4.0-1). xinput is already the newest version (1.6.3-1build2). i2c-tools is already the newest version (4.3-2build1). python3-virtualenv is already the newest version (20.13.0+ds-2). curl is already the newest version (7.81.0-1ubuntu1.16). libxml2-utils is already the newest version (2.9.13+dfsg-1ubuntu0.4). python3-dev is already the newest version (3.10.6-1~22.04). The following packages were automatically installed and are no longer required: apg gnome-control-center-faces gnome-online-accounts libcolord-gtk1 libfreerdp-server2-2 libgnome-bg-4-1 libgsound0 libgssdp-1.2-0 libgupnp-1.2-1 libgupnp-av-1.0-3 libgupnp-dlna-2.0-4 libluajit-5.1-2 libluajit-5.1-common libmsgpackc2 libntfs-3g89 librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2 librygel-server-2.6-2 libtermkey1 libtree-sitter0 libunibilium4 libvncserver1 libvterm0 libwpe-1.0-1 libwpebackend-fdo-1.0-1 linux-headers-5.15.0-113 linux-headers-5.15.0-113-generic linux-headers-6.5.0-18-generic linux-hwe-6.5-headers-6.5.0-18 linux-image-5.15.0-113-generic linux-image-6.5.0-18-generic linux-modules-5.15.0-113-generic linux-modules-6.5.0-18-generic linux-modules-extra-5.15.0-113-generic linux-modules-extra-6.5.0-18-generic lua-luv mobile-broadband-provider-info neovim-runtime network-manager-gnome python3-certifi python3-greenlet python3-macaroonbakery python3-msgpack python3-neovim python3-protobuf python3-pymacaroons python3-pynvim python3-requests python3-rfc3339 python3-tz rygel Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
groupadd: group 'input' already exists groupadd: group 'i2c' already exists groupadd: group 'uinput' already exists Added groups input, i2c, uinput, numberpad to current user uinput module loaded i2c-dev module loaded uinput module added to auto loaded modules Udev rules reloaded and triggered
Testing interface i2c-0: failed Testing interface i2c-1: failed Testing interface i2c-2: success (adr 0x15) The detection was successful. Touchpad with NumberPad found: i2c-2
Default config will be autocreated during the first run and available for futher modifications here: /usr/share/asus-numberpad-driver/numberpad_dev
created virtual environment CPython3.10.12.final.0-64 in 108ms creator CPython3Posix(dest=/usr/share/asus-numberpad-driver/.env, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/ranko/.local/share/virtualenv) added seed packages: pip==22.0.2, setuptools==59.6.0, wheel==0.37.1 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator install.sh: line 104: /usr/share/asus-numberpad-driver/.env/bin/activate: No such file or directory Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pip in /home/ranko/.local/lib/python3.10/site-packages (24.1.2) Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: setuptools in /home/ranko/.local/lib/python3.10/site-packages (71.0.3) Defaulting to user installation because normal site-packages is not writeable Collecting libevdev (from -r requirements.txt (line 1)) Using cached libevdev-0.11-py3-none-any.whl Requirement already satisfied: numpy in /home/ranko/.local/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (2.0.0) Collecting pyinotify (from -r requirements.txt (line 3)) Using cached pyinotify-0.9.6-py3-none-any.whl Collecting python-xlib (from -r requirements.txt (line 4)) Using cached python_xlib-0.33-py2.py3-none-any.whl.metadata (6.2 kB) Collecting smbus2 (from -r requirements.txt (line 5)) Using cached smbus2-0.4.3-py2.py3-none-any.whl.metadata (7.1 kB) Collecting pyasyncore (from -r requirements.txt (line 6)) Using cached pyasyncore-1.0.4-py3-none-any.whl.metadata (3.7 kB) Collecting pywayland (from -r requirements.txt (line 7)) Using cached pywayland-0.4.17-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (4.4 kB) Collecting xkbcommon (from -r requirements.txt (line 8)) Using cached xkbcommon-1.5.1.tar.gz (80 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from python-xlib->-r requirements.txt (line 4)) (1.16.0) Requirement already satisfied: cffi>=1.12.0 in /usr/local/lib/python3.10/dist-packages (from pywayland->-r requirements.txt (line 7)) (1.16.0) Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.12.0->pywayland->-r requirements.txt (line 7)) (2.22) Using cached python_xlib-0.33-py2.py3-none-any.whl (182 kB) Using cached smbus2-0.4.3-py2.py3-none-any.whl (11 kB) Using cached pyasyncore-1.0.4-py3-none-any.whl (10 kB) Using cached pywayland-0.4.17-cp310-cp310-manylinux_2_28_x86_64.whl (753 kB) Building wheels for collected packages: xkbcommon Building wheel for xkbcommon (pyproject.toml): started Building wheel for xkbcommon (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
× Building wheel for xkbcommon (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/xkbcommon
copying xkbcommon/init.py -> build/lib.linux-x86_64-cpython-310/xkbcommon
copying xkbcommon/ffi_build.py -> build/lib.linux-x86_64-cpython-310/xkbcommon
copying xkbcommon/xkb.py -> build/lib.linux-x86_64-cpython-310/xkbcommon
running build_ext
generating cffi module 'build/temp.linux-x86_64-cpython-310/xkbcommon._ffi.c'
creating build/temp.linux-x86_64-cpython-310
building 'xkbcommon._ffi' extension
creating build/temp.linux-x86_64-cpython-310/build
creating build/temp.linux-x86_64-cpython-310/build/temp.linux-x86_64-cpython-310
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c build/temp.linux-x86_64-cpython-310/xkbcommon._ffi.c -o build/temp.linux-x86_64-cpython-310/build/temp.linux-x86_64-cpython-310/xkbcommon._ffi.o
build/temp.linux-x86_64-cpython-310/xkbcommon._ffi.c: In function ‘_cffi_const_XKB_CONTEXT_NO_SECURE_GETENV’:
build/temp.linux-x86_64-cpython-310/xkbcommon._ffi.c:1017:12: error: ‘XKB_CONTEXT_NO_SECURE_GETENV’ undeclared (first use in this function); did you mean ‘_cffi_const_XKB_CONTEXT_NO_SECURE_GETENV’?
1017 | int n = (XKB_CONTEXT_NO_SECURE_GETENV) <= 0;
| ^~~~~~~~
| _cffi_const_XKB_CONTEXT_NO_SECURE_GETENV
build/temp.linux-x86_64-cpython-310/xkbcommon._ffi.c:1017:12: note: each undeclared identifier is reported only once for each function it appears in
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for xkbcommon Failed to build xkbcommon ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xkbcommon) pyenv-virtualenv: deactivate must be sourced. Run 'source deactivate' instead of 'deactivate'
NumberPad layout
The automatically recommended NumberPad layout for this laptop (ASUS Zenbook 14 UM3406HA_UM3406HA) is up5401ea. Do you want to use the up5401ea layout? (The photo of the recommended NumberPad layout can be found here https://github.com/asus-linux-drivers/asus-numberpad-driver#up5401ea) [y/N]
I am using ubuntu 22.04 kernel version: 6.9.3-060903-generic
The system you are building on has a version of libxkbcommon that is lower than 1.5, but your requirements.txt file is requesting the latest version of python-xkbcommon, which now requires at least libxkbcommon 1.5.
In the project's requirements.txt file, specify xkbcommon<1.1
instead of just xkbcommon
.
@Shrimp22 @Asdf1qaz Replicated. I had the same issue after clearing the cache:
sudo rm -rf /usr/share/asus-numberpad-driver/.env
The version is now fixed to be lower than xkbcommon<1.1
as advised @sde1000. Thank you.
Can be reopened.
Describe the bug
I have tried to install it on the two new laptops that I have. Both are Asus Vivobook S 14 Flip (TN3402Y). Both running Linux Mint 21.3 and kernal 6.5.0-41. One went fine and it worked right off the bat. The other now so much. It did chuck an error about "ERROR: Failed building wheel for xkbcommon" But I think it did it on the other working one too?
Expected behavior
It installed as runs?
Relevant log output
Desktop
Linux Mint 21.3 and kernal 6.5.0-41