Upgrade from 1.3.6 to 1.3.9 on OrangePi fails


#1

What is the problem?
My upgrade from 1.3.6 to 1.3.9 reported failure.

What did you already try to solve it?
Tried to search the logfile and the forum.
The logfile states:

2018-08-02 13:15:56,392 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.3.9...
2018-08-02 13:17:09,090 - octoprint.plugins.softwareupdate - ERROR - Update of octoprint can not be performed
Traceback (most recent call last):
File "/home/octoprint/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate/init.py", line 908, in _perform_update
File "/home/octoprint/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate/updaters/pip.py", line 81, in perform_update
UpdateError

The message from the screen:

Running setup.py install for OctoPrint: finished with status 'done'
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/octoprint/OctoPrint/venv/lib/python2.7/site-packages/pip/main.py", line 19, in
sys.exit(pip.main())
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/init.py", line 248, in main
return command.main(cmd_args)
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 252, in main
pip_version_check(session)
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/utils/outdated.py", line 102, in pip_version_check
installed_version = get_installed_version("pip")
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/utils/init.py", line 838, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py", line 644, in init
self.add_entry(entry)
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py", line 700, in add_entry
for dist in find_distributions(entry, True):
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py", line 1949, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py", line 1463, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py", line 1823, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py", line 1703, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py", line 1643, in load
mtime = os.stat(path).st_mtime
OSError: [Errno 2] No such file or directory: '/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pyserial-2.7-py2.7.egg'
Successfully installed OctoPrint-1.3.9 backports-abc-0.5 frozendict-1.2 pkginfo-1.4.2 psutil-5.4.6 pyserial-3.4 singledispatch-3.4.0.3 tornado-4.5.3
The update did not finish successfully. Please consult the log for details.

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

Was running OctoPrint 1.3.6 on Orange Pi (Armbian OS).

For the pyserial, I have a folder:

/home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pyserial-3.4.dist-info

No /home/octoprint/OctoPrint/venv/local/lib/python2.7/site-packages/pyserial-2.7-py2.7.egg file exists.


#2

See the release notes and also the release announcement on the blog.

It's always a good idea to read that stuff like the update dialog prompts you too :wink: