There have been some reports that upon trying to update OctoPrint on an OctoPi 0.16 image the update can fail with an AssertionError and assert have_directory_for_build:
2019-11-06 06:10:58,806 ! Exception:
2019-11-06 06:10:58,807 ! Traceback (most recent call last):
2019-11-06 06:10:58,808 ! File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
2019-11-06 06:10:58,809 ! status = self.run(options, args)
2019-11-06 06:10:58,809 ! File "/hom…
Your OctoPrint install is still running on Python 2, it should be upgraded to use Python 3 as soon as possible. OctoPrint 1.8.0 will no longer support Python 2 as it has been end of life for 2 years now.
If you are still running Python 2 and using OctoPrint 1.7.0+, you will start to see warnings like this:
[image]
You need to upgrade your OctoPrint install to use Python 3, as Python 2 is end-of-life and OctoPrint 1.8.0 and later will no longer support running using Python 2. In addition, there's at least 39 plugins that already don't support Python 2 and more will follow, that you won't be able to take advantage of. You should upgrade as soon as possible.
How can I upgrade?
The process is sl…