now I know, why you wished me good luck
After some struggle I managed to update almost anything to server 5.5.1, but the PDF fails in Omero.figure.
I followed the instructions from https://pypi.org/project/omero-figure/ but keep getting error messages when doing the PDF Export.
Traceback (most recent call last):
File "./script", line 2327, in <module>
File "./script", line 2313, in run_script
file_annotation = export_figure(conn, script_params)
File "./script", line 2269, in export_figure
File "./script", line 964, in build_figure
self.add_panels_to_page(panels_json, image_ids, page)
File "./script", line 1769, in add_panels_to_page
image, pil_img = self.draw_panel(panel, page, i)
File "./script", line 1600, in draw_panel
self.paste_image(pil_img, img_name, panel, page, dpi)
File "./script", line 1923, in paste_image
self.figure_canvas.drawImage(img_name, x, y, width, height)
File "/usr/lib64/python2.7/site-packages/reportlab/pdfgen/canvas.py", line 857, in drawImage
imgObj = pdfdoc.PDFImageXObject(name, image, mask=mask)
File "/usr/lib64/python2.7/site-packages/reportlab/pdfbase/pdfdoc.py", line 2094, in __init__
File "/usr/lib64/python2.7/site-packages/reportlab/pdfbase/pdfdoc.py", line 2100, in loadImageFromA85
imagedata = map(string.strip,pdfutils.makeA85Image(source,IMG=IMG))
File "/usr/lib64/python2.7/site-packages/reportlab/pdfbase/pdfutils.py", line 34, in makeA85Image
raw = img.getRGBData()
File "/usr/lib64/python2.7/site-packages/reportlab/lib/utils.py", line 658, in getRGBData
File "/usr/lib64/python2.7/site-packages/reportlab/lib/utils.py", line 648, in getRGBData
if Image.VERSION.startswith('1.1.7'): im.load()
AttributeError: 'module' object has no attribute 'VERSION'
identity=[ImageReader@0x4f6ecd0 filename='0_Nup153StarGREEN_Nup133StarRED_Z-Stack_Structured Illumination_Maximum intensity projection.czi.tiff']
I believe this is caused by outdated Markdown and reportlab packages, since pip wasn’t able to update them (“ERROR: Cannot uninstall ‘reportlab’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.”)
Can I force the update with pip with those packages? I was unsure to do so, in case I could completely break the installation
Any hints are much appreciated.