Orange Pi Lite install 1.7.3 (regex,netifaces, psutil)

What is the problem?

I cant install 1.7.3. version Octoprint on Orange Pi Lite (Armbian)

  1. Got from git last Octoprint
    making virt env this way

virtualenv venv
virtualenv —python=python3 venv

Than making

./venv/bin/pip install pip —upgrade
./venv/bin/python setup.py install

And gotting error about

netifaces psutil regex
and finally not building whole thkng.

WRITE HERE

What did you already try to solve it?

i try install apt packets for python3-* of this 3 libraries.

Have you tried running in safe mode?

I cant build Octoprint...

Please help me with working image for Orange Pi Lite ... Cause i cant find it.
And cant build.

It would help to see the error message :slight_smile:
Just post the whole installation log

Also - just by the way - you don't need to download Octoprint from github - you can install it with pip

./venv/bin/pip install OctoPrint

Thank your for the answer. Here is log of installation exactly all commands as output from ssh terminal.

login as: softm
softm@192.168.5.200's password:
  ___  ____  _   _     _ _
 / _ \|  _ \(_) | |   (_) |_ ___
| | | | |_) | | | |   | | __/ _ \
| |_| |  __/| | | |___| | ||  __/
 \___/|_|   |_| |_____|_|\__\___|

Welcome to Armbian 21.08.8  with Linux 5.10.60-sunxi

No end-user support: built from trunk

System load:   10%              Up time:       1 min
Memory usage:  8% of 999M       IP:            192.168.5.200
CPU temp:      76°C             Usage of /:    21% of 14G

Last login: Thu Jan 27 22:42:02 2022 from 192.168.5.218
softm@orangepilite:~$ su - octoprint
Password:
octoprint@orangepilite:~$ pwd
/home/octoprint
octoprint@orangepilite:~$ ~/Octoprint/venv/bin/pip install OctoPrint
Requirement already satisfied: OctoPrint in ./Octoprint/venv/lib/python3.7/site-packages/OctoPrint-1.7.3-py3.7.egg (1.7.3)
Collecting OctoPrint-FileCheck>=2021.2.23
  Using cached OctoPrint_FileCheck-2021.2.23-py2.py3-none-any.whl (19 kB)
Collecting OctoPrint-FirmwareCheck>=2021.10.11
  Using cached OctoPrint_FirmwareCheck-2021.10.11-py2.py3-none-any.whl (33 kB)
Collecting OctoPrint-PiSupport>=2021.10.28
  Using cached OctoPrint_PiSupport-2021.10.28-py2.py3-none-any.whl (31 kB)
Requirement already satisfied: markupsafe<2.0,>=1.1 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.1.1)
Collecting markdown<3.2,>=3.1
  Using cached Markdown-3.1.1-py2.py3-none-any.whl (87 kB)
Requirement already satisfied: wrapt<1.13,>=1.12.1 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.12.1)
Requirement already satisfied: flask<2,>=1.1.4 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.1.4)
Requirement already satisfied: Jinja2<3,>=2.11.3 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (2.11.3)
Collecting Flask-Login<0.6,>=0.5
  Using cached Flask_Login-0.5.0-py2.py3-none-any.whl (16 kB)
Collecting Flask-Babel<2,>=1.0
  Using cached Flask_Babel-1.0.0-py3-none-any.whl (9.5 kB)
Collecting Flask-Assets<3,>=2.0
  Using cached Flask_Assets-2.0-py3-none-any.whl (8.5 kB)
Requirement already satisfied: werkzeug<2,>=1.0.1 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.0.1)
Requirement already satisfied: itsdangerous<2,>=1.1.0 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.1.0)
Collecting cachelib<0.2,>=0.1
  Using cached cachelib-0.1.1-py3-none-any.whl (13 kB)
Collecting PyYAML<6,>=5.4.1
  Using cached PyYAML-5.4.1-cp37-cp37m-linux_armv7l.whl
Collecting pyserial<4,>=3.4
  Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting netaddr<0.9,>=0.8
  Using cached netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Requirement already satisfied: watchdog==0.10.4 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (0.10.4)
Requirement already satisfied: sarge==0.1.6 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (0.1.6)
Collecting netifaces<1,>=0.11
  Using cached netifaces-0.11.0.tar.gz (30 kB)
  Preparing metadata (setup.py) ... done
Collecting pylru<2,>=1.2
  Using cached pylru-1.2.0-py3-none-any.whl
Collecting pkginfo<2,>=1.7.1
  Using cached pkginfo-1.8.2-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: requests<3,>=2.26.0 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (2.27.1)
Requirement already satisfied: semantic_version<3,>=2.8.5 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (2.8.5)
Collecting psutil<6,>=5.8
  Using cached psutil-5.9.0.tar.gz (478 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Click<8,>=7.1.2 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (7.1.2)
Collecting future<1,>=0.18.2
  Using cached future-0.18.2-py3-none-any.whl
Requirement already satisfied: websocket-client<1,>=0.59 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (0.59.0)
Collecting emoji<2,>=1.4.2
  Using cached emoji-1.6.3-py3-none-any.whl
Requirement already satisfied: sentry-sdk<2,>=1.3.1 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.5.4)
Collecting filetype<2,>=1.0.7
  Using cached filetype-1.0.9-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: zipstream-new<1.2,>=1.1.8 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.1.8)
Collecting blinker<2,>=1.4
  Using cached blinker-1.4-py3-none-any.whl
Collecting feedparser<7,>=6.0.8
  Using cached feedparser-6.0.8-py3-none-any.whl (81 kB)
Requirement already satisfied: tornado<7,>=6 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (6.1)
Requirement already satisfied: zeroconf<0.34,>=0.33 in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (0.33.4)
Collecting immutabledict<3,>=2.1
  Using cached immutabledict-2.2.1-py3-none-any.whl (4.0 kB)
Collecting pathvalidate<3,>=2.4.1
  Using cached pathvalidate-2.5.0-py3-none-any.whl (19 kB)
Collecting colorlog<6,>=5.0.1
  Using cached colorlog-5.0.1-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: unidecode in ./Octoprint/venv/lib/python3.7/site-packages (from OctoPrint) (1.3.2)
Collecting regex
  Using cached regex-2022.1.18.tar.gz (382 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pathtools>=0.1.1 in ./Octoprint/venv/lib/python3.7/site-packages (from watchdog==0.10.4->OctoPrint) (0.1.2)
Requirement already satisfied: sgmllib3k in ./Octoprint/venv/lib/python3.7/site-packages (from feedparser<7,>=6.0.8->OctoPrint) (1.0.0)
Requirement already satisfied: webassets>=2.0 in ./Octoprint/venv/lib/python3.7/site-packages (from Flask-Assets<3,>=2.0->OctoPrint) (2.0)
Requirement already satisfied: Babel>=2.3 in ./Octoprint/venv/lib/python3.7/site-packages (from Flask-Babel<2,>=1.0->OctoPrint) (2.9.1)
Requirement already satisfied: pytz in ./Octoprint/venv/lib/python3.7/site-packages (from Flask-Babel<2,>=1.0->OctoPrint) (2021.3)
Requirement already satisfied: setuptools>=36 in ./Octoprint/venv/lib/python3.7/site-packages (from markdown<3.2,>=3.1->OctoPrint) (60.5.0)
Requirement already satisfied: idna<4,>=2.5 in ./Octoprint/venv/lib/python3.7/site-packages (from requests<3,>=2.26.0->OctoPrint) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in ./Octoprint/venv/lib/python3.7/site-packages (from requests<3,>=2.26.0->OctoPrint) (2.0.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./Octoprint/venv/lib/python3.7/site-packages (from requests<3,>=2.26.0->OctoPrint) (1.26.8)
Requirement already satisfied: certifi>=2017.4.17 in ./Octoprint/venv/lib/python3.7/site-packages (from requests<3,>=2.26.0->OctoPrint) (2021.10.8)
Requirement already satisfied: six in ./Octoprint/venv/lib/python3.7/site-packages (from websocket-client<1,>=0.59->OctoPrint) (1.16.0)
Requirement already satisfied: ifaddr>=0.1.7 in ./Octoprint/venv/lib/python3.7/site-packages (from zeroconf<0.34,>=0.33->OctoPrint) (0.1.7)
Building wheels for collected packages: netifaces, psutil, regex
  Building wheel for netifaces (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/octoprint/Octoprint/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fcfr9qxi/netifaces_6a5552d3c7544362997e3471c4e53bb8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fcfr9qxi/netifaces_6a5552d3c7544362997e3471c4e53bb8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-1i8ow937
       cwd: /tmp/pip-install-fcfr9qxi/netifaces_6a5552d3c7544362997e3471c4e53bb8/
  Complete output (19 lines):
  running bdist_wheel
  running build
  running build_ext
  checking for getifaddrs...found.
  checking for getnameinfo...found.
  checking for IPv6 socket IOCTLs...not found.
  checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h netrose/rose.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h.
  checking whether struct sockaddr has a length field...no.
  checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc dn llc.
  checking for routing socket support...no.
  checking for sysctl(CTL_NET...) support...no.
  checking for netlink support...yes.
  will use netlink to read routing table
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DNETIFACES_VERSION=0.11.0 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_NETROSE_ROSE_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ROSE=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/home/octoprint/Octoprint/venv/include/python3.7m -c netifaces.c -o build/temp.linux-armv7l-3.7/netifaces.o
  netifaces.c:1:10: fatal error: Python.h: No such file or directory
   #include <Python.h>
            ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for netifaces
  Running setup.py clean for netifaces
  Building wheel for psutil (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/octoprint/Octoprint/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fcfr9qxi/psutil_1b37f6f8397941c89db3b28bfb11028d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fcfr9qxi/psutil_1b37f6f8397941c89db3b28bfb11028d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ei6id02m
       cwd: /tmp/pip-install-fcfr9qxi/psutil_1b37f6f8397941c89db3b28bfb11028d/
  Complete output (44 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.7
  creating build/lib.linux-armv7l-3.7/psutil
  copying psutil/_pswindows.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_pssunos.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_psposix.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_psosx.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_pslinux.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_psbsd.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_psaix.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_compat.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/_common.py -> build/lib.linux-armv7l-3.7/psutil
  copying psutil/__init__.py -> build/lib.linux-armv7l-3.7/psutil
  creating build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_windows.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_unicode.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_testutils.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_system.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_sunos.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_process.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_posix.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_osx.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_misc.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_memleaks.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_linux.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_contracts.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_connections.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_bsd.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/test_aix.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/runner.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/__main__.py -> build/lib.linux-armv7l-3.7/psutil/tests
  copying psutil/tests/__init__.py -> build/lib.linux-armv7l-3.7/psutil/tests
  running build_ext
  creating build/temp.linux-armv7l-3.7
  creating build/temp.linux-armv7l-3.7/psutil
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=590 -DPSUTIL_LINUX=1 -I/home/octoprint/Octoprint/venv/include/python3.7m -c psutil/_psutil_common.c -o build/temp.linux-armv7l-3.7/psutil/_psutil_common.o
  psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
   #include <Python.h>
            ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for psutil
  Running setup.py clean for psutil
  Building wheel for regex (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/octoprint/Octoprint/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ngg_1v6a
       cwd: /tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/
  Complete output (19 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.7
  creating build/lib.linux-armv7l-3.7/regex
  copying regex_3/__init__.py -> build/lib.linux-armv7l-3.7/regex
  copying regex_3/regex.py -> build/lib.linux-armv7l-3.7/regex
  copying regex_3/_regex_core.py -> build/lib.linux-armv7l-3.7/regex
  copying regex_3/test_regex.py -> build/lib.linux-armv7l-3.7/regex
  running build_ext
  creating build/temp.linux-armv7l-3.7
  creating build/temp.linux-armv7l-3.7/regex_3
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -I/home/octoprint/Octoprint/venv/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-armv7l-3.7/regex_3/_regex.o
  regex_3/_regex.c:50:10: fatal error: Python.h: No such file or directory
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for regex
  Running setup.py clean for regex
Failed to build netifaces psutil regex
Installing collected packages: regex, PyYAML, pyserial, pylru, psutil, pkginfo, pathvalidate, OctoPrint-PiSupport, OctoPrint-FirmwareCheck, OctoPrint-FileCheck, netifaces, netaddr, markdown, immutabledict, future, Flask-Login, Flask-Babel, Flask-Assets, filetype, feedparser, emoji, colorlog, cachelib, blinker
    Running setup.py install for regex ... error
    ERROR: Command errored out with exit status 1:
     command: /home/octoprint/Octoprint/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-f1m_v1fe/install-record.txt --single-version-externally-managed --compile --install-headers /home/octoprint/Octoprint/venv/include/site/python3.7/regex
         cwd: /tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/
    Complete output (21 lines):
    running install
    /home/octoprint/Octoprint/venv/local/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      setuptools.SetuptoolsDeprecationWarning,
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/regex
    copying regex_3/__init__.py -> build/lib.linux-armv7l-3.7/regex
    copying regex_3/regex.py -> build/lib.linux-armv7l-3.7/regex
    copying regex_3/_regex_core.py -> build/lib.linux-armv7l-3.7/regex
    copying regex_3/test_regex.py -> build/lib.linux-armv7l-3.7/regex
    running build_ext
    creating build/temp.linux-armv7l-3.7
    creating build/temp.linux-armv7l-3.7/regex_3
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -I/home/octoprint/Octoprint/venv/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-armv7l-3.7/regex_3/_regex.o
    regex_3/_regex.c:50:10: fatal error: Python.h: No such file or directory
     #include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/octoprint/Octoprint/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fcfr9qxi/regex_15742a75f360445d880eace4245deb90/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-f1m_v1fe/install-record.txt --single-version-externally-managed --compile --install-headers /home/octoprint/Octoprint/venv/include/site/python3.7/regex Check the logs for full command output.
octoprint@orangepilite:~$

Additionally i check this libraries:

octoprint@orangepilite:~$ sudo apt-get install python3-dev
[sudo] password for octoprint:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dev is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
octoprint@orangepilite:~$ ^C
octoprint@orangepilite:~$ sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version (2.7.16-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
octoprint@orangepilite:~$

Also

octoprint@orangepilite:~$ sudo find /|fgrep Python.h
/usr/include/python2.7/Python.h
/usr/include/python3.7m/Python.h
octoprint@orangepilite:~$

I.e. libraries seems to be somewhere there ...
and i dont understood how to set up it to be correct path

All headers with this name Python.h

octoprint@orangepilite:~$ sudo apt-file search --regexp '/Python.h$'
libpython2.7-dbg: /usr/include/python2.7_d/Python.h
libpython2.7-dev: /usr/include/python2.7/Python.h
libpython3.7-dbg: /usr/include/python3.7dm/Python.h
libpython3.7-dev: /usr/include/python3.7m/Python.h
pypy-dev: /usr/lib/pypy/include/Python.h
pypy3-dev: /usr/lib/pypy3/include/Python.h
octoprint@orangepilite:~$

Ok, i install another Armbian, and make python3 install, and all works ... via pip install. Russian notes on ths are at my blog here - Запуск Октопринт под Armbian, проверено 2022-01-25 – Хроники Фрилансера

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.