Hi,
I’ve been developing a bokeh application on a laptop, it presents plots OK using bokeh serve myApp.py. I just copied the script’s directory to a desktop ( using rsync ) where attemting to execute ‘bokeh serve myApp.py’ results in a failure ending in:
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 785, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'bokeh==2.2.3' distribution was not found and is required by the application
Both laptop and desktop are running Fedora 33 :
uname -a
Linux [hostname] 5.12.14-200.fc33.x86_64 #1 SMP Wed Jun 30 18:40:10 UTC 2021 x86_64 x86_64 x86_64
GNU/Linux
Both are running python 3.6.9 with version 2.2.1 and present identically to ‘pip show bokeh’
On the failing desktop the full response to “bokeh info” is:
> bokeh info
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 582, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 899, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 790, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (bokeh 2.2.1 (/usr/lib/python3.9/site-packages), Requirement.parse('bokeh==2.2.3'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/bokeh", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3257, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3240, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3269, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 584, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 597, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 785, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'bokeh==2.2.3' distribution was not found and is required by the application
On the laptop, which runs bokeh, the output is:
Linux [hostname] 5.12.14-200.fc33.x86_64 #1 SMP Wed Jun 30 18:40:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
>>>bokeh info
Python version : 3.9.6 (default, Jun 29 2021, 00:00:00)
IPython version : 7.18.1
Tornado version : 6.0.4
Bokeh version : 2.2.1
BokehJS static path : /usr/lib/python3.9/site-packages/bokeh/server/static
node.js version : v14.17.0
npm version : 6.14.13
I can’t see where the demands for bokeh 2.2.3 are coming from, TIA for any hints !