2014-02-21 10:19 GMT-03:00 Dean Chester <dean.g.ches...@gmail.com>: > Hi, > > I'm running my read call in a separate thread, is this likely to cause > problems doing this? As currently it keeps failing to read the USB despite > there being data for it to read. The code works when I run it in the same > thread as the main application on its own, however now using Process from > the multiprocessing module it fails to read. > > Attached is some of the output with libusb at DEBUG for the log level. > > It was working before I put the whole thing in a background process. > > What could be going wrong? >
Hi, First of all, sorry for the delay, I was in a trip and couldn't check my email for a few days. You cannot access the device from different process due to interface claiming. PyUSB 1.0.0 will be thread safe, but it is not for now (this is one of pending things that prevents the stable release). -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users