fablabnbg / inkscape-silhouette

An extension to drive Silhouette vinyl cutters (e.g. Cameo, Portrait, Curio series) from within inkscape.
GNU General Public License v2.0
505 stars 116 forks source link

libusb error upon Apply on MacOS @ ARM #170

Open pixelflowxyz opened 2 years ago

pixelflowxyz commented 2 years ago

Hey,

I've installed the extension using the install_osx script and have changed my Inkscape extension path to the brew version.

It's all going well, apart from this issue when I press Apply: /Applications/Inkscape.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/usb1/__init__.py:2092: DeprecationWarning: Use "with USBContext() as context:" for safer cleanup on interpreter shutdown. See also USBContext.open(). warnings.warn( dlopen(/opt/homebrew/opt/libusb/lib/libusb-1.0.dylib, 0x0006): tried: '/Applications/Inkscape.app/Contents/Resources/lib/libusb-1.0.dylib' (no such file), '/Applications/Inkscape.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/libusb-1.0.dylib' (no such file), '/opt/homebrew/opt/libusb/lib/libusb-1.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libusb-1.0.dylib' (no such file), '/Applications/Inkscape.app/Contents/Resources/lib/libusb-1.0.0.dylib' (no such file), '/Applications/Inkscape.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/libusb-1.0.0.dylib' (no such file), '/opt/homebrew/Cellar/libusb/1.0.25/lib/libusb-1.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libusb-1.0.0.dylib' (no such file)

Any help would be much appreciated - thanks! I've installed libusb through brew and pip3.

Thanks!

pixelflowxyz commented 2 years ago

My workaround - install Homebrew under x86-64 and then install libusb using that, and copy the libusb files from there to where M1 Homebrew places them. Seems like a big bodge, but it works :)