Cannot upgrade to 1.7.2

For the past few weeks I've been unable to update to 1.7.x. I've just ignored the error hoping it would go away with the next update. It hasn't.

The problem:

2021-11-07 10:36:44,512   <redacted>OctoPrint/venv/bin/python2 -m pip --disable-pip-version-check install https://github.com/OctoPrint/OctoPrint/archive/1.7.2.zip --no-cache-dir
2021-11-07 10:36:48,019 > Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
2021-11-07 10:36:48,020 > Collecting https://github.com/OctoPrint/OctoPrint/archive/1.7.2.zip
2021-11-07 10:36:49,061 > Downloading https://github.com/OctoPrint/OctoPrint/archive/1.7.2.zip (6.6 MB)
2021-11-07 10:36:56,449 > Requirement already satisfied: OctoPrint-FileCheck>=2021.2.23 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (2021.2.23)
2021-11-07 10:36:59,617 > Collecting OctoPrint-FirmwareCheck>=2021.10.11
2021-11-07 10:36:59,618 > Downloading OctoPrint_FirmwareCheck-2021.10.11-py2.py3-none-any.whl (33 kB)
2021-11-07 10:36:59,620 > Requirement already satisfied: OctoPrint-PiSupport>=2021.10.28 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (2021.10.28)
2021-11-07 10:36:59,620 > Requirement already satisfied: markupsafe<2.0,>=1.1 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (1.1.1)
2021-11-07 10:36:59,621 > Requirement already satisfied: markdown<3.2,>=3.1 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (3.1.1)
2021-11-07 10:36:59,622 > Requirement already satisfied: regex!=2018.11.6 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (2020.10.23)
2021-11-07 10:36:59,622 > Requirement already satisfied: wrapt<1.13,>=1.12.1 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (1.12.1)
2021-11-07 10:37:00,629 > Collecting flask<2,>=1.1.4
2021-11-07 10:37:00,634 > Downloading Flask-1.1.4-py2.py3-none-any.whl (94 kB)
2021-11-07 10:37:01,762 > Collecting Jinja2<3,>=2.11.3
2021-11-07 10:37:01,765 > Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
2021-11-07 10:37:01,767 > Requirement already satisfied: Flask-Login<0.6,>=0.5 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (0.5.0)
2021-11-07 10:37:01,767 > Requirement already satisfied: Flask-Babel<2,>=1.0 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (1.0.0)
2021-11-07 10:37:01,768 > Requirement already satisfied: Flask-Assets<3,>=2.0 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (2.0)
2021-11-07 10:37:01,769 > Requirement already satisfied: werkzeug<2,>=1.0.1 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (1.0.1)
2021-11-07 10:37:01,770 > Requirement already satisfied: itsdangerous<2,>=1.1.0 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (1.1.0)
2021-11-07 10:37:01,771 > Requirement already satisfied: cachelib<0.2,>=0.1 in <redacted>OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint==1.7.2) (0.1.1)
2021-11-07 10:37:03,353 > Collecting PyYAML<6,>=5.4.1
2021-11-07 10:37:03,355 > Downloading PyYAML-5.4.1.tar.gz (175 kB)
2021-11-07 10:37:04,397 > Installing build dependencies: started
2021-11-07 10:37:06,019 ! ERROR: Command errored out with exit status 1:
2021-11-07 10:37:06,021 ! command: <redacted>OctoPrint/venv/bin/python2 <redacted>OctoPrint/venv/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-xjtLqF/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
2021-11-07 10:37:06,023 ! cwd: None
2021-11-07 10:37:06,023 ! Complete output (24 lines):
2021-11-07 10:37:06,024 ! Traceback (most recent call last):
2021-11-07 10:37:06,025 ! File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
2021-11-07 10:37:06,025 ! "__main__", fname, loader, pkg_name)
2021-11-07 10:37:06,025 ! File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
2021-11-07 10:37:06,026 ! exec code in run_globals
2021-11-07 10:37:06,026 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/__main__.py", line 26, in <module>
2021-11-07 10:37:06,027 ! sys.exit(_main())
2021-11-07 10:37:06,027 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 73, in main
2021-11-07 10:37:06,027 ! command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
2021-11-07 10:37:06,028 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/_internal/commands/__init__.py", line 104, in create_command
2021-11-07 10:37:06,028 ! module = importlib.import_module(module_path)
2021-11-07 10:37:06,029 ! File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
2021-11-07 10:37:06,029 ! __import__(name)
2021-11-07 10:37:06,030 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 17, in <module>
2021-11-07 10:37:06,030 ! from pip._internal.cli.req_command import RequirementCommand, with_cleanup
2021-11-07 10:37:06,031 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/_internal/cli/req_command.py", line 16, in <module>
2021-11-07 10:37:06,031 ! from pip._internal.index.collector import LinkCollector
2021-11-07 10:37:06,032 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/_internal/index/collector.py", line 14, in <module>
2021-11-07 10:37:06,032 ! from pip._vendor import html5lib, requests
2021-11-07 10:37:06,032 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 43, in <module>
2021-11-07 10:37:06,033 ! from pip._vendor import urllib3
2021-11-07 10:37:06,034 ! File "<redacted>OctoPrint/venv/lib/python2.7/site-packages/pip/_vendor/urllib3/__init__.py", line 21, in <module>
2021-11-07 10:37:06,034 ! from logging import NullHandler
2021-11-07 10:37:06,034 ! ImportError: cannot import name NullHandler
2021-11-07 10:37:06,035 ! ----------------------------------------
2021-11-07 10:37:06,035 ! ERROR: Command errored out with exit status 1: <redacted>OctoPrint/venv/bin/python2 <redacted>OctoPrint/venv/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-xjtLqF/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.
2021-11-07 10:37:06,038 > Installing build dependencies: finished with status 'error'

ImportError: cannot import name NullHandler

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