Closed dan86603 closed 6 months ago
No digiKam AlbumRoot found for D:\temp\Photos for digikam test\2023\2023-12-26, only have {'D:/temp/Photos for digikam test&fileuuid=bbcf04f6-e999-4ee6-90aa-f6c6f02cab07': 5}
Try inverting your slashes:
--photos_dir="D:/temp/Photos for digikam test"
The --digikam_db
and --contacts
paths are interpreted by picasa2digikam under your local Python interpreter, which understands Windows paths in both styles, so there it doesn't matter. The --photos_dir
is string-matched against the contents of your digiKam database. And because digiKam is a Linux program, it (presumably) stores paths with forward slashes, even when it runs on Windows.
Then I hope that the &fileuuid=bbcf04f6-e999-4ee6-90aa-f6c6f02cab07
suffix doesn't become an issue. If it still gives the same error with forward slashes, then please try this: Back up the .db file (and your photos, as you should anyway), shut down digiKam and revert any .db file changes you make before ever starting digiKam again. The one change you should make: Download SQLite Browser, open the AlbumRoots
table and remove that &fileuuid=bbcf04f6-e999-4ee6-90aa-f6c6f02cab07
part from the corresponding cell in the table (Browse Table -> edit the cell -> Apply -> Write Changes). Also please post the entire value of that cell here so that I can make the script do this automatically in future if it worked for you.
Thank you! Deleting &fileuuid=... did the trick. There was no need to change slashes, either way worked the same. During testing I reset the database with a new folder which had two different fileuuid's:
volumeid:?path=D:/temp/Photos for digikam test&fileuuid=f32a52c1-813e-46e5-8507-04c9e4aeff38
volumeid:?path=D:/temp/Photos for digikam test2&fileuuid=121e44e0-ab7b-48c0-8ce0-27e02580d782
On open Digikam resets the database and adds back the fileuuid. But since the script will hopefully only be run once, should not be an issue.
I'm having trouble running the code. I'm an absolute beginner at Python and I'm using VScode to run & debug, on Windows 10.
This is the powersell prompt (terminal inside VScode) running debug with arguments:
Not sure why the code is scanning drives E, F & G?
D:\temp\Photos for digikam test is the only collection in Digikam, I tried both as local collection and on a network share with same result.
Here is the error:
Thank you for any help