Edward or Yang,
I have some comments and questions –
Comment: If version 0.0.7 is already installed, it appears that you must also include the option “–allow-downgrades” when trying to install 0.0.6. Otherwise, you will get an error and it won’t downgrade.
[email protected]:~ $ sudo apt install -y ./libcamera-apps-0.0.6-bullseye-arm64.deb
Use 'sudo apt autoremove' to remove it.
The following packages will be DOWNGRADED:
libcamera-apps
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
[email protected]:~ $ dpkg --list|grep libcamera
ii libcamera-apps 0.0.7 arm64 libcamera-apps
ii libcamera-dev 0.0.7 arm64 libcamera
Questions:
1) For the armhf platform, you suggest installing version 0.0.6 of “libcamera-dev”, but for the arm64 platform, you suggest installing version 0.0.6 of “libcamera-apps”.
Is that correct? Or is that a typo?
2) I was already on 0.0.7 and I’m on the arm64 platform. Should I downgrade BOTH “libcamera-dev” and “libcamera-apps” in order to fix this problem? When I tried your suggestion above, it did not fix my issue – the “FocuserExample.py” program will not work.
(I have downgraded libcamera-apps to 0.0.6, but my libcamera-dev is still running 0.0.7)
[email protected]:~ $ dpkg --list|grep libcamera
ii libcamera-apps 0.0.6 arm64 libcamera-apps
ii libcamera-dev 0.0.7 arm64 libcamera
[email protected]:~ $ cd Arducam-Pivariety-V4L2-Driver/focus
[email protected]:~/Arducam-Pivariety-V4L2-Driver/focus $ python FocuserExample.py
Traceback (most recent call last):
File "/home/pi/Arducam-Pivariety-V4L2-Driver/focus/v4l2_utils.py", line 64, in get_device_controls_by_class
fcntl.ioctl(fd, v4l2.VIDIOC_QUERYCTRL, queryctrl)
OSError: [Errno 25] Inappropriate ioctl for device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/Arducam-Pivariety-V4L2-Driver/focus/FocuserExample.py", line 157, in <module>
main()
File "/home/pi/Arducam-Pivariety-V4L2-Driver/focus/FocuserExample.py", line 152, in main
focuser = Focuser(args.device)
File "/home/pi/Arducam-Pivariety-V4L2-Driver/focus/Focuser.py", line 40, in __init__
self.ctrls = v4l2_utils.get_ctrls(self.fd)
File "/home/pi/Arducam-Pivariety-V4L2-Driver/focus/v4l2_utils.py", line 96, in get_ctrls
for queryctrl in get_device_controls_by_class(vd, class_):
File "/home/pi/Arducam-Pivariety-V4L2-Driver/focus/v4l2_utils.py", line 66, in get_device_controls_by_class
assert e.errno == errno.EINVAL
AssertionError