flozz / rivalcfg

CLI tool and Python library to configure SteelSeries gaming mice
https://flozz.github.io/rivalcfg/
Do What The F*ck You Want To Public License
792 stars 65 forks source link

Error installing on Solus #137

Closed Hannnes1 closed 4 years ago

Hannnes1 commented 4 years ago

I'm trying to install rivalcfg on Solus with sudo pip3 install rivalcfg, but the installation fails with the following error:

Collecting rivalcfg
  Using cached https://files.pythonhosted.org/packages/ed/22/ba344408245ff2ff30b0c0ac2d938bd76f60d17f743391c46d5f58985c82/rivalcfg-3.12.0.tar.gz
Collecting hidapi>=0.7.99.post20 (from rivalcfg)
  Using cached https://files.pythonhosted.org/packages/ee/e9/b2ec08690c280a0eaa4777bf829db6b5d269903d4e8e9ce82f079c837d5a/hidapi-0.9.0.post3.tar.gz
Requirement already satisfied: setuptools>=19.0 in /usr/lib64/python3.7/site-packages (from hidapi>=0.7.99.post20->rivalcfg) (41.2.0)
Installing collected packages: hidapi, rivalcfg
  Running setup.py install for hidapi ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-udnpnk7c/hidapi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-udnpnk7c/hidapi/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-ouxc4c_h/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-install-udnpnk7c/hidapi/
    Complete output (13 lines):
    running install
    running build
    running build_ext
    skipping 'hid.c' Cython extension (up-to-date)
    skipping 'hidraw.c' Cython extension (up-to-date)
    building 'hid' extension
    creating build
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/hidapi
    creating build/temp.linux-x86_64-3.7/hidapi/libusb
    x86_64-solus-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -mtune=generic -march=x86-64 -g2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -fno-semantic-interposition -O3 -falign-functions=32 -I/usr/include -mtune=generic -march=x86-64 -g2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -fno-semantic-interposition -O3 -falign-functions=32 -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python3.7m -c hid.c -o build/temp.linux-x86_64-3.7/hid.o
    unable to execute 'x86_64-solus-linux-gcc': No such file or directory
    error: command 'x86_64-solus-linux-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-udnpnk7c/hidapi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-udnpnk7c/hidapi/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-ouxc4c_h/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I have installed python3, python3-devel and libusb-devel. libudev is apparently included in systemd, so I assume it is installed as well.

According to this Reddit comment it should work out of the box if it is installed with pip3 as i did.

I tried to install hidapi from the solus repository as recomended in https://github.com/flozz/rivalcfg/issues/54#issuecomment-394303959, but the problem persists.

flozz commented 4 years ago

Hello,

It seems you have no C compiler (or it cannot be found?)

Can you try to install system.devel?

sudo eopkg install -c system.devel

(I found this command here)

Hannnes1 commented 4 years ago

Thank you! That worked

flozz commented 4 years ago

I will add this in the doc :)