On Tue, Nov 29, 2011 at 12:41 AM, Safoura <s.seddig...@gmail.com> wrote: > Hi Ian, > > I have an executable python that I call in my java code using java > runtime.exec. Therefore I don't need to install python or PyUSB on the > computers I run the software on.
Maybe that is not true and that is the problem. You have to give more details, like post the relevant Java codes. > However I use libusb-win32 to install the > driver for the Lego Device on the machines. How do you install the driver? Using the GUI Inf-wizard or the GUI filter driver wizard? Either way, it should work though. > No matter on what computer or > windows version, if I run the exe python code by double clicking, it runs and > detects the Lego device. In that case, libusb-win32 works and PyUSB works. > Software however, does not work(due to not finding > the lib) and it has happened on different machines with different > versions of windows. So it seems to be your Java code issue after all. > I am not sure if it's a java issue or libusb issue; In the libusb FAQ, > it says that HID can be used if the libusb filter gets installed first and > then libusb-win32 driver!!!! In general, it is not recommended to use libusb for HID device. You should try HIDAPI. However, it should work if you use libusb-win32 filter driver under Windows. To use libusb-win32 filter, you can use libusb-win32's GUI filter wizard. > At the same time I don't understand why executing > python when called by executing java can not access the lib even though that > it's installed! So there is a difference, only you can tell us what is the difference and how your Java code works. > I would appreciate it if you let me know your thoughts! The software delivery > is pending on solving this problem. In order for others to help you, you will have to tell us more information. -- Xiaofan ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users