Can´t install PrintJobHistory


I reloaded Raspbian Buster Lite and installed Klipper and OctoPrint via KIAUH. I can't get PrintJobHistory installed. The installation is successful via the plugin manager, but after a restart I get the following errors:

2021-05-18 17:05:58,537 - octoprint.plugin.core - ERROR - Error loading plugin PrintJobHistory
Traceback (most recent call last):
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint/plugin/", line 1264, in _import_plugin
    module = _load_module(module_name, spec)
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint/plugin/", line 69, in _load_module
    return imp.load_module(name, f, filename, details)
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint/vendor/", line 238, in load_module
    return load_package(name, filename)
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint/vendor/", line 212, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint_PrintJobHistory/", line 26, in <module>
    from .api.PrintJobHistoryAPI import PrintJobHistoryAPI
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint_PrintJobHistory/api/", line 23, in <module>
    from octoprint_PrintJobHistory.api import TransformPrintJob2JSON, TransformSlicerSettings2JSON
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint_PrintJobHistory/api/", line 4, in <module>
    from octoprint_PrintJobHistory.CameraManager import CameraManager
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint_PrintJobHistory/", line 9, in <module>
    from PIL import Image
  File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/PIL/", line 109, in <module>
    from . import _imaging as core
ImportError: cannot open shared object file: No such file or directory

When I try to install the plugin via the console I get the following errors:

pi@raspberrypi:~ $ pip install ""
Looking in indexes:,
  Downloading (7.4MB)
    100% |████████████████████████████████| 7.4MB 33kB/s
    Complete output from command python egg_info:
    Could not import OctoPrint's setuptools, are you sure you are running that under the same python installation that OctoPrint is installed under?

Command "python egg_info" failed with error code 255 in /tmp/pip-req-build-LoRyD3/

Via console I had the same problem with the "Bed Visualizer" plugin, but at some point it started the plugin.

octoprint (8).log (15.7 KB)

Hope someone can help me with the problem.

Many Thanks


There is an issue with the used image library called pillow.

Take a look on this: python - Pillow: cannot open shared object file: No such file or directory - Stack Overflow

Or Octolapse is also using this dependency and he created a troubleshot-guide, maybe that helps: V0.4 Troubleshooting Installation Issues · FormerLurker/Octolapse Wiki · GitHub