PiNoZcam plugin unable to show up

What is the problem?

After trying to use the PiNoZcam (new plugin), nothing appeared in the plugin tab in settings. Unable to see or use any funcionality of this plugin.

What did you already try to solve it?

Multiple reinstalls/reinstarts. Other plugins have been working just fine.

Have you tried running in safe mode?

Due to the nature of the issue, testing plugins using safe mode is unable to be done.

Did running in safe mode solve the problem?

It did not solve the issue.

###Systeminfo Bundle
haproxy.log (589.6 KB)
octoprint.log (668.1 KB)
plugin_pluginmanager_console.log (158.4 KB)
tornado.log (411.7 KB)
webcamd.log (12.9 KB)

Additional information about your setup

Version 1.9.3 on Chrome running on Raspberry Pi 4B. Printer is an elegoo neptune 2S.

Traceback issue found in octoprint.log:
2024-03-08 19:09:53,516 - octoprint.plugin.core - ERROR - Error loading plugin pinozcam
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/plugin/core.py", line 1294, in _import_plugin
module = _load_module(module_name, spec)
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/plugin/core.py", line 52, in _load_module
return imp.load_module(name, f, filename, details)
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/vendor/imp.py", line 238, in load_module
return load_package(name, filename)
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/vendor/imp.py", line 212, in load_package
return _load(spec)
File "", line 711, in _load
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in callwith_frames_removed
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_pinozcam/__init.py", line 16, in
from .inference import image_inference
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_pinozcam/inference.py", line 1, in
import numpy as np

Hello @TheAl_MightyDuck !

Why that:?

Why not just upload the complete systeminfo bundle? It is zipped and needs less space.


To you issue:

2024-03-08 16:24:27,494 - octoprint.plugin.core - ERROR - Error loading plugin pinozcam
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/plugin/core.py", line 1294, in _import_plugin
    module = _load_module(module_name, spec)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/plugin/core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/vendor/imp.py", line 238, in load_module
    return load_package(name, filename)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/vendor/imp.py", line 212, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 711, in _load
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_pinozcam/__init__.py", line 11, in <module>
    from PIL import Image, ImageDraw
ModuleNotFoundError: No module named 'PIL'
2024-03-08 16:24:27,544 - octoprint.plugins.pluginmanager - WARNING - The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.

Obviously there is something missing.

You may try to install again. If it still fails, you may report here:

SSH to pi, run these commands and restart OctoPrint. this is assuming an octopi 1.0.0 image.

source /home/pi/oprint/bin/activate
pip install "numpy>=1.24.3,<1.26"
pip install pillow
pip install "onnxruntime @ https://github.com/nknytk/built-onnxruntime-for-raspberrypi-linux/raw/master/wheels/bullseye/onnxruntime-1.15.0-cp39-cp39-linux_armv7l.whl"

May I ask how did you install the Octoprint in Raspberry Pi 4B?
Using Raspberry Pi Imager?

Yes, just using the imager

This worked, thank you!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.