Open
Description
Hi,
I tried to get an ImagingSource camera working with a raspberry pi 4. When I try to run your script it throughs me an error for gi:
AttributeError: module 'gi' has no attribute 'require_version'
I tried several things I found online, but it keeps causing problems. Any ideas how to use TIS without gi ?
Cheers, Andreas
Activity
TIS-Edgar commentedon May 28, 2024
Hi,
tiscamera implies the usage of gstreamer and gi (gobject-introspection).
All somewhat modern python wrapper for gi should implement
require_version
.lsb_release -a
python3 -c "import gi; print(gi.__version__)"
andbrocode commentedon Jun 3, 2024
Hi,
Its gi 2.28.1
pi@raspi-romy-ids05:~/tiscamera/examples/python $ python3 00-list-devices.py
Traceback (most recent call last):
File "/home/pi/tiscamera/examples/python/00-list-devices.py", line 24, in
gi.require_version("Gst", "1.0")
^^^^^^^^^^^^^^^^^^
AttributeError: module 'gi' has no attribute 'require_version'
Cheers, Andreas
TIS-Edgar commentedon Jun 3, 2024
Did you install the python gobject-introspection wrapper?
sudo apt install python3-gi
andbrocode commentedon Jun 5, 2024
Yes I did.
TIS-Stefan commentedon Jun 6, 2024
Hello
I searched for your error message in the internet and found: https://bbs.archlinux.org/viewtopic.php?id=203480
Maybe this is helpful for you.
Stefan