Skip to content

Conversation

FrancoisPerez
Copy link

Here are the key changes:

  • I updated the API scopes from 'photoslibrary' and 'photoslibrary.sharing' to 'photoslibrary.appendonly' and 'photoslibrary.readonly.appcreateddata'. This aligns with the new API model where apps primarily manage media they have created.
  • I verified that existing functionalities (album creation, media upload, listing app-created albums, retrieving app-created media URLs) are compatible with the new scopes and app-created data restrictions.
  • I added a note to the README.rst informing you of the API update and the potential need to re-authenticate.

The plugin should now continue to function for its core purpose: uploading photos from pibooth to a Google Photos album created by the plugin. You will need to re-authorize the plugin on first use after this update to grant permissions for the new scopes.

…ing Google Photos API changes, effective March 2025.

Here are the key changes:
- I updated the API scopes from 'photoslibrary' and 'photoslibrary.sharing' to 'photoslibrary.appendonly' and 'photoslibrary.readonly.appcreateddata'. This aligns with the new API model where apps primarily manage media they have created.
- I verified that existing functionalities (album creation, media upload, listing app-created albums, retrieving app-created media URLs) are compatible with the new scopes and app-created data restrictions.
- I added a note to the README.rst informing you of the API update and the potential need to re-authenticate.

The plugin should now continue to function for its core purpose: uploading photos from pibooth to a Google Photos album created by the plugin. You will need to re-authorize the plugin on first use after this update to grant permissions for the new scopes.
@gdrau
Copy link

gdrau commented May 25, 2025

bonjour j'ai une erreur qui me dis qu'il n'arrive pas a créer de repertoire dans google photo? votre mise a jour corrige bien ce probleme? comment fait le mis a jour? juste recuperer le .py et le lancer via un terminal? merci

Hello, I have an error that tells me that it cannot create a directory in Google Photos? Does your update correct this problem? How do I do the update? Just retrieve the .py and launch it via a terminal? Thank you.

@gdrau
Copy link

gdrau commented May 27, 2025

@FrancoisPerez , can you help me?

@gdrau
Copy link

gdrau commented May 27, 2025

It's okay, I understand

@Fotemoucher
Copy link

Hi, I have the same error, can you please tell me how update with the new script ?

@Fotemoucher
Copy link

Hi, I reached to fix it. If someone needs help, here is how I've done :

  • make a copy of pibooth.cfg
  • copy the last pibooth_google_photo.py file in the /usr/local/lib/python9.3/dist-packages folder
  • run the command "pibooth --reset" on the terminal
  • then restore my previous pibooth.cfg file

@spottier88
Copy link

@gdrau , @FrancoisPerez , Bonjour et merci du correctif. J'ai le même problème que @gdrau , erreur lors de la création du dossier, comment avez vous résolu ce problème ? Merci par avance.

@Fotemoucher
Copy link

Bonjour @spottier88, avez vous essayé ce que je décris au poste précédent qui a fonctionné pour moi ?

@spottier88
Copy link

Bonjour @spottier88, avez vous essayé ce que je décris au poste précédent qui a fonctionné pour moi ?

Merci @Fotemoucher , Oui, j'ai essayé mais sans succès. j'ai toutefois un doute sur l'endroit ou poser le fichier py (dans le repertoire de l'application pibooth (sous le rep Python, ou ailleurs). J'ai testé les 2, sans effet. Si tu as d'autres pistes, je suis preneur. Merci encore.

@Fotemoucher
Copy link

Je l’ai mis ici et ça a fonctionné pour moi
/usr/local/lib/python9.3/dist-packages
il faut bien prendre le dernier fichier publié par FrançoisPerez et faire la commande pibooth —reset, ensuite au premier lancement il y aura à nouveau la demande de validation par Google photo à accepter

@spottier88
Copy link

Je l’ai mis ici et ça a fonctionné pour moi /usr/local/lib/python9.3/dist-packages il faut bien prendre le dernier fichier publié par FrançoisPerez et faire la commande pibooth —reset, ensuite au premier lancement il y aura à nouveau la demande de validation par Google photo à accepter

Je vais essayer de nouveau. Lors de mes tests, j'avais bien la nouvelle demande de connexion (mais qui est lié au pibooth --reset qui supprime le jeton de google. par contre, je n'ai pas de version python9.3 sur mon install (cela s'arrête à la 3.7), faut-il que j'actualise ? Merci encore de tes réponses.

@spottier88
Copy link

Je l’ai mis ici et ça a fonctionné pour moi /usr/local/lib/python9.3/dist-packages il faut bien prendre le dernier fichier publié par FrançoisPerez et faire la commande pibooth —reset, ensuite au premier lancement il y aura à nouveau la demande de validation par Google photo à accepter

@Fotemoucher J'ai refait tout de zéro (récup du dernier fichier (qui contient bien les modifs), depôt dans dist-packages, mais j'ai toujours l'erreur "can not create Google Photos album". J'ai tenté de le créer avant, de le supprimer (pour forcer la création). Sans succès. Je suis preneur de toutes idées supplémentaires. Merci par avance
@FrancoisPerez @gdrau

@spottier88
Copy link

@Fotemoucher finalement résolu, je n'étais pas dans le bon rep (pour moi c'était /usr/lib/python... (sans le dist...)
merci pour le soutien.

@fab1o978
Copy link

This should be definitely merged to main branch. I also had issues with the plugin and I found this PR only after I found a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants