Figure export error
Posted: Thu Nov 22, 2018 10:17 am
Hi,
The 'Export PDF' function in Figure is failing and gives an error:
Traceback (most recent call last):
File "./script", line 2315, in <module>
run_script()
File "./script", line 2301, in run_script
file_annotation = export_figure(conn, script_params)
File "./script", line 2257, in export_figure
return fig_export.build_figure()
File "./script", line 962, in build_figure
self.add_panels_to_page(panels_json, image_ids, page)
File "./script", line 1767, in add_panels_to_page
image, pil_img = self.draw_panel(panel, page, i)
File "./script", line 1589, in draw_panel
pil_img = self.get_panel_image(image, panel, orig_name)
File "./script", line 1487, in get_panel_image
pil_img = self.get_panel_big_image(image, panel)
File "./script", line 1442, in get_panel_big_image
viewport_region, max_width)
File "./script", line 1361, in render_big_image_region
scale, level = self.get_zoom_level_scale(image, region, max_width)
File "./script", line 1337, in get_zoom_level_scale
max_level = len(zm_levels.keys()) - 1
AttributeError: 'NoneType' object has no attribute 'keys'
I've upgraded to Figure 4.02. Could the old version be cached somewhere perhaps?
Thanks,
Matt.
The 'Export PDF' function in Figure is failing and gives an error:
Traceback (most recent call last):
File "./script", line 2315, in <module>
run_script()
File "./script", line 2301, in run_script
file_annotation = export_figure(conn, script_params)
File "./script", line 2257, in export_figure
return fig_export.build_figure()
File "./script", line 962, in build_figure
self.add_panels_to_page(panels_json, image_ids, page)
File "./script", line 1767, in add_panels_to_page
image, pil_img = self.draw_panel(panel, page, i)
File "./script", line 1589, in draw_panel
pil_img = self.get_panel_image(image, panel, orig_name)
File "./script", line 1487, in get_panel_image
pil_img = self.get_panel_big_image(image, panel)
File "./script", line 1442, in get_panel_big_image
viewport_region, max_width)
File "./script", line 1361, in render_big_image_region
scale, level = self.get_zoom_level_scale(image, region, max_width)
File "./script", line 1337, in get_zoom_level_scale
max_level = len(zm_levels.keys()) - 1
AttributeError: 'NoneType' object has no attribute 'keys'
I've upgraded to Figure 4.02. Could the old version be cached somewhere perhaps?
Thanks,
Matt.