rene-dev / homebrew-sigrok

sigrok for osx
http://sigrok.org/wiki/Mac_OS_X#Building_using_Homebrew
15 stars 13 forks source link

Failed to load decoder common #15

Closed Manouchehri closed 7 years ago

Manouchehri commented 7 years ago
nitro:~ dave$ sigrok-cli -V
sigrok-cli 0.7.0-git-96d0921

Using libsigrok 0.5.0-git-8626feae (lib version 3:0:0).
Using libsigrokdecode 0.5.0-git-991c44f (lib version 3:0:0).

...
<Removed less relevant text to save space/readability>
...

Supported protocol decoders:
srd: AttributeError: Failed to load decoder common: no 'Decoder' attribute in imported module: module 'common' has no attribute 'Decoder'
  adns5020             Avago ADNS-5020 optical mouse sensor
  am230x               Aosong AM230x/DHTxx/RHTxx
....

Full log: https://gist.github.com/Manouchehri/8bc0e7581b1bcc66d3c5be1e94871192#file-gistfile1-txt-L164

Binary seems to be linked fine?

itro:~ dave$ otool -L $(which sigrok-cli)
/usr/local/bin/sigrok-cli:
    /usr/local/opt/libsigrok/lib/libsigrok.3.dylib (compatibility version 4.0.0, current version 4.0.0)
    /usr/local/opt/libsigrokdecode/lib/libsigrokdecode.3.dylib (compatibility version 4.0.0, current version 4.0.0)
    /usr/local/opt/glib/lib/libglib-2.0.0.dylib (compatibility version 5001.0.0, current version 5001.2.0)
    /usr/local/opt/gettext/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
rene-dev commented 7 years ago

Whats the issue, you reported in irc that it opens... does it work? Doesnt look like a homebrew specific problem to me.. maybe ask in sigrok bugtracker? http://sigrok.org/bugzilla/

zeldin commented 7 years ago

This is actually an SRD bug caused by there being code in the decoders directory which is not an actual decoder. It's purely cosmetical though, you can just ignore the message.

Manouchehri commented 7 years ago

Perfect, thanks for confirming I didn't break anything on my system.

100ideas commented 7 years ago

👍 was wondering about this too - thanks!