2011/6/17 Safoura Seddighin <s.seddig...@gmail.com>: > 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.
-- Best Regards, Wander Lairson Costa LCoN - Laboratório de Computação Natural - Natural Computing Laboratory (http://www.mackenzie.com.br/lcon.html) Programa de Pós-Graduação em Engenharia Elétrica (PPGEE) Faculdade de Computação e Informática (FCI) Universidade Presbiteriana Mackenzie - SP - Brazil ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users