2020-03-05 16:20:26,548 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-03-05 16:22:23,158 - octoprint.plugins.softwareupdate - INFO - Starting update of octoprint to 1.4.0...
2020-03-05 16:25:13,559 - octoprint.plugins.softwareupdate - ERROR - Update of octoprint can not be performed, please also check plugin_softwareupdate_console.log for possible causes of this
Traceback (most recent call last):
File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/__init__.py", line 987, in _perform_update
update_result = updater.perform_update(target, populated_check, target_version, log_cb=self._log, online=online)
File "/home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate/updaters/pip.py", line 116, in perform_update
raise exceptions.UpdateError("Error while executing pip install", (stdout, stderr))
UpdateError
2020-03-05 16:35:26,552 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2020-03-05 16:25:13,545 ! error: command 'arm-linux-gnueabihf-gcc' failed with exit status 4
2020-03-05 16:25:13,546 ! ----------------------------------------
2020-03-05 16:25:13,546 ! ERROR: Command errored out with exit status 1: /home/pi/oprint/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-L5wV40/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-L5wV40/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-m0ylvi/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/oprint/include/site/python2.7/psutil Check the logs for full command output.
2020-03-05 16:25:13,549 > Running setup.py install for psutil: finished with status 'error'
Here was the attempt (assuming that this temporary folder still exists)
cd /tmp/pip-install-L5wV40/psutil/
ls -l
Interesting, it's trying to use the assembly language compiler for this. Is this the part where we fast-forward and you're running this on a Raspberry Pi Zero W running ARMv6? That would explain the segmentation fault running the assembler.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020.
>pip install --upgrade --force-reinstall psutil
(oprint) pi@octopi:~ $ pip install --upgrade --force-reinstall psutil
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting psutil
Downloading https://files.pythonhosted.org/packages/c4/b8/3512f0e93e0db23a71d82485ba256071ebef99b227351f0f5540f744af41/psutil-5.7.0.tar.gz (449kB)
|ββββββββββββββββββββββββββββββββ| 450kB 594kB/s
Building wheels for collected packages: psutil
Building wheel for psutil (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/pi/oprint/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pzoKzz/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pzoKzz/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-6s4TD0 --python-tag cp27
cwd: /tmp/pip-install-pzoKzz/psutil/
Complete output (48 lines):
cc: internal compiler error: Segmentation fault (program as)
(...)
arm-linux-gnueabihf-gcc: internal compiler error: Segmentation fault (program as)
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
I did that and now I have octoprint without anything:
All up-date.
I cleared SD card and installed everything from scratch (Rasbian and Octoprint install manually).
It's working, v. 1.4.0, but, as usual, I have still small problems, I noticed:
plugin PrintTimeGenius doesn't show Layer xx/yy it's "Layer -", time and % is ok
but the most irritating - octoprint service and mjpg_streamer and haproxy don't start with system. I tried
editing rc.local
/etc/init.d and update-rc.d xx defaults
systemctl enable xxx
service octoprint start do nothing, I have to start it ./octoprint serve
but I think it's a "feature" a new Rasbian system.
Sounds like you're making things harder on yourself. Guy & Foosel put a lot of time into creating a process which creates an IMG file. Flash that to your Pi, edit the wifi configuration and you've hit the ground running.
You won't have to fuss with rc.local, modifying users, init.d, systemd, expand the filesystem, setup a Pi camera, etc, etc.
This is not that I'm the best IT guy around here but sometimes I prefer do something by myself, especially that on Octoprint page there are two ways to install it - ready system and simple installing. However you say installing is bad and I should get the whole system. That is exactly what I did last time and what caused the problem I described.
Never mind that - there is no point in further discussing that. The problem is solved but by getting a new system, what is not always so easy.
Had the same issue when trying to upgrade - the solution was reinstalling the binutils package, which contains the as binary, i.e. sudo apt-get install --reinstall binutils