0
Hi have any one tried installing Bokeh on a Raspberry Pi?
I get this error when I try to generate a plot into an html file:
python3 test1.py
Traceback (most recent call last):
File "test1.py", line 1, in <module>
from bokeh.plotting import figure, output_file, show
File "/usr/local/lib/python3.5/dist-packages/bokeh/plotting/__init__.py", line 57, in <module>
from . import figure as _figure
File "/usr/local/lib/python3.5/dist-packages/bokeh/plotting/figure.py", line 26, in <module>
from ..core.properties import Any, Auto, Either, Enum, Int, List, Seq, Instance, String, Tuple
File "/usr/local/lib/python3.5/dist-packages/bokeh/core/properties.py", line 255, in <module>
from .property.dataspec import AngleSpec; AngleSpec
File "/usr/local/lib/python3.5/dist-packages/bokeh/core/property/dataspec.py", line 40, in <module>
from .visual import FontSize, MarkerType
File "/usr/local/lib/python3.5/dist-packages/bokeh/core/property/visual.py", line 29, in <module>
import PIL.Image
File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 94, in <module>
from . import _imaging as core
ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory
It's now installed with pip3 but I have also tried pip, it's installed on a vanilla RPI image.
To me it seems like a package is missing, but I'm not a Python and also Bokeh expert.
Still getting the same result, I have tried uninstalling libopenjp2-7 and reinstalling it just to be sure. – Mads Munk – 2019-03-25T16:44:08.967
Odd, but you might need to update your
so
cache. Editing. – baelx – 2019-03-25T17:08:10.1331Now it works I tried a clean install, when bokeh was installing it failed installation of Pillow. The reason for that fail was libjpeg, so thanks for help :-) – Mads Munk – 2019-04-07T18:08:14.133