You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: macOS/linux/win
ubuntu-latest on github or ubuntu-22.04
What went wrong?
building 'hid' extension
creating build
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/hidapi
creating build/temp.linux-x86_64-3.10/hidapi/libusb
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/opt/hostedtoolcache/Python/3.10.4/x64/include/python3.10 -c hid.c -o build/temp.linux-x86_64-3.10/hid.o
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/opt/hostedtoolcache/Python/3.10.4/x64/include/python3.10 -c hidapi/libusb/hid.c -o build/temp.linux-x86_64-3.10/hidapi/libusb/hid.o
hidapi/libusb/hid.c:47:10: fatal error: libusb.h: No such file or directory
47 | #include <libusb.h>
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/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: legacy-install-failure
× Encountered error while trying to install package.
╰─> hidapi
note: This is an issue with the package mentioned above, not pip.
@bout3fiddy hidapi requires libusb but doesn't seem to actually install it as part of the pip installation process it seems. Have you tried installing libusb-dev in your CI builds?
For macOS they already have compatible libraries installed, and I think quite a few Linux distributions do too but not all of them
Environment information
ape
and plugin versions:"eth-ape>=0.5.2",
"ape-hardhat>=0.5.1",
"ape-alchemy>=0.5.0",
"ape-solidity>=0.5.0",
"ape-vyper>=0.5.0",
"ape-ledger>=0.5.0",
"ape-etherscan>=0.5.1",
Python Version: 3.10.4
OS: macOS/linux/win
ubuntu-latest on github or ubuntu-22.04
What went wrong?
https://github.com/curvefi/curve-dao-operations/actions/runs/3554984959/jobs/5971413801
How can it be fixed?
the issue is with the package hidapi:
ape-ledger/setup.py
Line 60 in 36c79ad
i am not sure what's the best way to fix this here, because it seems to work just about fine one my MacBook, but github ci really doesn't like it.
Fill this in if you have ideas on how the bug could be fixed.
The text was updated successfully, but these errors were encountered: