Bug #68873
Mauvaise version de pillow ? (AttributeError: module 'PIL.Image' has no attribute 'UnidentifiedImageError')
Début:
09 septembre 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/gplexpert/issues/90362/
TypeError: open() got an unexpected keyword argument 'formats' File "wcs/qommon/misc.py", line 722, in get_thumbnail image = Image.open(fp, formats=['JPEG', 'PNG', 'GIF']) AttributeError: module 'PIL.Image' has no attribute 'UnidentifiedImageError' (10 additional frame(s) were not displayed) ... File "quixote/directory.py", line 88, in _q_traverse return obj._q_traverse(path) File "quixote/directory.py", line 82, in _q_traverse obj = self._q_lookup(component) File "wcs/forms/common.py", line 80, in _q_lookup return self.serve_file(file, thumbnail=self.thumbnails) File "wcs/forms/common.py", line 89, in serve_file content = misc.get_thumbnail(file.get_fs_filename(), content_type=file.content_type) File "wcs/qommon/misc.py", line 723, in get_thumbnail except (Image.DecompressionBombError, Image.UnidentifiedImageError):
Fichiers
Révisions associées
misc: add fake Image.UnidentifiedImageError for buster pillow (#68873)
Historique
Mis à jour par Lauréline Guérin il y a plus d'un an
- Projet changé de Suivi des traces à w.c.s.
- Sujet changé de AttributeError: module 'PIL.Image' has no attribute 'UnidentifiedImageError' à Mauvaise version de pillow ? (AttributeError: module 'PIL.Image' has no attribute 'UnidentifiedImageError')
Suite de #68505
version 5.4.1 en prod
(j'ai une 9.2.0 en local, jenkins tourne en 9.2.0 aussi)
Mis à jour par Frédéric Péters il y a plus d'un an
- Assigné à mis à Frédéric Péters
C'est l'HDS pas encore en Bullseye :/
Mis à jour par Frédéric Péters il y a plus d'un an
- Fichier 0001-misc-add-fake-Image.UnidentifiedImageError-for-buste.patch 0001-misc-add-fake-Image.UnidentifiedImageError-for-buste.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Lauréline Guérin il y a plus d'un an
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
(et ça va partir en hotfix également)
commit 5b1789cd8ca9dc002faa57705083ce87f53c6398 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Sep 9 08:50:03 2022 +0200 misc: add fake Image.UnidentifiedImageError for buster pillow (#68873)
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
misc: add fake Image.UnidentifiedImageError for buster pillow (#68873)