Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'str' object has no attribute 'dataspecs' #4848

Closed
elarroba opened this issue Feb 26, 2021 · 2 comments
Closed

AttributeError: 'str' object has no attribute 'dataspecs' #4848

elarroba opened this issue Feb 26, 2021 · 2 comments

Comments

@elarroba
Copy link

ALL software version info

bokeh 2.3.0
holoviews 1.14.1
jupyterlab 3.0.9
notebook 6.2.0

Description of expected behavior and the observed behavior

The expected behavior is for jupyter notebook to show the plot.
Same error occurs with different kind of plots.

Complete, minimal, self-contained example code that reproduces the issue

import holoviews as hv
hv.extension('bokeh')
data = [('one',8),('two', 10), ('three', 16), ('four', 8), ('five', 4), ('six', 1)]
bars = hv.Bars(data, hv.Dimension('Car occupants'), 'Count')

bars

Stack traceback and/or browser JavaScript console output

Traceback (most recent call last):

File "c:\users\migue.virtualenvs\hv-test-8p3rpe1k\lib\site-packages\holoviews\plotting\bokeh\element.py", line 1359, in _init_glyphs
self._update_glyph(renderer, properties, mapping, glyph, source, source.data)

File "c:\users\migue.virtualenvs\hv-test-8p3rpe1k\lib\site-packages\holoviews\plotting\bokeh\element.py", line 1252, in _update_glyph
dataspecs = glyph.dataspecs()

AttributeError: 'str' object has no attribute 'dataspecs'

Screenshots or screencasts of the bug in action

BugScreenshot

@philippjfr
Copy link
Member

See #4845 and #4846. We'll release a new HoloViews with compatibility for Bokeh 2.3 in the coming days for now downgrade bokeh to 2.2.3.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants