Holoviews Renders Throwing error

I am creating a HoloMap and the converting it to Bokeh implementation (which I used further) I’m doing the following:

renderer = hv.renderer(‘bokeh’)
plot = renderer.get_plot(holomap).state

Initially, this was working but Now I’m getting the following error

failed to validate Figure(id='1046', ...).align: expected an element of either Enum('start', 'center', 'end') or Tuple(Enum('start', 'center', 'end'), Enum('start', 'center', 'end')), got None

I double-checked the versions (1.13.2) so that if this is related to the version issue, also verified the data but still couldn’t find any changes.

Can you please help here?

cc: philippjfr

In Holoview opts I added:

align=‘centre’

Now I’m getting:

holoviews.core.options.AbbreviatedException: AttributeError: ‘str’ object has no attribute ‘dataspecs’

Complete logs:

2021-06-10 11:58:00 - Main - ERROR - can't pickle traceback objects
concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/bokeh/element.py", line 1287, in _init_glyphs
    self._update_glyph(renderer, properties, mapping, glyph, source, source.data)
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/bokeh/element.py", line 1183, in _update_glyph
    dataspecs = glyph.dataspecs()
AttributeError: 'str' object has no attribute 'dataspecs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.7/concurrent/futures/process.py", line 239, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/mnt/tmp/generate_intersection_performance_heatmap_v1.py", line 344, in create_intersection_metric_plot
    plot = get_heat_map(df_unique, None, title, maxIntersections, agg_present)
  File "/mnt/tmp/generate_intersection_performance_heatmap_v1.py", line 286, in get_heat_map
    plot = renderer.get_plot(holomap).state
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/bokeh/renderer.py", line 73, in get_plot
    plot = super(BokehRenderer, self_or_cls).get_plot(obj, doc, renderer, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/renderer.py", line 232, in get_plot
    plot.update(init_key)
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/plot.py", line 878, in update
    return self.initialize_plot()
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/bokeh/element.py", line 2175, in initialize_plot
    child = subplot.initialize_plot(ranges, plot, plots)
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/bokeh/element.py", line 1317, in initialize_plot
    self._init_glyphs(plot, element, ranges, source)
  File "/usr/local/lib/python3.7/site-packages/holoviews/plotting/bokeh/element.py", line 1287, in _init_glyphs
    self._update_glyph(renderer, properties, mapping, glyph, source, source.data)
  File "/usr/local/lib/python3.7/site-packages/holoviews/core/options.py", line 227, in __exit__
    raise AbbreviatedException(etype, value, traceback)
holoviews.core.options.AbbreviatedException: AttributeError: 'str' object has no attribute 'dataspecs'

To view the original traceback, catch this exception and call print_traceback() method.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.7/concurrent/futures/process.py", line 205, in _sendback_result
    exception=exception))
  File "/usr/lib64/python3.7/multiprocessing/queues.py", line 358, in put
    obj = _ForkingPickler.dumps(obj)
  File "/usr/lib64/python3.7/multiprocessing/reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
TypeError: can't pickle traceback objects
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/tmp/generate_intersection_metric_plots_v5.py", line 173, in <module>
    data = future.result()
  File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 428, in result
    return self.__get_result()
  File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
TypeError: can't pickle traceback objects

Please try upgrading to a recent version, preferably HoloViews 1.14.3.