j0r1 / pyasi

Python wrapper around some ASI SDK functions
0 stars 0 forks source link

Undefined Symbol: libusb_handle_events_timeout #1

Open mgrandau opened 2 years ago

mgrandau commented 2 years ago

Tried using the wrapper. I think I got everything but I get the following error:

Traceback (most recent call last): File "asitest.py", line 3, in import asi ImportError: /home/mark/src/telescope-finder-camera/.env/lib/python3.8/site-packages/asi.cpython-38-x86_64-linux-gnu.so: undefined symbol: libusb_handle_events_timeout

Never mind I figured it out. For linux the USB is under root because its hardware access. So the cython and the libraries but all be under root though the calling script can be at user level.

j0r1 commented 2 years ago

I'm not sure I understand how you've solved it. Based on the "undefined symbol" error, my guess would be that you'd need to link against libusb, by adding "usb" to "libraries" in setup.py.