TheImagingSource / tiscamera

The Linux SDK for The Imaging Source cameras.
https://www.theimagingsource.com
Apache License 2.0
299 stars 146 forks source link

AttributeError: 'GstTcamBin' object has no attribute 'get_device_serials_backend' while running the 00-list-devices.py #547

Closed zarathacia closed 6 months ago

zarathacia commented 6 months ago

when running the 00-list-devices.py file i get this error:

Traceback (most recent call last): File "path/tiscamera/examples/python/00-list-devices.py", line 79, in list_devices() File "path/tiscamera/examples/python/00-list-devices.py", line 43, in list_devices serials = source.get_device_serials_backend() AttributeError: 'GstTcamBin' object has no attribute 'get_device_serials_backend'

When running the command gst-launch-1.0 tcambin ! videoconvert ! ximagesink it works perfectly by adding this command export TCAM_DISABLE_DEVICE_BLACKLIST=1

I am trying to build a ROS node based on the sample code found in the repo but they don't work.

TIS-Stefan commented 6 months ago

Hello The environment TCAM_DISABLE_DEVICE_BLACKLIST=1 variable must be set in all sessions you have. I you set it only once in the terminal, is is not set in another.

However, I am not sure, whether this answer relates to your issue.

Stefan

zarathacia commented 6 months ago

Hi, yeah it doesn't really relate to my problem is with the error that comes when i run the example files. i get the traceback above.

TIS-Stefan commented 6 months ago

Hello I just saw, you use version 1.1.0, but we are on version 1.1.1 already. Therefore, can you please update and try again?

Stefan

zarathacia commented 6 months ago

Hello, i updated the driver. the code was able to compile but it is unable to find the device.

image

also tested the camera with the command : gst-launch-1.0 tcambin ! videoconvert ! ximagesink and it works.

TIS-Stefan commented 6 months ago

Hello

did you do the "export TCAM_DISABLE_DEVICE_BLACKLIST=1" set before running the sample? What does tcam-ctrl -l says? (It does the same as the Python script.

Stefan

zarathacia commented 6 months ago

Hi it worked. thanks for your assistance.