python pysenxor-master/example/stream_spi.pyI finally managed to get the software to work with the GPIO version.
The module didn't work before because the ribbon cable was apparently not correctly connected into its socket. After removing and re-inserting the cable, the example program showed window with the live image from the camera.
I have also ordered the USB version and assume that'll work as well.
Regarding the software install problems: It's much easier, on Debian 12 (bookworm) to remove the file that leads to forcing us to use venv. Sure, that's not "proper", but in this case it makes the use of the example easier. Here's how I managed to re-install the software on my Pi5:Code:
# we should be in a normal user account, not root!cd ~# this prevents the annoying "externally-managed-environment" error:sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED# now install some modulespip install numpypip install smbuspip install crcmodpip install matplotlibpip install imutilspip install opencv_pythonpip install cmapy# install the examplewget https://www.waveshare.net/w/upload/d/d4/Pysenxor-master.zipunzip Pysenxor-master.zip cd pysenxor-master/sudo python3 setup.py install# enable SPI and i2c here, and also add "dtoverlay=spi0-0cs":sudo nano /boot/firmware/config.txt# perhaps also enable SPI and i2c here as well:sudo raspi-configsudo reboot# run the demo:cd ~python pysenxor-master/example/stream_spi.py
Traceback (most recent call last):
File "/home/yassine/pysenxor-master/example/stream_spi.py", line 195, in <module>
spi.device.cshigh = True
^^^^^^^^^^^^^^^^^
SystemError: error return without exception set
I have this error, you have a solution please
Statistics: Posted by rasp_bgnr — Tue Feb 18, 2025 2:00 pm