NixOS - Rapid Photo Downloader will not start

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.

hey fellow NixOS user. It launches fine for me on 25.05.

Is your camera plugged into your computer? Can you get RPD to launch at all? Is your camera supported by gphoto2?

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.

2 Likes

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.

The version in nixpkgs is 0.9.36.

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.

In order:

No, but an SD card has been (which is how I’ve used RPD forever). No, I cannot. Yes, they’ve all worked flawlessly in the past.

I guess I can try launching it specifically with a camera plugged in?

No need to test the camera, I only asked because of the gphoto2 error.

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.

1 Like

Unstable do be like that tho

LOL yes it be. Though this … quirk … has persisted a lot longer than they usually do. :slight_smile: