Problem with pyusb- libusb backend not found

โ€ƒ

I wanted to play around with the pyusb library, but I have the impression that the library is not fully recognized.
I created a node and wanted the node to display a list of the current USB devices.
However, the problem seems to be in the backend
I've already searched the forum and tried a few things, but I still can't get the problem resolved.

 Was looking were the library is

However he cant find it while snapping

Here you can see that the problem is the backend

โ€ƒ

โ€ƒ

Here is my code

 

Snapcraft(maybe here is my fault)

Best regards

โ€ƒ

โ€ƒ

Best reply by bostroemc

Which ctrlX CORE model are you using?  I see that you have built an ARM64 snap (typ. for ctrlX CORE X3), but you have hardcoded a path with the x86_64 triplet (typ. for ctrlX CORE X7):

  

Maybe this mismatch is your problem.  

To avoid hard-coding the target triplet, one nice option is to use sysconfig.get_config_var as shown below.

View original
2 replies