Geoviews import error

python version 3.7.2
geoviews 1.9.3
geoviews-core 1.9.3
holoviews 1.14.8

import geoviews as gv
Traceback (most recent call last):
File “”, line 1, in
File “/Users/nohemihuancanunez/opt/anaconda3/envs/geditutorial/lib/python3.7/site-packages/geoviews/init.py”, line 24, in
from . import plotting # noqa (API import)
File “/Users/nohemihuancanunez/opt/anaconda3/envs/geditutorial/lib/python3.7/site-packages/geoviews/plotting/init.py”, line 19, in
_load_bokeh()
File “/Users/nohemihuancanunez/opt/anaconda3/envs/geditutorial/lib/python3.7/site-packages/geoviews/plotting/init.py”, line 10, in _load_bokeh
from . import bokeh # noqa
File “/Users/nohemihuancanunez/opt/anaconda3/envs/geditutorial/lib/python3.7/site-packages/geoviews/plotting/bokeh/init.py”, line 30, in
from .plot import GeoPlot, GeoOverlayPlot
File “/Users/nohemihuancanunez/opt/anaconda3/envs/geditutorial/lib/python3.7/site-packages/geoviews/plotting/bokeh/plot.py”, line 18, in
class GeoPlot(ProjectionPlot, ElementPlot):
File “/Users/nohemihuancanunez/opt/anaconda3/envs/geditutorial/lib/python3.7/site-packages/geoviews/plotting/bokeh/plot.py”, line 24, in GeoPlot
WheelZoomTool(**({} if bokeh_version < ‘0.12.16’ else
TypeError: ‘<’ not supported between instances of ‘Version’ and 'str’

Thanks for reporting that. The current version of geoviews doesn’t seem to be compatible with the latest version of holoviews that has just been released. To avoid this error until a new version of geoviews is released please install a less recent version of holoviews with conda install "holoviews<1.14.8" (or pip install ...).

1 Like

GeoViews 1.9.4 with a fix for this issue is now available from pip and the pyviz conda channel.

2 Likes