Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zarathacia opened this issue Apr 5, 2024 · 6 comments

Comments

@zarathacia
Copy link

zarathacia commented Apr 5, 2024

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

  • OS: Ubuntu 20.04
  • Architecture/Platform: amd64
  • Camera model: DFK 23UX174
  • tiscamera version: Tcam: 1.1.0_master/70abad2a_rev_4139

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

@zarathacia zarathacia changed the title AttributeError: 'GstTcamBin' object has no attribute 'get_device_serials_backend' while running the 00 AttributeError: 'GstTcamBin' object has no attribute 'get_device_serials_backend' while running the 00-list-devices.py Apr 5, 2024
@TIS-Stefan
Copy link
Contributor

TIS-Stefan commented Apr 5, 2024

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

zarathacia commented Apr 5, 2024

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
Copy link
Contributor

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
Copy link
Author

Hi it worked. thanks for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants