Hi, On Mon, Apr 15, 2019 at 02:06:07PM +0000, DEWELDE Anthony wrote: > Hello, > > > For a project i added support (api.c, protocol.h files) for the Tenma 72-2535 > programmable powersupply.
Great! I only had a quick look, but it's possible that this device is another Korad "compatible", see here: https://sigrok.org/wiki/Korad_KAxxxxP_series If yes, please extend the korad-kaxxxxp driver accordingly (i.e., please don't add a new driver). > I started with the libsigrok-0.5.1 tar and have it working. I now downloaded > the git repository (git://sigrok.org/libsigrok) and copied my changes so i > could contribue my changes but i keep getting issues with a code that was > working for 0.5.1: > > > Traceback (most recent call last): > File "./pwr.py", line 4, in <module> > from sigrok.core.classes import * > File > "/usr/local/lib/python3.6/dist-packages/libsigrok-0.6.0-py3.6-linux-x86_64.egg/sigrok/core/__init__.py", > line 20, in <module> > from . import classes > File > "/usr/local/lib/python3.6/dist-packages/libsigrok-0.6.0-py3.6-linux-x86_64.egg/sigrok/core/classes.py", > line 43, in <module> > _classes = swig_import_helper() > File > "/usr/local/lib/python3.6/dist-packages/libsigrok-0.6.0-py3.6-linux-x86_64.egg/sigrok/core/classes.py", > line 42, in swig_import_helper > return importlib.import_module('_classes') > File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) > ModuleNotFoundError: No module named '_classes' > Segmentation fault This is weird, don't think we've seen such an issue before. Are you sure you're not mixing old vs. new or tarball vs. git library versions (which is not supported at all)? Anyway, for more real-time help, please join us on IRC, #sigrok on FreeNode. > Is there also a guideline for commiting? You can send patches, but the preferred method is to clone the respective repo and commit your changeѕ (e.g. on github or elsewhere) then let us know (e.g. on IRC) where we can have a look at your changes and pull from. Thanks! -- http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel