Initial install problems Zero 2 W

What is the problem?

Octoprint does not load. I get The OctoPrint server is currently not running

  • Verify that the process is running: ps -ef | grep -i octoprint | grep -i python should show a python process:

pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python
pi 1441 1 6 11:12 ? 00:00:15 /home/pi/oprint/bin/python
/home/pi/oprint/bin/octoprint --host=127.0.0.1 --port=5000

What did you already try to solve it?

I searched through what I could on here.

I have tried reflashing image, manually downloading image, restarting, updating via | oprint/bin/pip install -U octoprint | which says [notice] A new release of pip is available: 25.0.1 -> 25.3
[notice] To update, run: python -m pip install --upgrade pip

Then it says pi@HammyPi:~ $ python -m pip install --upgrade pip
error: externally-managed-environment

Γ— This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Tried updating with ~/oprint/bin/pip install --force-reinstall OctoPrint==x.x.x --no-cache-dir

other commands to restart state illegal instruction.

sudo systemctl status octoprint.service says

Γ— octoprint.service - The snappy web interface for your 3D printer
Loaded: loaded (/etc/systemd/system/octoprint.service; enabled; preset: enabled)
Active: failed (Result: signal) since Tue 2024-11-19 08:44:00 EST; 1 year 0 months ago
Duration: 32.893s
Main PID: 296 (code=killed, signal=ILL)
CPU: 3.612s

Nov 19 08:43:27 HammyPi systemd[1]: Started octoprint.service - The snappy web interface for your 3D printer.
Nov 19 08:44:00 HammyPi systemd[1]: octoprint.service: Main process exited, code=killed, status=4/ILL
Nov 19 08:44:00 HammyPi systemd[1]: octoprint.service: Failed with result 'signal'.
Nov 19 08:44:00 HammyPi systemd[1]: octoprint.service: Consumed 3.612s CPU time.

Have you tried running in safe mode?

illegal instruction

Did running in safe mode solve the problem?

no

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

WRITE HERE

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

I am trying to convert an ender 3 s1 to a wireless machine and potentially run klipper. I picked up a raspberry pi zero 2 w from the ZON and have been having "Fun" ever since.

Try these commands in SSH.

source ~/oprint/bin/activate
pip install pydantic_core==2.41.4
pip install --force-reinstall --no-cache-dir octoprint
octoprint serve

and report back any errors/messages that you get along the way. there have been a couple of reports from users on Discord related to zero 2 W and gen 1 pi b+ that had similar errors. haven't nailed down a complete solution yet.

1 Like

source /oprint/bin/activate
-bash: /oprint/bin/activate: No such file or directory

pi@HammyPi:~ $ pip install pydantic_core==2.41.4
error: externally-managed-environment

Γ— This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

pip install --force-reinstall --no-cache-dir octoprint
Same externally managed error

pi@HammyPi:~ $ octoprint serve
-bash: octoprint: command not found

~ $ df -h
Filesystem Size Used Avail Use% Mounted on
udev 49M 0 49M 0% /dev
tmpfs 37M 992K 36M 3% /run
/dev/mmcblk0p2 29G 5.7G 22G 21% /
tmpfs 183M 0 183M 0% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
/dev/mmcblk0p1 510M 96M 415M 19% /boot/firmware
tmpfs 37M 0 37M 0% /run/user/1000

Apologies, missed a character in the first command. Edited above, try with the updated comment.

We have some movement, it looks like its downloading pydantic cores now