Skip to content
New issue

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

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

Already on GitHub? # to your account

Get error: module 'bokeh' has no attribute '__version' #247

Open
notanymore opened this issue Jan 27, 2024 · 1 comment
Open

Get error: module 'bokeh' has no attribute '__version' #247

notanymore opened this issue Jan 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@notanymore
Copy link

notanymore commented Jan 27, 2024

Describe the bug
A clear and concise description of what the bug is and how to reproduce it. If applicable, add screenshots.

Environment
OS: Windows 10
Python: 3.11.7
IDE: PyCharm

Package versions
ipython==8.20.0
ipython-genutils==0.2.0
pandasgui==0.2.14
plotly==5.9.0
PyQt5==5.15.10
PyQt5-sip==12.13.0
PyQtWebEngine==5.15.10
bokeh==3.3.0

In source file utility.py:446, following code:
in get_figure_type
if int(bokeh.__version.split(".")[0]) < 3:
^^^^^^^^^^^^^^^
AttributeError: module 'bokeh' has no attribute '__version'. Did you mean: 'version'?

Manual fix: after changing '__version' according to the instruction above provided by PyCharm, everything works OK.

@notanymore notanymore added the bug Something isn't working label Jan 27, 2024
@bryevdv
Copy link

bryevdv commented Aug 7, 2024

Just noting that there has never been a bokeh.__version attribute without trailing underscores. Instead, there has always been a bokeh.__version__ attribute, as is common for python packages.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants