Brian Greul Posted December 28, 2016 Posted December 28, 2016 I'm getting an error and I'd like some feedback if it is a missing package (apt-get) or a bug in OctoPrint or something wrong in Python. It looks like something is blowing up with Python trying to install a package called scandir 1.3, but I'm not getting anything when I google it with the error. Thoughts? The documentation on Git was up to date... the documentation on Octoprint.org is wrong for building it from source. Error: creating 'dist/OctoPrint-1.3.0-py2.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it removing 'build/bdist.linux-armv7l/egg' (and everything under it) Processing OctoPrint-1.3.0-py2.7.egg creating /home/admin/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.0-py2.7.egg Extracting OctoPrint-1.3.0-py2.7.egg to /home/admin/OctoPrint/venv/lib/python2.7/site-packages Adding OctoPrint 1.3.0 to easy-install.pth file Installing octoprint script to /home/admin/OctoPrint/venv/bin Installed /home/admin/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.0-py2.7.egg Processing dependencies for OctoPrint==1.3.0 Searching for scandir>=1.3,<1.4 Reading https://pypi.python.org/simple/scandir/ Best match: scandir 1.3 Downloading https://pypi.python.org/packages/b1/73/493f392cd7e1549361e7727f75dea1c9f3a627350973018857578c8c5598/scandir-1.3.tar.gz#md5=e7a59e446dad6a1abdbed3c236f12871 Processing scandir-1.3.tar.gz Writing /tmp/easy_install-9cHv1O/scandir-1.3/setup.cfg Running scandir-1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9cHv1O/scandir-1.3/egg-dist-tmp-iWmvMz _scandir.c:14:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 root@OPIZ:/home/admin/OctoPrint# apt-get install scandir Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package scandir root@OPIZ:/home/admin/OctoPrint#
Brian Greul Posted December 28, 2016 Author Posted December 28, 2016 I fixed this.... apt-get python2.7-dev install Need the python development headers installed.
Brian Greul Posted December 28, 2016 Author Posted December 28, 2016 It still won't run.... going to clear out venv and try again.
Brian Greul Posted December 29, 2016 Author Posted December 29, 2016 This wound up being a memory issue. Python is apparently sloppy about memory management. I fixed it by creating a larger swap file and enabling it.
serkan887 Posted March 26, 2017 Posted March 26, 2017 Hi Brian. I wanna also install octoprint on my orange pi zero. But i dont know where i start ? Do you have a guide for this?
Recommended Posts