Closed joedupa closed 1 year ago
Looks like it is trying to call libusb but you don't have it.
I originally didn't require libusb but thinking about it, the pre-compiled release will compile with it and so require it. You can either install with brew install libusb
for you'll have to compile cyme from source with cargo install --no-default-features cyme
I've also updated the homebrew tap so that libusb is a 'depends_on'.
now there is another error:
Gs-MBP-7:~ g$ Gs-MBP-7:~ g$ cyme -l -z 2023-01-26T13:02:52.027Z INFO [cyme::config] Looking for cyme system config "/Users/g/Library/Application Support/cyme/cyme.json" Failed to parse system_profiler output: Error(EOF while parsing a value at line 1 column 0)
I reinstalled cyme with brew and this file is missing.
This is actually not the cyme.json file missing; it looked but found nothing so did not attempt to read - it due to it failing to parse the output of system_profiler -json SPUSBDataType
.
Can you run that command above and share the output? I can debug it then.
Edit: Just noticed you're on 10.14. I've not actually tested on 10.14 and it's a deprecated GitHub workflow so can't do it myself. I'm not actually sure when the -json flag was added to system_profiler so it would be good to find it out if the flag works.
You can run using libusb exclusively using the --force-libusb
flag with cyme.
I pushed an update (1.2.7), that will fallback to libusb if system_profiler
returns non-zero. I think this is the problem, not a parsing error here. I expect that 10.14 doesn't include the -json
flag.
what am I doing wrong? this is on Maverick 10.14 OS:
Gs-MBP-7:~ g$ cyme dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib Referenced from: /usr/local/bin/cyme Reason: image not found Abort trap: 6 Gs-MBP-7:~ g$
Thanks!!