gilesknap / gphotos-sync

Google Photos and Albums backup with Google Photos Library API
Apache License 2.0
1.97k stars 163 forks source link

Issues running terminal mac #366

Closed antoinevanla closed 2 years ago

antoinevanla commented 2 years ago

Hello,

I have been looking for that kind of tool for a long time. I am not good at programming; I only know a bit of Python. I followed the tutorial, but it did not seem to work. I downloaded my client_secret.json file and then saved it under ~/Library/Application Support/gphotos-sync/ as indicated. Was I supposed to create that "gphotos-sync" file, or did I miss something? It is said in the tutorial that I should be ready to run gphotos-sync for the first time, either locally or inside of a container. I created a new empty TARGET DIRECTORY file as said and then entered the gphotos-sync command in the terminal, but this happens zsh: parse error near `\n.'

Could someone help me with this, please? I'm sorry I'm a beginner regarding computer stuff

Thank 👏

gilesknap commented 2 years ago

Hi, please can you post the output of your pip install command? And maybe a screenshot of your attempt to run gphotos-sync ?

It's a little hard for me to support Mac as I do not have one. However - the CI does run tests on Mac so it should work.

Maybe if you take a look at the log of the Mac tests it might give you a clue? https://github.com/gilesknap/gphotos-sync/runs/6857681963?check_suite_focus=true

antoinevanla commented 2 years ago

Hi, thanks for your quick answer. I attached a screenshot of the outputs.

Screenshot 2022-06-18 at 13 42 07

I looked also the log of the Mac tests to see if it could help me but it did not...

Thanks

gilesknap commented 2 years ago

Hi,

You need to supply your own target directory. E.g.

mkdir myphotos
gphotos-sync myphotos

Maybe I need to make that clearer in the docs.

antoinevanla commented 2 years ago

Hi, thanks for your answer.

Screenshot 2022-06-18 at 14 30 17

It seems to work. However, it indexed only 1239 items and I have thousands more. Is there something more that needs to be done?

Thank you so much

gilesknap commented 2 years ago

The Google API does have bugs that mean some photo libraries don't get all their photos downloaded.

One thing to ask is do you have library sharing enabled with another account? In this case not all the photos you see in the web UI are actually in your own library (you can select them and choose to add them via the web UI)

antoinevanla commented 2 years ago

I managed to download everything with the --album command! Thanks for solving my issue 👏