From: Randall W. <ran...@al...> - 2020-04-04 14:41:04
|
Assuming you are trying to access USB devices using Jython within the JMRI Model Railroad software, please ask for assistance on the JMRI User’s group or GitHub site. Randall > On 02-Apr-2020, at 02:53, Stefan Richthofer <ste...@gm...> wrote: > > Using native bindings from Jython is always difficult. From a quick look at https://github.com/pyudev/pyudev <https://github.com/pyudev/pyudev> it seems to be using ctypes to access native code. > Jython has some limited ctypes support but this is often insufficient. There is a fair chance to get it working via JyNI (I never tested pyudev but some other ctypes-based libs work). That said, note that JyNI is still highly experimental. > > Best regards > > Stefan > > Am Do., 2. Apr. 2020 um 08:02 Uhr schrieb Charles Meo <ch...@ap... <mailto:ch...@ap...>>: > Hello all, > > I am using JMRI which includes jython. I'd like to use the python pyudev module to help control USB devices used by JMRI but it doesn't seem to be supported in jython. import pyudev throws lots of errors from inside the jython script. > > Is there a way to make use of this module from inside jython? > > Thank you, > > Charles > > -- > > > > <Apulia_email_signature.gif> > > Apulia Grove Olives > 40 Tranter Rd > Toolleen > Victoria 3551 > > M: 0409 258 471 > ch...@ap... <mailto:ch...@ap...> > www.apulia-grove.com.au <http://www.apulia-grove.com.au/>_______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> > _______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> |