jim-easterbrook / Photini

An easy to use digital photograph metadata (Exif, IPTC, XMP) editing application.
https://photini.readthedocs.io/
GNU General Public License v3.0
163 stars 24 forks source link

Google Photos not working #27

Closed waorak closed 6 years ago

waorak commented 7 years ago

Google Photos doesn't seem to be working. The connection button opens Google Photos and once signed in, Google generates the code to paste into the program. Once the code is pasted into the Photini dialog, it seems to just hang. After restarting Photini, the Connect button changes to Logout, but the User frame still gives the status as not connected.

Win10, 64bit, installer and then ran the update too. Google account is using two factor authentication. Flickr account works fine.

Thank you Russell

jim-easterbrook commented 7 years ago

Google have recently disabled a large chunk of the Picasa API (see #22) so this may be related. I don't have time to investigate it now, but might be able to look into it in a few days time.

jim-easterbrook commented 7 years ago

I've done a bit of investigation and have discovered that there's been a change in the 'requests' Python library that causes problems with an additional header required by the Google Photos API. Can you run Photini from a command window (see http://photini.readthedocs.io/en/latest/other/installation.html#troubleshooting) and see if you get any messages like requests.exceptions.InvalidHeader: Header value 2 must be of type str or bytes, not <class 'int'>.

This isn't the only problem though, as downgrading versions of the 'requests' library (and associated libraries) gives me certificate verification failure on Windows 7 (the only version I have access to) but not on Linux.

Given the newly crippled state of the Google Photos API (e.g. can no longer create albums!) I'm not sure it's worth trying to get it working until Google come up with a useful replacement.

jim-easterbrook commented 7 years ago

I think I've sorted out the certificate verification problem in commit 0623aa1. I can log in and out of Google Photos on Linux and Windows 7 and get the same crippled functionality on each.

jim-easterbrook commented 7 years ago

The latest release v2017.03.0 incorporates these changes. Please let me know if it works for you.

jim-easterbrook commented 7 years ago

@waorak Have you tried the latest version yet?