yannrouillard / gphotos-sync Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED - Google Photos Simple Synchronization Tool
License: MIT License
DEPRECATED - Google Photos Simple Synchronization Tool
License: MIT License
Hi!
Is it possible use gphotos-sync to remove all my photos?
python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --helperror: no commands supplied
This seemed to help
sudo python setup.py install
This looks like a very useful utility, but possibly duplicates some of the capabilities that are built into Google Photos and Google Drive, whereby you can expose your photos in a "Google Photos" folder in Google Drive, and then sync the latter to your local hard drive with Google Backup & Sync.
Would it be possible to add a few lines of explanatory text to the README that either confirms this (i.e. gphotos-sync
is another way of accomplishing the same thing), or explaining some of the unique capabilities for this tool (e.g. works around limitations of the Google Backup & Sync features).
Thanks!
Your project looks VERY interesting. However I wasn't able to have it download all the photos. Heres the output of gphotos-sync download ~/whatever/
:
Traceback (most recent call last):
File "/usr/local/bin/gphotos-sync", line 395, in <module>
credentials_file=credentials_file)
File "/usr/local/bin/gphotos-sync", line 194, in __init__
self.gauth.CommandLineAuth()
File "/usr/local/lib/python2.7/dist-packages/pydrive/auth.py", line 67, in _decorated
self.GetFlow()
File "/usr/local/lib/python2.7/dist-packages/pydrive/auth.py", line 345, in GetFlow
self.LoadClientConfig()
File "/usr/local/lib/python2.7/dist-packages/pydrive/auth.py", line 294, in LoadClientConfig
self.LoadClientConfigFile()
File "/usr/local/lib/python2.7/dist-packages/pydrive/auth.py", line 314, in LoadClientConfigFile
raise InvalidConfigError('Invalid client secrets file %s' % error)
pydrive.settings.InvalidConfigError: Invalid client secrets file Missing property "redirect_uris" in a client type of "web".
Here's the contents of my ~/.config/gphotos-sync/client_secret.json
:
{"web":{"client_id":"xxx-yyy.apps.googleusercontent.com","project_id":"photossync-nnnn","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"zzzzzzz"}}
Did I do something wrong?
Hi Yan,
I'd like, with your permission to divorce my fork of gphotos-sync from your original. This is because it is very difficult to find my project fork by searching github. Now that you have deprecated and no longer have keywords relating to google photos it is almost impossible to find my project.
I believe that this is possible through github support but would like to make sure you are OK with it.
Thanks
Please give option not to sync photos sent from contacts
I want to sync only what I've filmed and not necessarily all of what was sent to me.
After downloading the project as a .zip and unzipping, I get the following error:
Installed /home/jonathan/gphotos-sync-master/pbr-3.0.0-py2.7.egg
ERROR:root:Error parsing
Traceback (most recent call last):
File "/home/jonathan/gphotos-sync-master/pbr-3.0.0-py2.7.egg/pbr/core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/home/jonathan/gphotos-sync-master/pbr-3.0.0-py2.7.egg/pbr/util.py", line 249, in cfg_to_args
pbr.hooks.setup_hook(config)
File "/home/jonathan/gphotos-sync-master/pbr-3.0.0-py2.7.egg/pbr/hooks/init.py", line 25, in setup_hook
metadata_config.run()
File "/home/jonathan/gphotos-sync-master/pbr-3.0.0-py2.7.egg/pbr/hooks/base.py", line 27, in run
self.hook()
File "/home/jonathan/gphotos-sync-master/pbr-3.0.0-py2.7.egg/pbr/hooks/metadata.py", line 26, in hook
self.config['name'], self.config.get('version', None))
File "/home/jonathan/gphotos-sync-master/pbr-3.0.0-py2.7.egg/pbr/packaging.py", line 748, in get_version
name=package_name))
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name gphotos-sync was given, but was not able to be found.
error in setup command: Error parsing /home/jonathan/gphotos-sync-master/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name gphotos-sync was given, but was not able to be found.
Hi Yann
Thanks for a cool project! - I followed the instructions; installed and created a project and client id on the google developer console. I moved the saved json to ~/.config/gphotos-sync/client_id.json and called the app. Below's the output. Can you point me to what I'm doing wrong?
http://pastebin.com/AJ6s6xzB
All the best,
A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.