What is the problem?
I tried to update OctoPrint from v1.10.1 to 1.10.2 on my Raspberry Pi and got a UnicodeDecodeError.
ERROR: Exception:
Traceback (most recent call last):
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
status = run_func(*args)
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 404, in run
installed = install_given_reqs(
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/req/__init__.py", line 68, in install_given_reqs
uninstalled_pathset = requirement.uninstall(auto_confirm=True)
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 670, in uninstall
uninstalled_pathset = UninstallPathSet.from_dist(dist)
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 526, in from_dist
for path in uninstallation_paths(dist):
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 56, in unique
for item in fn(*args, **kw):
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 80, in uninstallation_paths
r = csv.reader(dist.get_metadata_lines("RECORD"))
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1432, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/home/raspberry/oprint/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1424, in get_metadata
return value.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef in position 18698: invalid continuation byte in RECORD file at path: /home/raspberry/oprint/lib/python3.9/site-packages/OctoPrint-1.10.1.dist-info/RECORD
What did you already try to solve it?
I updated and upgrade the Raspberry Pi.
I downgraded PIP as suggested here.
I restarted the Raspberry Pi.
I tried to update OctoPrint in Safe mode.
Have you tried running in safe mode?
Yes
Did running in safe mode solve the problem?
No
Systeminfo Bundle
octoprint-systeminfo-20241027120155.zip (31.2 KB)
WRITE HERE
Additional information about your setup
OctoPrint v1.10.1, OctoPi v1.0.0, Anycubic Viper, Firefox 131.0.3 on Windows