Closed patriciogonzalezvivo closed 3 years ago
Could you just try to install these libraries via APT? To do so, it should suffice to do the following on the console:
sudo apt update
sudo apt install libhidapi-libusb0
Then restart your computer and run Blender with Alice/LG again.
I'm having the same issue, the required packages are installed.
I was able to fix it for me by editing ~/.config/blender/2.93/scripts/addons/AliceLG-master/lib/hid/__init__.py
(change the 2.93 to 2.92 for your blender version) and on the lines 10, 12, 14 removing the "lib" prefix and the ".so" suffix on hidraw, libusb and iohidmanager. So, for me it now reads:
library_names = (
'hidapi-hidraw',
'libhidapi-hidraw.so.0',
'hidapi-libusb',
'libhidapi-libusb.so.0',
'hidapi-iohidmanager',
'libhidapi-iohidmanager.so.0',
'libhidapi.0.dylib',
'libhidapi.dylib',
'hidapi.dll',
'libhidapi-0.dll'
)
I found this out by looking at the documentation for ctypes, which says that any "lib" prefix and ".so" suffix should be removed:
name is the library name without any prefix like lib, suffix like .so, .dylib or version number
Hope this helps.
Thanks for pointing this out, @smirgol.
With Alice/LG 2.0 the hidapi library was removed, so the issue does not persist.
I get this error every time i try to enable the addon in Blender 2.92 in Ubuntu 20.04