Skip to content

issue with hidapi on github ci #33

@bout3fiddy

Description

@bout3fiddy

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?

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.

https://github.com/curvefi/curve-dao-operations/actions/runs/3554984959/jobs/5971413801

How can it be fixed?

the issue is with the package hidapi:

"hidapi==0.10.1",

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions