Problem with finding 'client_secret.json' file #456
Replies: 6 comments
-
I assume from this your username is Is the JSON file at In many shells the Thanks for reporting that gphotos-sync does not work on python 3.12 - time for a new release. |
Beta Was this translation helpful? Give feedback.
-
The thing is that the 'client_secret.json' file is in the correct directory (the one you stated and found in initial setup tutorial) but it seems that the program does not recognise it. I followed the instructions for OAuth when I created the .json file and it should be valid by all means and not corrupted/incorrect. |
Beta Was this translation helpful? Give feedback.
-
It's not saying the file is corrupt, just that it cannot find it. try cutting and pasting this command into a shell to make sure there is not a subtle difference between the filename you can see and the one the code is looking for: ls '/Users/x/Library/Application Support/gphotos-sync/client_secret.json' |
Beta Was this translation helpful? Give feedback.
-
Executing the command you suggested returns the one below:
However, executing Could this be some sort of root issue? |
Beta Was this translation helpful? Give feedback.
-
I solved the issue - looks like I had the '/Users/x/Library' hidden for some reason and placed the 'client_secret.json' in the wrong folder. All good now and program is working. Apologies for this. |
Beta Was this translation helpful? Give feedback.
-
Thanks for letting me know. Closing. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm on MacOS 13.6.3 running Python 3.11 as I couldn't install 'gphotos-sync' on the latest version of Python so downgraded. Followed the instructions on 'Creating an OAuth Client ID' and extracted 'client_secret.json' file and after that I successfully installed 'gphotos-sync' on virtual environment.
When I'm trying to run 'gphotos-sync' it returns with error FileNotFoundError: [Errno 2] No such file or directory: '/Users/x/Library/Application Support/gphotos-sync/client_secret.json' which is weird as the 'client_secret.json' file is placed in the proper folder as stated in the initial setup process i.e., ~/Library/Application Support/gphotos-sync/client_secret.json.
It really doesn't matter is the folder I want to extract to a portable device or my computer internal hard drive as the error is the same.
Below is the log file the program creates in the folder I want to extract the photos to:
Hope somebody can help me solve this issue - I've tried to find solutions but no luck yet.
Beta Was this translation helpful? Give feedback.
All reactions