We’re writing a function that will poll for new devices with the Python Bindings for FrontPanel.
Basically, our function will query the device count on a given interval and notify another thread when new serial numbers become available. Here is a simple loop that exposes a problem we’re seeing on Linux:
print “%d Devices” % deviceCount
do other stuff based on devices present
On Linux (Fedora Core 8), we’re getting this output:
could not open device file(/dev/bus/usb/007/001): Too many open filescould not open bus path(/dev/bus/usb/006): Too many open files
The same basic program works on Mac without the open files error. Is there something in the API we’re missing?
Thanks for any input.