On Wed, Nov 09, 2016 at 06:46 +0100, Alexander Kugel wrote:
>
> I already started to develop a decoder which works nicely with
> PulseView but is not loaded by sigrok-cli.exe It is found if I
> run the --versions option, but when I want to use it only this
> error is showed: srd: ImportError: Failed to load decoder
> usv_ch6: No module named usv_ch6 Failed to load protocol
> decoder usv_ch6. Do you have a hint what could be the cause of
> this problem?
That's unexpected, really. None of the sigrok-cli and pulseview
programs load the decoders directly. Both are users of the
shared libsigrokdecode library which loads the decoder modules.
So they use identical logic which should behave identically.
Are the two programs maybe out of sync? I.e. where they built
from different (versions of) sources, or configured differently?
Can you try a more recent version, where the libsigrokdecode
library was extended to emit more detailled error messages about
why a PD was not accepted? Does an increased log level provide
more hints (like search paths maybe)?
Is this the same machine you run this one? Are you consistent in
specifying the decoder's name? Here is why I ask: In the GUI
you select the PD from a given list, in the CLI you have to type
the name yourself. Comparing against --version output might fail
because humans tend to see what they expect. :)
BTW: The term CLI means command line interface, in contrast to
GUI and CUI. All of them are clients to the shared components
which are libsigrok and libsigrokdecode, if you will.
virtually yours
Gerhard Sittig
--
If you don't understand or are scared by any of the above
ask your parents or an adult to help you.
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel