From: Stefan R. <ste...@gm...> - 2020-04-02 06:54:40
|
Using native bindings from Jython is always difficult. From a quick look at 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...>: > 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 > -- > > > > [image: Apulia Grove Oil logo] > > Apulia Grove Olives > 40 Tranter Rd > Toolleen > Victoria 3551 > > M: 0409 258 471 > ch...@ap... > www.apulia-grove.com.au > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |