Latest Update to 1.7.0RC3

What is the problem?

Hello,

I'm trying since several days to update, but it alwas fails.

What did you already try to solve it?

Updated raspbian.

plugin_softwareupdate_console.log
2021-09-20 18:33:19,684 /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install h ttps://github.com/OctoPrint/OctoPrint/archive/1.7.0rc3.zip --no-cache-dir
2021-09-20 18:33:23,763 > Looking in indexes: h ttps://pypi.org/simple, h ttps://www.piwheels.org/simple
2021-09-20 18:33:23,765 > Collecting h ttps://github.com/OctoPrint/OctoPrint/archive/1.7.0rc3.zip
2021-09-20 18:33:24,773 > Downloading h ttps://github.com/OctoPrint/OctoPrint/archive/1.7.0rc3.zip
2021-09-20 18:33:34,879 > Requirement already satisfied: OctoPrint-FileCheck>=2021.2.23 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (2021.2.23)
2021-09-20 18:33:34,880 > Requirement already satisfied: OctoPrint-FirmwareCheck>=2021.2.4 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (2021.8.11)
2021-09-20 18:33:34,881 > Requirement already satisfied: OctoPrint-PiSupport>=2021.8.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (2021.8.2)
2021-09-20 18:33:34,882 > Requirement already satisfied: markupsafe<2.0,>=1.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (1.1.1)
2021-09-20 18:33:34,883 > Requirement already satisfied: markdown<3.2,>=3.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (3.1.1)
2021-09-20 18:33:34,884 > Requirement already satisfied: regex!=2018.11.6 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (2019.8.19)
2021-09-20 18:33:36,318 > Collecting flask<2,>=1.1.4
2021-09-20 18:33:36,321 > Downloading h ttps://files.pythonhosted.org/packages/e8/6d/994208daa354f68fd89a34a8bafbeaab26fda84e7af1e35bdaed02b667e6/Flask-1.1.4-py2.py3-none-any.whl (94kB)
2021-09-20 18:33:37,839 > Collecting Jinja2<3,>=2.11.3
2021-09-20 18:33:37,841 > Downloading h ttps://files.pythonhosted.org/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja2-2.11.3-py2.py3-none-any.whl (125kB)
2021-09-20 18:33:37,842 > Requirement already satisfied: Flask-Login<0.6,>=0.5 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (0.5.0)
2021-09-20 18:33:37,847 > Requirement already satisfied: Flask-Babel<2,>=1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (1.0.0)
2021-09-20 18:33:37,849 > Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (2.0)
2021-09-20 18:33:37,850 > Requirement already satisfied: werkzeug<2,>=1.0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (1.0.1)
2021-09-20 18:33:37,851 > Requirement already satisfied: itsdangerous<2,>=1.1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (1.1.0)
2021-09-20 18:33:37,852 > Requirement already satisfied: cachelib<0.2,>=0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.7.0rc3) (0.1)
2021-09-20 18:33:39,859 > Collecting PyYAML<6,>=5.4.1
2021-09-20 18:33:39,862 > Downloading h ttps://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
2021-09-20 18:33:41,282 > Installing build dependencies: started
2021-09-20 18:33:42,608 ! ERROR: Command errored out with exit status 1:
2021-09-20 18:33:42,610 ! 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-tVt51e/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i h ttps://pypi.org/simple --extra-index-url h ttps://www.piwheels.org/simple -- setuptools wheel Cython
2021-09-20 18:33:42,612 ! cwd: None
2021-09-20 18:33:42,615 ! Complete output (24 lines):
2021-09-20 18:33:42,616 ! Traceback (most recent call last):
2021-09-20 18:33:42,617 ! File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
2021-09-20 18:33:42,618 ! "main", fname, loader, pkg_name)
2021-09-20 18:33:42,619 ! File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
2021-09-20 18:33:42,620 ! exec code in run_globals
2021-09-20 18:33:42,620 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/main.py", line 16, in
2021-09-20 18:33:42,621 ! from pip._internal.main import main as _main # isort:skip # noqa
2021-09-20 18:33:42,622 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/main.py", line 13, in
2021-09-20 18:33:42,623 ! from pip._internal.cli.autocompletion import autocomplete
2021-09-20 18:33:42,623 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py", line 11, in
2021-09-20 18:33:42,624 ! from pip._internal.cli.main_parser import create_main_parser
2021-09-20 18:33:42,625 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in
2021-09-20 18:33:42,626 ! from pip._internal.cli import cmdoptions
2021-09-20 18:33:42,627 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in
2021-09-20 18:33:42,628 ! from pip._internal.locations import USER_CACHE_DIR, get_src_prefix
2021-09-20 18:33:42,629 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/locations.py", line 18, in
2021-09-20 18:33:42,629 ! from pip._internal.utils import appdirs
2021-09-20 18:33:42,630 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/appdirs.py", line 16, in
2021-09-20 18:33:42,631 ! from pip._internal.utils.compat import WINDOWS, expanduser
2021-09-20 18:33:42,632 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_internal/utils/compat.py", line 17, in
2021-09-20 18:33:42,632 ! from pip._vendor.urllib3.util import IS_PYOPENSSL
2021-09-20 18:33:42,633 ! File "/home/pi/oprint/lib/python2.7/site-packages/pip/_vendor/urllib3/init.py", line 21, in
2021-09-20 18:33:42,634 ! from logging import NullHandler
2021-09-20 18:33:42,635 ! ImportError: cannot import name NullHandler
2021-09-20 18:33:42,635 ! ----------------------------------------
2021-09-20 18:33:42,636 ! 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-tVt51e/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i h ttps://pypi.org/simple --extra-index-url h ttps://www.piwheels.org/simple -- setuptools wheel Cython Check the logs for full command output.
2021-09-20 18:33:42,640 > Installing build dependencies: finished with status 'error'

systeminfo.txt
browser.user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0
connectivity.connection_check: 1.1.1.1:53
connectivity.connection_ok: True
connectivity.enabled: True
connectivity.online: True
connectivity.resolution_check: octoprint.org
connectivity.resolution_ok: True
env.hardware.cores: 4
env.hardware.freq: 900.0
env.hardware.ram: 915730432
env.os.bits: 32
env.os.id: linux
env.os.platform: linux2
env.plugins.pi_support.model: Raspberry Pi 2 Model B Rev 1.1
env.plugins.pi_support.octopi_version: 0.17.0
env.plugins.pi_support.throttle_state: 0x0
env.python.pip: 19.3.1
env.python.version: 2.7.16
env.python.virtualenv: True
octoprint.safe_mode: False
octoprint.version: 1.6.1
systeminfo.generator: zipapi

Can someone help me please?

Cheers
Luke

From those lines:

it looks like you're still using Python 2.7 which is considered End Of Life for at least a year. I would suggest you update to Python 3.x using the instructions in this post:

And then try the update process again. Should those steps not solve your problem, you could then try:

as suggested by @PrintedWeezl in this thread:

This one is already a known issue, see below

Thank you very much. Upgrading python to ver. 3 was the key.

To be clear on this one - upgrading to Python 3 bulldozed the old, broken environment and reinstalled a new one, so it didn't have any issues. It was caused by a version of PrintTimeGenius a while ago, but still persists in the install after a fixed version is out.

But otherwise, upgrading to Python 3 is important, it would have to be done at some point.

1 Like