Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange Pi Zero - Installing OctoPrint getting error

Featured Replies

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
Best match: scandir 1.3
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#

  • Author

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.

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?

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.