Bonjour,
Lors de l'édition de certains rapports (propriétaire -> situation ou grand livre) j'ai l'erreur suivante :
Traceback (most recent call last):
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/printgenerators.py", line 441, in generate_report
content = transforme_xml2pdf(report_content)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/reporting.py", line 346, in transforme_xml2pdf
lpdf.execute(xml_content)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/reporting.py", line 338, in execute
self._parse_comp(body, self.header_h + self.t_margin)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/reporting.py", line 307, in _parse_comp
fct(child, current_x, current_y, current_w, current_h)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/reporting.py", line 241, in parse_table
text, _, _ = self.create_para(cell, width_columns[col_idx], 0)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/reporting.py", line 198, in create_para
text = Paragraph(para_text, style=style)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/platypus/paragraph.py", line 1151, in __init__
self._setup(text, style, bulletText or getattr(style,'bulletText',None), frags, cleanBlockQuotedText)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/platypus/paragraph.py", line 1173, in _setup
style, frags, bulletTextFrags = _parser.parse(text,style)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/platypus/paraparser.py", line 1247, in parse
annotateException('\nparagraph text %s caused exception' % ascii(text))
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/lib/utils.py", line 1390, in annotateException
rl_reraise(t,v,b)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/lib/utils.py", line 144, in rl_reraise
raise v
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/platypus/paraparser.py", line 1245, in parse
self.feed(text)
File "/usr/lib/python3.5/html/parser.py", line 111, in feed
self.goahead(0)
File "/usr/lib/python3.5/html/parser.py", line 171, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python3.5/html/parser.py", line 345, in parse_starttag
self.handle_starttag(tag, attrs)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/platypus/paraparser.py", line 1268, in handle_starttag
start(attrs or {})
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/platypus/paraparser.py", line 862, in start_font
A = self.getAttributes(attr,_spanAttrMap)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/platypus/paraparser.py", line 1098, in getAttributes
A[j[0]] = v if func is None else func(v)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/lib/colors.py", line 870, in __call__
raise ValueError('Invalid color value %r' % arg)
ValueError: Invalid color value '"green"/'
paragraph text '<para><font color="green"/></para>' caused exception
transforme_xml2pdf
Traceback (most recent call last):
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/lib/colors.py", line 867, in __call__
return HexColor(arg)
File "/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/reportlab/lib/colors.py", line 382, in HexColor
val = int(val,b)
ValueError: invalid literal for int() with base 10: '"green"/'
J'ai fait la dernière mise à jour proposée avant de découvrir le problème.
Avez-vous une idée ?
Frédéric