Skip to content

Instantly share code, notes, and snippets.

@jabreity
Created February 4, 2024 02:44
Show Gist options
  • Save jabreity/dff8a94f2e18c3e14419b085fe2e2ed7 to your computer and use it in GitHub Desktop.
Save jabreity/dff8a94f2e18c3e14419b085fe2e2ed7 to your computer and use it in GitHub Desktop.
Errors from installation of streamdeck-linux-gui from both git clone and pipx install
jason@fedora:~/streamdeck-linux-gui/scripts$ ./fedora_install.sh
+ echo 'Installing libraries'
Installing libraries
+ sudo dnf install python3-pip python3-devel hidapi
[sudo] password for jason:
Sorry, try again.
[sudo] password for jason:
Last metadata expiration check: 0:44:05 ago on Sat 03 Feb 2024 08:49:50 PM EST.
Package python3-pip-23.2.1-1.fc39.noarch is already installed.
Package python3-devel-3.12.1-2.fc39.x86_64 is already installed.
Package hidapi-0.14.0-2.fc39.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
+ echo 'Adding udev rules and reloading'
Adding udev rules and reloading
+ sudo tee /etc/udev/rules.d/70-streamdeck.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", TAG+="uaccess"
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess"
+ sudo udevadm trigger
+ pip3 install --user streamdeck_ui
Collecting streamdeck_ui
Using cached streamdeck_ui-1.0.2-py3-none-any.whl (1.2 MB)
Collecting hidapi<0.8.0,>=0.7.99 (from streamdeck_ui)
Using cached hidapi-0.7.99.post21.tar.gz (51 kB)
Preparing metadata (setup.py) ... done
Collecting pillow<7.0,>=6.1 (from streamdeck_ui)
Using cached Pillow-6.2.2-cp312-cp312-linux_x86_64.whl
Collecting pynput<2.0,>=1.4 (from streamdeck_ui)
Using cached pynput-1.7.6-py2.py3-none-any.whl (89 kB)
Collecting pyside2<6.0,>=5.13 (from streamdeck_ui)
Using cached PySide2-5.13.2-5.13.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl (156.1 MB)
Collecting streamdeck<0.7.0,>=0.6.3 (from streamdeck_ui)
Using cached streamdeck-0.6.3-py3-none-any.whl (24 kB)
Requirement already satisfied: setuptools>=19.0 in /home/jason/.local/lib/python3.12/site-packages (from hidapi<0.8.0,>=0.7.99->streamdeck_ui) (69.0.3)
Requirement already satisfied: six in /usr/lib/python3.12/site-packages (from pynput<2.0,>=1.4->streamdeck_ui) (1.16.0)
Collecting evdev>=1.3 (from pynput<2.0,>=1.4->streamdeck_ui)
Using cached evdev-1.6.1-cp312-cp312-linux_x86_64.whl
Collecting python-xlib>=0.17 (from pynput<2.0,>=1.4->streamdeck_ui)
Using cached python_xlib-0.33-py2.py3-none-any.whl (182 kB)
Collecting shiboken2==5.13.2 (from pyside2<6.0,>=5.13->streamdeck_ui)
Using cached shiboken2-5.13.2-5.13.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl (832 kB)
Building wheels for collected packages: hidapi
Building wheel for hidapi (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
/home/jason/.local/lib/python3.12/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_ext
Compiling hid.pyx because it changed.
[1/1] Cythonizing hid.pyx
/home/jason/.local/lib/python3.12/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-m46tqf79/hidapi_224a619628d045f2958dea867db338c7/hid.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'hid' extension
error: unknown file type '.pxd' (from 'chid.pxd')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hidapi
Running setup.py clean for hidapi
Failed to build hidapi
ERROR: Could not build wheels for hidapi, which is required to install pyproject.toml-based projects
jason@fedora:~/streamdeck-linux-gui/scripts$ pipx
bash: pipx: command not found...
Similar command is: 'pip'
jason@fedora:~/streamdeck-linux-gui/scripts$ sudo dnf install -y pipx
Last metadata expiration check: 0:48:40 ago on Sat 03 Feb 2024 08:49:50 PM EST.
Dependencies resolved.
=======================================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================================================================================================================================
Installing:
pipx noarch 1.4.3-1.fc39 updates 164 k
Installing dependencies:
python3-platformdirs noarch 3.9.1-2.fc39 fedora 45 k
python3-userpath noarch 1.9.1-1.fc39 fedora 40 k
Transaction Summary
=======================================================================================================================================================================================================================================================
Install 3 Packages
Total download size: 249 k
Installed size: 673 k
Downloading Packages:
(1/3): python3-platformdirs-3.9.1-2.fc39.noarch.rpm 59 kB/s | 45 kB 00:00
(2/3): python3-userpath-1.9.1-1.fc39.noarch.rpm 51 kB/s | 40 kB 00:00
(3/3): pipx-1.4.3-1.fc39.noarch.rpm 144 kB/s | 164 kB 00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 131 kB/s | 249 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python3-userpath-1.9.1-1.fc39.noarch 1/3
Installing : python3-platformdirs-3.9.1-2.fc39.noarch 2/3
Installing : pipx-1.4.3-1.fc39.noarch 3/3
Running scriptlet: pipx-1.4.3-1.fc39.noarch 3/3
Verifying : python3-platformdirs-3.9.1-2.fc39.noarch 1/3
Verifying : python3-userpath-1.9.1-1.fc39.noarch 2/3
Verifying : pipx-1.4.3-1.fc39.noarch 3/3
Installed:
pipx-1.4.3-1.fc39.noarch python3-platformdirs-3.9.1-2.fc39.noarch python3-userpath-1.9.1-1.fc39.noarch
Complete!
jason@fedora:~/streamdeck-linux-gui/scripts$ pipx install streamdeck-linux-gui
Fatal error from pip prevented installation. Full pip output in file:
/home/jason/.local/state/pipx/log/cmd_2024-02-03_21.39.48_pip_errors.log
Some possibly relevant errors from pip install:
ERROR: Ignored the following versions that require a different python version: 3.0.0 Requires-Python >=3.8,<3.12; 3.0.1 Requires-Python >=3.8,<3.12; 3.1.0 Requires-Python >=3.11,<3.12; 3.2.0 Requires-Python >=3.11,<3.12; 4.0.0 Requires-Python >=3.8,<3.12; 4.1.0 Requires-Python >=3.8,<=3.12
ERROR: Could not find a version that satisfies the requirement streamdeck-linux-gui (from versions: none)
ERROR: No matching distribution found for streamdeck-linux-gui
Error installing streamdeck-linux-gui.
jason@fedora:~/streamdeck-linux-gui/scripts$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment