Hi all!
Festive wishes to all those celebrating a holiday today, and a happy summer to any in the Southern Hemisphere!
I’m trying set up bokeh in order to contribute to bokeh. I’ve followed the instructions at https://docs.bokeh.org/en/dev-3.0/docs/dev_guide/setup.html.
However, when I run bokeh info
to validate that the installation is successful, I get an error.
My environment is Ubuntu, running Python 3.10 in PyCharm.
Own investigation
The same issue looks like it has been reported before in this thread, however this was on Windows and there was no resolution found.
Looking a little in the code that throws the error, in get_sri_hashes_for_version
, it is noted that “This function can only be called on full release (e.g “1.2.3”) packages.”. In the toml I see the version number seems to be dynamically set, wondering if I need to configure this at all.
Looking forward if anyone can shine a light on this!
Stacktrace
When running bokeh info
:~/PycharmProjects/bokeh_dev$ bokeh info
Traceback (most recent call last):
File "/home/____/miniconda3/envs/bokeh____/bin/bokeh", line 8, in <module>
sys.exit(main())
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/__main__.py", line 56, in main
from bokeh.command.bootstrap import main as _main
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/command/bootstrap.py", line 56, in <module>
from . import subcommands
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/command/subcommands/__init__.py", line 76, in <module>
all = _collect()
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/command/subcommands/__init__.py", line 60, in _collect
mod = import_module("." + modname, __package__)
File "/home/____/miniconda3/envs/bokeh____/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/command/subcommands/static.py", line 30, in <module>
from ..util import report_server_init_errors
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/command/util.py", line 31, in <module>
from bokeh.application.handlers import (
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/application/handlers/__init__.py", line 25, in <module>
from .code import CodeHandler
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/application/handlers/code.py", line 47, in <module>
from ...io.doc import curdoc, patch_curdoc
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/io/__init__.py", line 24, in <module>
from .doc import curdoc
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/io/doc.py", line 30, in <module>
from .state import curstate
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/io/state.py", line 54, in <module>
from ..resources import Resources, ResourcesMode
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/resources.py", line 751, in <module>
CDN = Resources(mode="cdn")
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/resources.py", line 323, in __init__
cdn = self._cdn_urls()
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/resources.py", line 384, in _cdn_urls
return _get_cdn_urls(self.version, self.minified)
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/resources.py", line 710, in _get_cdn_urls
sri_hashes = get_sri_hashes_for_version(version)
File "/home/____/PycharmProjects/bokeh_dev/src/bokeh/resources.py", line 179, in get_sri_hashes_for_version
return hashes[version]
KeyError: '0.0.1'