gilesknap / gphotos-sync

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

Closed - duplicate - Stuck in "visit URL Authorize ..." #369

Closed robex2005 closed 2 years ago

robex2005 commented 2 years ago

Hello,

I've used v2 of gphotos for more than 1 year, all went fine With the new google oauth changes, i've tried to upgrade to v3 Installed v3.0.3 with the linuxuprising tutorial (from scratch), but when i run pipenv run gphotos-sync, i got the url in the terminal for authorization, i've pasted the link in a browser, went thru the steps to authorize, but i have no prompt to enter token in the terminal

Enviroment> Raspberry PI 3 with Debian Buster Terminal looks like this>

root@rPi:~# gphotos-sync --version 3.0.3 root@rPi:~# pipenv run gphotos-sync --skip-files --skip-albums --skip-index /mnt/extra/GPhotos/ Creating a virtualenv for this project… Using /usr/bin/python3 (3.9.2) to create virtualenv… ⠋created virtual environment CPython3.9.2.final.0-32 in 548ms creator CPython3Posix(dest=/root/.local/share/virtualenvs/root-BuDEOXnJ, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv) added seed packages: pip==20.3.4, pkg_resources==0.0.0, setuptools==44.1.1, wheel==0.34.2 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

Virtualenv location: /root/.local/share/virtualenvs/root-BuDEOXnJ Creating a Pipfile for this project… 07-01 10:11:41 WARNING gphotos-sync 3.0.3 2022-07-01 10:11:41.482256 Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=865149062731-k9rmq5xxxxxxxxxxjl58evn6h44nefii.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fphotoslibrary.readonly+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fphotoslibrary.sharing&state=SmY6Cva0PO5PG9x10X8fwwl1o2DZQ9&access_type=offline

Any advice?

Thanks, Robert