This might be an error with the nixpkgs package of RPD and it might be a gphoto2/libgphoto2 issue, but I’ve been unable to launch the program for quite a while. Error follows:
ERROR An unhandled exception occurred
ERROR Traceback (most recent call last):
File "/nix/store/i6dc3mbd04mds3yhhv76gh206qqa983a-rapid-photo-downloader-0.9.36/lib/python3.12/site-packages/raphodo/rapid.py", line 1093, in initStage9
self.searchForCameras()
File "/nix/store/i6dc3mbd04mds3yhhv76gh206qqa983a-rapid-photo-downloader-0.9.36/lib/python3.12/site-packages/raphodo/rapid.py", line 5365, in searchForCameras
for model, port in cameras:
^^^^^^^
TypeError: 'gphoto2.list.CameraList' object is not iterable
Using NixOS unstable (issue was present before 25.05 release) on aarch64.
Judging by the error, this almost certainly indicates NixOS is using an ancient version of Rapid Photo Downloader that was written before the Python binding for gphoto2 changed its API. In other words, NixOS has updated its package for the Python binding for gphoto2, without updating the package for Rapid Photo Downloader.
I am also on NixOS unstable and just got this issue. I am using rapid-photo-downloader 0.9.36. Is this version still using the old gphoto2 API?
Nevermind, i just noticed that stable works and uses the same version (0.9.36), so I guess it is a NixOS related issue. Maybe using the wrong dependencies or sth like that.
Wait, I’m going to try something. (time passes) Ok, I was trying to launch it without anything plugged in, so I tried with a working SD card inserted. Same error occurs. I’m going to try pulling RPD from 25.05 and see if that works–it’s the same RPD version but maybe some included dependency in the package is screwy in unstable.
For what it’s worth, adding RPD from the stable branch has fixed it (I’m happy to post the relevant config for anyone who is interested, though it’s somewhat outside the scope of this forum). Pretty clearly a dependency issue on the unstable branch, which kinda goes with the territory. Thanks for everyone’s assistance.