What is the problem?
I leave my Raspberry Pi running all the time. A print completed normally in my absence. I found that the octoprint web interface was unavailable. I don't believe that the pi was ungracefully restarted.
Output of the 'octoprint' command ALWAYS returns:
Traceback (most recent call last):
File "/usr/local/bin/octoprint", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/octoprint/__init__.py", line 1006, in main
from octoprint.cli import octo
File "/usr/local/lib/python3.9/dist-packages/octoprint/cli/__init__.py", line 347, in <module>
from .systeminfo import cli as systeminfo_commands # noqa: E402
File "/usr/local/lib/python3.9/dist-packages/octoprint/cli/systeminfo.py", line 10, in <module>
from zipstream.ng import ZIP_DEFLATED, ZipStream
ModuleNotFoundError: No module named 'zipstream.ng'
This message occurs with any ivocation of 'octoprint' including 'systeminfo' and 'safemode'
What did you already try to solve it?
Restarting the service. no different. I followed some other forum advice to reinstall octoprint.
source ~/oprint/bin/activate
pip install --force-reinstall OctoPrint
Have you tried running in safe mode?
yes. any invocation of octoprint returns this:
pi@ender3:~/.octoprint/logs $ octoprint safemode
Traceback (most recent call last):
File "/usr/local/bin/octoprint", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/octoprint/__init__.py", line 1006, in main
from octoprint.cli import octo
File "/usr/local/lib/python3.9/dist-packages/octoprint/cli/__init__.py", line 347, in <module>
from .systeminfo import cli as systeminfo_commands # noqa: E402
File "/usr/local/lib/python3.9/dist-packages/octoprint/cli/systeminfo.py", line 10, in <module>
from zipstream.ng import ZIP_DEFLATED, ZipStream
ModuleNotFoundError: No module named 'zipstream.ng'
Did running in safe mode solve the problem?
No change
Systeminfo Bundle
I can't pull a systeminfo bundle because the octoprint command always throws the zipstream error.
Additional information about your setup
I think this is v1.9.2
'octoprint version' throws the same error.