Open xmatthewx opened 5 months ago
It sounds like it isn’t finding the expected Google takeout files. You can specify where the takeout directory is using the command line arguments described in the readme.
Note this line from the readme:
the script can be run either in a single album directory, or in the base Google Photos directory
Be sure you’re running the script from the right Takeout directory, or that you’re feeding it the correct Takeout directory using the —takeout-dir
switch. If it can’t find the Takeout’s json and photo files, it can’t do its work. Double check that the expected files exist.
To clarify the difference between hash matching and name matching:
I also noticed you’re on a Mac. If everything else I mentioned above is being run correctly, you may need to try installing an updated version of Bash for that globstar to work properly. I’m not certain which version MacOS ships with these days, but it used to be quite out of date.
I'm running the script from within the takeout directory. Since it's able to make the albums, I assume it's finding the files and connecting to photoprism ok. I'm using the standar locations for originals and storage within the primary photoprism directory.
I'll try an updated Bash.
Okay, I've had a chance to sit down, read your logs more carefully, and compare them against what the script is doing and expecting. What jumps out at me is this line:
1: Trying to match *.*...
I should have noticed that before, but it's been a while since I've looked at the code of the script. That's happening in line 229, and it should say a file name there instead of *.*
.
If using an updated bash didn't work, try editing that line and changing *.*
to just *
. It's also possible that the globstar may not work on Macs. In that case, you can edit that line to remove the **
. It can probably be changed to:
for albumFile in "$albumDir"/*; do
as long as you specify one album at a time using the --album-name
switch. That should be much more portable.
Whatever your findings, I'd appreciate you reporting back so I can add some notes about compatibility with Macs in the readme.
When I run the script, albums are created, but no images are added to the albums.
For every album, the log shows this (~150 albums). There are no other warnings or errors in the log.
The volume is an attached SSD drive on MacOS 13.2. There's nothing unique about its setup.
After installing md5sha1sum with homebrew, I ran match on hash. I get:
Any suggestions?