From: Safoura <s.s...@gm...> - 2011-06-17 18:33:04
|
wander.lairson <wander.lairson@...> writes: > > 2011/6/17 Safoura Seddighin <s.seddighin@...>: > > Hi > > I need to use a python package and call it's class's methods from an already > > extensive java package . The python package communicates with USB device and > > therefore uses PyUSB library. In order to be able to mix Java and Python I > > decided to use Jython. However it seems that the usb package which was > > imported in the python code on my system just fine, is not known when I use > > the jython interpreter. Does that mean that Jython doesn't support this > > python library?? > > I am working in eclipse on Windows 7 and have both Jython and Python set up > > as interpreters fpr PyDev in the eclipse. > > Any help would be greatly appreciated. > > Thanks so much in advance. > > Safi > > > I don't know a bit of Jython, unfortunatelly, but I can imagine at > least one issue when trying to use PyUSB on it: I use ctypes to > communicate with native libraries in Python and I am not sure it is > implemented in Jython, as there is the complication of the JVM. Please > check if ctypes libraries is available for Jython. By what you > described, it feels like we have a platform issue, thus jython guys > can help better than us. > Hi Wander Thanks for the reply. I'll try to get in touch with Jython guys. In the meantime I thought of asking you the question, do you have any suggestion or have ever come a solution for the problem I have(calling the perfect python package that uses PyUSBand has all the functionalities I need ) from my already existing big Java code? If you can think of any thing other than Jython, would you kindly let me know? Thanks so much Safi |