Récupération Notes Google Keep impossible

Bonjour,

Depuis quelques jours mes notes ne sont plus récupérées par le plugin.

J’ai l’erreur :

[2023-12-09 08:48:31]DEBUG : synchronize : début
[2023-12-09 08:48:31]DEBUG : getNotes : début  &
[2023-12-09 08:48:31]DEBUG : Commande envoyée : sudo /var/www/html/plugins/gkeep/core/class/../../resources/venv/bin/python3 /var/www/html/plugins/gkeep/core/class/../../resources/gkeepmanager.py  --username sebxain@xxxl.com --token "aas_et/AKppINxxxxxU_ezYv-cecQR677yb06c=" get_notes
[2023-12-09 08:48:32]DEBUG : Résultat brut Traceback (most recent call last):   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 291, in _load     self._title = raw['webLink']['title'] KeyError: 'title'  The above exception was the direct cause of the following exception:  Traceback (most recent call last):   File "/var/www/html/plugins/gkeep/core/class/../../resources/gkeepmanager.py", line 902, in      main()   File "/var/www/html/plugins/gkeep/core/class/../../resources/gkeepmanager.py", line 792, in main     manager.get_notes()   File "/var/www/html/plugins/gkeep/core/class/../../resources/gkeepmanager.py", line 180, in get_notes     success = keep.resume(self.username, master_token)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 722, in resume     self.load(auth, state, sync)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 749, in load     self.sync(True)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 1024, in sync     self._sync_notes(resync)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 1074, in _sync_notes     self._parseNodes(changes["nodes"])   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 1110, in _parseNodes     node = _node.from_json(raw_node)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 1930, in from_json     node.load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 1191, in _load     super(TopLevelNode, self)._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 1046, in _load     self.annotations.load(raw['annotationsGroup'])   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 524, in _load     annotation = self.from_json(raw_annotation)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 505, in from_json     annotation.load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 450, in _load     self._entries[key] = NodeAnnotations.from_json({key: entry})   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 505, in from_json     annotation.load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 216, in load     raise_from(exception.ParseException('Parse error in %s' % (type(self)), raw), e)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/future/utils/__init__.py", line 406, in raise_from     exec(execstr, myglobals, mylocals)   File "", line 1, in  gkeepapi.exception.ParseException: Parse error in 
[2023-12-09 08:48:32]DEBUG : sendCmdAndFormatResult : Résultat brut Traceback (most recent call last):   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 291, in _load     self._title = raw['webLink']['title'] KeyError: 'title'  The above exception was the direct cause of the following exception:  Traceback (most recent call last):   File "/var/www/html/plugins/gkeep/core/class/../../resources/gkeepmanager.py", line 902, in      main()   File "/var/www/html/plugins/gkeep/core/class/../../resources/gkeepmanager.py", line 792, in main     manager.get_notes()   File "/var/www/html/plugins/gkeep/core/class/../../resources/gkeepmanager.py", line 180, in get_notes     success = keep.resume(self.username, master_token)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 722, in resume     self.load(auth, state, sync)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 749, in load     self.sync(True)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 1024, in sync     self._sync_notes(resync)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 1074, in _sync_notes     self._parseNodes(changes["nodes"])   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/__init__.py", line 1110, in _parseNodes     node = _node.from_json(raw_node)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 1930, in from_json     node.load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 1191, in _load     super(TopLevelNode, self)._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 1046, in _load     self.annotations.load(raw['annotationsGroup'])   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 524, in _load     annotation = self.from_json(raw_annotation)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 505, in from_json     annotation.load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 214, in load     self._load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 450, in _load     self._entries[key] = NodeAnnotations.from_json({key: entry})   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 505, in from_json     annotation.load(raw)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/gkeepapi/node.py", line 216, in load     raise_from(exception.ParseException('Parse error in %s' % (type(self)), raw), e)   File "/var/www/html/plugins/gkeep/resources/venv/lib/python3.9/site-packages/future/utils/__init__.py", line 406, in raise_from     exec(execstr, myglobals, mylocals)   File "", line 1, in  gkeepapi.exception.ParseException: Parse error in 
[2023-12-09 08:48:32]INFO : sendCmdAndFormatResult : Résultat array null
[2023-12-09 08:48:32]WARNING : Erreur lors de l'exécution de la commande :  --username sxxxxxin@xxxx.com --token "aas_et/AKppINZcRmxxxLGLU4KHU_ezYv-cecQR677yb06c=" get_notes
[2023-12-09 08:48:32]DEBUG : synchronize : fin

Rien de plus comme erreur.
Google a changé quelque chose ou c’est le plugin (ou les deux :slight_smile: )

Bonjour.

Désolé pour le temps de réponse, je n’ai pas eu d’alerte pour ce plugin.

Le problème est là :

Ca a été corrigé dans une version supérieure de gkeepapi, mais n’est pas accessible à cause de dépendances non satisfaites. Ca dépend de la version de l’OS, la version de certains paquets, la version de python…

Bricolage :
Si tu remplaces la méthode load par ça dans node.py, ça refonctionne :

    def _load(self, raw: dict) -> None:
        super()._load(raw)
        self._title = (
            raw["webLink"]["title"]
            if "title" in raw["webLink"]
            else self.title
        )
        self._url = raw["webLink"]["url"]
        self._image_url = (
            raw["webLink"]["imageUrl"]
            if "imageUrl" in raw["webLink"]
            else self.image_url
        )
        self._provenance_url = raw["webLink"]["provenanceUrl"]
        self._description = (
            raw["webLink"]["description"]
            if "description" in raw["webLink"]
            else self.description
        )

Ca arrive quand une note de contient pas de titre (ou pas de description)

Super merci!