Projet

Général

Profil

Bug #76117

connecteur pdf, (build?) cassé par nouvelle version de Pillow

Ajouté par Frédéric Péters il y a environ un an. Mis à jour il y a environ un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
02 avril 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://jenkins.entrouvert.org/job/passerelle/3526/ passe de Pillow 9.5.0 à Pillow 9.6.0, et test_pdf.test_fill_form_ok se met à échouer :

passerelle/apps/pdf/views.py:90: in get
    thumbnail_content = self.make_thumbnail(page)
passerelle/apps/pdf/views.py:63: in make_thumbnail
    draw.rectangle(area_rect, fill=(255, 0, 0, 50))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <PIL.ImageDraw.ImageDraw object at 0x7fea7dd59cd0>
xy = Rect(x1=739, y1=202, x2=750, y2=191), fill = 838861055, outline = None
width = 1

    def rectangle(self, xy, fill=None, outline=None, width=1):
        """Draw a rectangle.""" 
        ink, fill = self._getink(outline, fill)
        if fill is not None:
>           self.draw.draw_rectangle(xy, fill, 1)
E           ValueError: y1 must be greater than or equal to y0

Révisions associées

Révision b0466e94 (diff)
Ajouté par Frédéric Péters il y a environ un an

tox: limit Pillow version to avoid failure in test_fill_form_ok (#76117)

Révision 2c5c98c6 (diff)
Ajouté par Frédéric Péters il y a environ un an

tox: limit Pillow version to avoid failure in test_fill_form_ok (#76117)

Historique

#1

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de Nouveau à Solution proposée
  • Assigné à mis à Frédéric Péters

Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :

#2

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de Solution proposée à Solution validée

Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :

#3

Mis à jour par Frédéric Péters il y a environ un an

  • Statut changé de Solution validée à Résolu (à déployer)
#4

Mis à jour par Transition automatique il y a environ un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#5

Mis à jour par Transition automatique il y a 11 mois

Automatic expiration

Formats disponibles : Atom PDF