Error upgrading from 1.6.1 to 1.7.2

What is the problem?

Getting error upgrading from 1.6.1 to 1.7.2 with error "ImportError: cannot import name NullHandler". This is NOT due to PrintTimeGenius (as current Octoprint install help documentation recommends) as I have uninstalled that plugin. I also tried installing in Safe mode, but got the same error. Here's the full error message:

ERROR: Command errored out with exit status 1:
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-Bs2JzX/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i --extra-index-url -- setuptools wheel Cython
cwd: None
Complete output (24 lines):
Traceback (most recent call last):
File "/usr/lib/python2.7/", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/", line 72, in _run_code
exec code in run_globals
File "/home/pi/oprint/lib/python2.7/site-packages/pip/", line 16, in <module>
from pip._internal.main import main as _main  # isort:skip # noqa
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/", line 13, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/", line 11, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/", line 25, in <module>
from pip._internal.locations import USER_CACHE_DIR, get_src_prefix
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/", line 18, in <module>
from pip._internal.utils import appdirs
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/", line 16, in <module>
from pip._internal.utils.compat import WINDOWS, expanduser
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/", line 17, in <module>
from pip._vendor.urllib3.util import IS_PYOPENSSL
File "/home/pi/oprint/lib/python2.7/site-packages/pip/_vendor/urllib3/", line 21, in <module>
from logging import NullHandler
ImportError: cannot import name NullHandler

What did you already try to solve it?

Uninstalled PrintTimeGenius

Have you tried running in safe mode?


Did running in safe mode solve the problem?


Systeminfo Bundle

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


Additional information about your setup

OctoPrint version 1.6.1, OctoPi version 0.17, Prusa MK3S


You probably need to read the guide again - just uninstalling the plugin is not enough to fix the issue.

Thanks. Running that cleanup plugin did the trick. (Although I didn't see the log message it was supposed to generate). Somehow I missed the fact that I actually need to install special plugin the first time I read the instructions.

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