Cannot update Octoprint

What is the problem?

Hello! I'm trying to update Octoprint from 1.6.1 to the latest built but it keeps failing! I'm a total noob when understanding error logs but here is the software update console log:

2022-02-12 20:17:11,019 > Installing build dependencies: started
2022-02-12 20:17:11,020 > Installing build dependencies: finished with status 'error'
2022-02-12 20:17:11,026 ! ERROR: Command errored out with exit status 1:
2022-02-12 20:17:11,027 ! command: /home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-boLi_q/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel Cython
2022-02-12 20:17:11,028 ! cwd: None
2022-02-12 20:17:11,029 ! Complete output (24 lines):
2022-02-12 20:17:11,029 ! Traceback (most recent call last):
2022-02-12 20:17:11,030 ! File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
2022-02-12 20:17:11,030 ! "__main__", fname, loader, pkg_name)
2022-02-12 20:17:11,030 ! File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
2022-02-12 20:17:11,031 ! exec code in run_globals
2022-02-12 20:17:11,031 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/__main__.py", line 16, in <module>
2022-02-12 20:17:11,031 ! from pip._internal.main import main as _main  # isort:skip # noqa
2022-02-12 20:17:11,032 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/main.py", line 13, in <module>
2022-02-12 20:17:11,032 ! from pip._internal.cli.autocompletion import autocomplete
2022-02-12 20:17:11,033 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py", line 11, in <module>
2022-02-12 20:17:11,033 ! from pip._internal.cli.main_parser import create_main_parser
2022-02-12 20:17:11,033 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
2022-02-12 20:17:11,034 ! from pip._internal.cli import cmdoptions
2022-02-12 20:17:11,034 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module>
2022-02-12 20:17:11,034 ! from pip._internal.locations import USER_CACHE_DIR, get_src_prefix
2022-02-12 20:17:11,034 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/locations.py", line 18, in <module>
2022-02-12 20:17:11,035 ! from pip._internal.utils import appdirs
2022-02-12 20:17:11,035 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/appdirs.py", line 16, in <module>
2022-02-12 20:17:11,035 ! from pip._internal.utils.compat import WINDOWS, expanduser
2022-02-12 20:17:11,036 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/compat.py", line 17, in <module>
2022-02-12 20:17:11,036 ! from pip._vendor.urllib3.util import IS_PYOPENSSL
2022-02-12 20:17:11,036 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_vendor/urllib3/__init__.py", line 21, in <module>
2022-02-12 20:17:11,037 ! from logging import NullHandler
2022-02-12 20:17:11,037 ! ImportError: cannot import name NullHandler
2022-02-12 20:17:11,038 ! ----------------------------------------
2022-02-12 20:17:11,038 ! ERROR: Command errored out with exit status 1: /home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-boLi_q/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel Cython Check the logs for full command output.

What did you already try to solve it?

Run in safe mode

Have you tried running in safe mode?

Yes

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

WRITE HERE

This post should help you :slight_smile:

Hi, I uninstalled the module and used the clean up module but I unfortunately still cannot update.

 13:18:40,585 > Collecting OctoPrint-FirmwareCheck>=2021.10.11
2022-03-04 13:18:40,587 > Downloading https://www.piwheels.org/simple/octoprint-firmwarecheck/OctoPrint_FirmwareCheck-2021.10.11-py2.py3-none-any.whl
2022-03-04 13:18:40,588 > Requirement already satisfied: OctoPrint-PiSupport>=2021.10.28 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (2022.3.1)
2022-03-04 13:18:40,588 > Requirement already satisfied: markupsafe<2.0,>=1.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.1.1)
2022-03-04 13:18:40,589 > Requirement already satisfied: markdown<3.2,>=3.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (3.1.1)
2022-03-04 13:18:40,589 > Requirement already satisfied: wrapt<1.13,>=1.12.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.12.1)
2022-03-04 13:18:40,590 > Collecting flask<2,>=1.1.4
2022-03-04 13:18:40,591 > Downloading https://files.pythonhosted.org/packages/e8/6d/994208daa354f68fd89a34a8bafbeaab26fda84e7af1e35bdaed02b667e6/Flask-1.1.4-py2.py3-none-any.whl (94kB)
2022-03-04 13:18:40,591 > Collecting Jinja2<3,>=2.11.3
2022-03-04 13:18:40,592 > Downloading https://files.pythonhosted.org/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja2-2.11.3-py2.py3-none-any.whl (125kB)
2022-03-04 13:18:40,592 > Requirement already satisfied: Flask-Login<0.6,>=0.5 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (0.5.0)
2022-03-04 13:18:40,593 > Requirement already satisfied: Flask-Babel<2,>=1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.0.0)
2022-03-04 13:18:40,593 > Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (2.0)
2022-03-04 13:18:40,594 > Requirement already satisfied: werkzeug<2,>=1.0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.0.1)
2022-03-04 13:18:40,595 > Requirement already satisfied: itsdangerous<2,>=1.1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (1.1.0)
2022-03-04 13:18:40,595 > Requirement already satisfied: cachelib<0.2,>=0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.3) (0.1)
2022-03-04 13:18:41,599 > Collecting PyYAML<6,>=5.4.1
2022-03-04 13:18:41,601 > Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
2022-03-04 13:18:42,670 > Installing build dependencies: started
2022-03-04 13:18:42,674 > Installing build dependencies: finished with status 'error'
2022-03-04 13:18:42,686 ! ERROR: Command errored out with exit status 1:
2022-03-04 13:18:42,690 ! command: /home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-Uibc2O/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel Cython
2022-03-04 13:18:42,691 ! cwd: None
2022-03-04 13:18:42,693 ! Complete output (24 lines):
2022-03-04 13:18:42,694 ! Traceback (most recent call last):
2022-03-04 13:18:42,696 ! File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
2022-03-04 13:18:42,697 ! "__main__", fname, loader, pkg_name)
2022-03-04 13:18:42,699 ! File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
2022-03-04 13:18:42,700 ! exec code in run_globals
2022-03-04 13:18:42,701 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/__main__.py", line 16, in <module>
2022-03-04 13:18:42,702 ! from pip._internal.main import main as _main  # isort:skip # noqa
2022-03-04 13:18:42,704 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/main.py", line 13, in <module>
2022-03-04 13:18:42,705 ! from pip._internal.cli.autocompletion import autocomplete
2022-03-04 13:18:42,707 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py", line 11, in <module>
2022-03-04 13:18:42,708 ! from pip._internal.cli.main_parser import create_main_parser
2022-03-04 13:18:42,709 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
2022-03-04 13:18:42,710 ! from pip._internal.cli import cmdoptions
2022-03-04 13:18:42,712 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module>
2022-03-04 13:18:42,713 ! from pip._internal.locations import USER_CACHE_DIR, get_src_prefix
2022-03-04 13:18:42,714 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/locations.py", line 18, in <module>
2022-03-04 13:18:42,716 ! from pip._internal.utils import appdirs
2022-03-04 13:18:42,717 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/appdirs.py", line 16, in <module>
2022-03-04 13:18:42,719 ! from pip._internal.utils.compat import WINDOWS, expanduser
2022-03-04 13:18:42,720 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/compat.py", line 17, in <module>
2022-03-04 13:18:42,721 ! from pip._vendor.urllib3.util import IS_PYOPENSSL
2022-03-04 13:18:42,722 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_vendor/urllib3/__init__.py", line 21, in <module>
2022-03-04 13:18:42,724 ! from logging import NullHandler
2022-03-04 13:18:42,725 ! ImportError: cannot import name NullHandler
2022-03-04 13:18:42,726 ! ----------------------------------------
2022-03-04 13:18:42,728 ! ERROR: Command errored out with exit status 1: /home/pi/oprint/bin/python2 /home/pi/oprint/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-Uibc2O/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel Cython Check the logs for full command output.

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