Enumeration of camera - issue with multiple instances of the same camera!
See original GitHub issueI am trying to use the USB 3.0 1280-54um camera through pypylon on my Mac OX 10.15 (Catalina). This error has nothing to do with the Mac OSx latest update from 10.14 (Mojave) to 10.15 as the error was pre-existing in the 10.14 revision.
Based on the examples for camera access and functioning provided in the python code examples, I am doing the following in my __main__
:
self.tlFactory = pylon.TlFactory.GetInstance() # instantiate an object
self.devList = self.tlFactory.EnumerateDevices() # enumerate devices
At this point, although there is only one Basler camera 1280-54um connected to the USB port, the devList object is assigned a list of two devices both containing the same serial number.
A snapshot of the content within devList as obtained from Visual Code Editor is: 0:<pypylon.pylon.DeviceInfo; proxy of <Swig Object of type ‘Pylon::CDeviceInfo *’ at 0x118614f30> > 1:<pypylon.pylon.DeviceInfo; proxy of <Swig Object of type ‘Pylon::CDeviceInfo *’ at 0x118614ea0> > len:2
@basler-oss, could you please provide a resolution for the same at the earliest?
I am trying to make my app work on python and at the transport layer somehow two instances of the same device get created within the EnumerateDevices() function.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10
if you print out the device-info [ e.g. model and serial number ] of the two devices you see: are they really the same? As a quick workaround the method CreateFirstDevice() on TlFactory will pick the first on any list
the copying of the files into the wheel has an issue of accidentally resolving symbolic links. pylon tries to enumerate all transport layers and will find the same library under two names .