Code Monkey home page Code Monkey logo

home-assistant-on-openwrt's Introduction

Script to install Home Assistant on OpenWRT

Home Assistant is an open source home automation platform. It is able to track and control thousands of smart devices and offer a platform for automating control. Details on https://github.com/home-assistant/home-assistant.
Home Assistant supports only Windows, Linux, Mac and Raspberry offically. While this project is to install the Home Assistant on OpenWRT OS. So that you can run a Home Assistant on a router without having to run a 24-hours PC or Raspberry.

Note that OpenWRT is not an officially supported platform by Home Assistant and so not all integrations (e.g. Zigbee binaries) will work in this system.

Hardware Requirements

A complete installation of Home Assistant will take nearly 350 MB Flash and 130 MB RAM. More components require more storage.
Recommend device is GL-S1300. It has a 8 GB emmc, 512 MB RAM and a Quad-core CPU. It is enough for running Home Assistant and its routing function is also completely unaffected.

Software Requirements

Firmware version 3.023 for GL-S1300 or above.

Install using our scripts

We recommend strongly that using our gl-homeassistant.ipk to install the Home Assistant. It provides an one-click installation script and has add Home Assistant into the system boot program.

You can install "gl-homeassistant" easily through the web. Just search "gl-homeassistant" in the "plug-ins" and click "install". Or you can manually install it in the SSH terminal typing this:

opkg update
opkg install gl-homeassistant

After finished installing gl-homeassistant. You can using command in the SSH terminal to start the installation of Home Assistant.

hass-install

Wait for the installation finished. Usually it takes 20~30 minutes.

Install Manually

If you didn't install gl-homeassistant. There is no command named "hass-install". You have to clone this project and excute it manually.

Clone this project

Open the OpenWRT interface through SSH. Using putty or xshell or some other tools.
And then get into the root path and clone this project.

cd /root/
git clone https://github.com/gl-inet/home-assistant-on-openwrt.git

Note that maybe you'd install the git, use command like this:

opkg install git git-http

Start installation

Get into the project folder and start the installation. Make sure your device has connected to the Internet.

cd home-assistant-on-openwrt
./install.sh 

It will take 20~30 minutes. After finished, it will print "HomeAssistant installation finished. Use command "hass -c /data/.homeassistant" to start the HA."

Start Home Assistant for The First Time

After installation finished, use command hass -c /data/.homeassistant to start.

Note that firstly start will download and install some Python modules. Make sure the network is connected while first starting. It will take about 20 minutes. If it stuck or print some error messages, don't worry, interupt it and retry hass -c /data/.homeassistant usually works.

It has fully started when print messages like:

Starting Home Assistant
Timer:starting

Enjoy Home Assistant on The Router

Connect to the S1300 through LAN ports or Wifi using your PC or phone. Visit the address 192.168.8.1:8123 , that's the web page for Home Assistant.

Now you can link your smart devices together with Home Assistant.

Questions and discussion about HA on https://community.home-assistant.io/

home-assistant-on-openwrt's People

Contributors

alzhao avatar fabaff avatar yaosir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-on-openwrt's Issues

Missing cURL as dependency

Download and install pip...... try 5. ./install.sh: line 98: curl: not found ERROR! Install pip failed, exit.

Installed cURL and now it's fine.

External Zigbee

Installed on GL-1300 but is not recognising Zigbee usb. Has anyone managed to use an external Zigbee USB?

Compilation error on openwrt 23.05

Hi,

This error occurs when trying to compile on version 23.05:

rm -f /home/metium/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pypi/pycparser-2.21/.built
touch /home/metium/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pypi/pycparser-2.21/.built_check
SHELL= flock /home/metium/openwrt/tmp/.pip.flock -c ' ARCH="x86_64" CC="gcc" CCSHARED="gcc -DPIC -fPIC" CXX="g++" LD="gcc" LDSHARED="gcc -shared" CFLAGS="-O2 -I/home/metium/openwrt/staging_dir/host/include -I/home/metium/openwrt/staging_dir/hostpkg/include -I/home/metium/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/include" CPPFLAGS="-I/home/metium/openwrt/staging_dir/host/include -I/home/metium/openwrt/staging_dir/hostpkg/include -I/home/metium/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/include -I/home/metium/openwrt/staging_dir/hostpkg/include/python3.11" LDFLAGS="-L/home/metium/openwrt/staging_dir/host/lib -L/home/metium/openwrt/staging_dir/hostpkg/lib -L/home/metium/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/lib -lpython3.11 -Wl,-rpath,/home/metium/openwrt/staging_dir/hostpkg/lib"  CARGO_HOME=/home/metium/openwrt/dl/cargo SETUPTOOLS_RUST_CARGO_PROFILE="release" PIP_CACHE_DIR="/home/metium/openwrt/dl/pip-cache" PIP_CONFIG_FILE=/dev/null PIP_DISABLE_PIP_VERSION_CHECK=1 /home/metium/openwrt/staging_dir/hostpkg/bin/pip3.11 install --no-binary :all: --progress-bar off --require-hashes  --requirement /home/metium/openwrt/feeds/packages/lang/python/host-pip-requirements/ply.txt  ' 
ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/home/metium/openwrt/feeds/packages/lang/python/host-pip-requirements/ply.txt'
make[3]: *** [Makefile:47: /home/metium/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pypi/pycparser-2.21/.built] Error 1
make[3]: Leaving directory '/home/metium/openwrt/feeds/homeassistant/python-packages/python-ha-pycparser'
time: package/feeds/homeassistant/python-ha-pycparser/compile#0.49#0.08#0.56
    ERROR: package/feeds/homeassistant/python-ha-pycparser failed to build.
make[2]: *** [package/Makefile:120: package/feeds/homeassistant/python-ha-pycparser/compile] Error 1
make[2]: Leaving directory '/home/metium/openwrt'
make[1]: *** [package/Makefile:114: /home/metium/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/metium/openwrt'
make: *** [/home/metium/openwrt/include/toplevel.mk:232: world] Error 2```

General HASS error: can't find make

This is so specific, I'm unsure where to submit it. HASS is erroring out installing several python packages due to make not being found. Especially, the zwave modules, but below shows the PyNaCl module.

How do I get make properly installed on the GL-S1300? Or do I need to build these on a different system and bring them into the GL-S1300? I'm trying to get a full HASS system up with a HUSBZB-1.


2020-09-08 01:11:53 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of PyNaCl==1.3.0




2020-09-08 01:14:53 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package PyNaCl==1.3.0: ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpmk6tdbjg
       cwd: /tmp/pip-install-8gty0l77/pynacl
  Complete output (72 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.6
  creating build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/utils.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/signing.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/secret.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/public.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/hashlib.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/hash.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/exceptions.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/encoding.py -> build/lib.linux-armv7l-3.6/nacl
  copying src/nacl/__init__.py -> build/lib.linux-armv7l-3.6/nacl
  creating build/lib.linux-armv7l-3.6/nacl/pwhash
  copying src/nacl/pwhash/scrypt.py -> build/lib.linux-armv7l-3.6/nacl/pwhash
  copying src/nacl/pwhash/argon2id.py -> build/lib.linux-armv7l-3.6/nacl/pwhash
  copying src/nacl/pwhash/argon2i.py -> build/lib.linux-armv7l-3.6/nacl/pwhash
  copying src/nacl/pwhash/_argon2.py -> build/lib.linux-armv7l-3.6/nacl/pwhash
  copying src/nacl/pwhash/__init__.py -> build/lib.linux-armv7l-3.6/nacl/pwhash
  creating build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/utils.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/sodium_core.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/randombytes.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_sign.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_shorthash.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_secretstream.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_secretbox.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_scalarmult.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_pwhash.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_kx.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_hash.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_generichash.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_box.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/crypto_aead.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  copying src/nacl/bindings/__init__.py -> build/lib.linux-armv7l-3.6/nacl/bindings
  warning: build_py: byte-compiling is disabled, skipping.
  
  running build_clib
  Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
      main()
    File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 205, in build_wheel
      metadata_directory)
    File "/tmp/pip-build-env-9y_s05j3/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 217, in build_wheel
      wheel_directory, config_settings)
    File "/tmp/pip-build-env-9y_s05j3/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 202, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-9y_s05j3/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 254, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-9y_s05j3/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 145, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 255, in <module>
      "Programming Language :: Python :: 3.7",
    File "/tmp/pip-build-env-9y_s05j3/overlay/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/core.py", line 148, in setup
    File "/dist.py", line 955, in run_commands
    File "/dist.py", line 974, in run_command
    File "/tmp/pip-build-env-9y_s05j3/overlay/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 290, in run
      self.run_command('build')
    File "/cmd.py", line 313, in run_command
    File "/dist.py", line 974, in run_command
    File "/build.py", line 135, in run
    File "/cmd.py", line 313, in run_command
    File "/dist.py", line 974, in run_command
    File "setup.py", line 159, in run
      raise Exception("ERROR: The 'make' utility is missing from PATH")
  Exception: ERROR: The 'make' utility is missing from PATH
  ----------------------------------------
  ERROR: Failed building wheel for PyNaCl
ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly

please help with libopenssl and cryptography=3.2

Hi guys,

Environment:

Platform: OpenWRT running LEDE OpenWrt 19.07.7
homeassistant: 2021.1.5 (latest support Python3.7)
pip3 list
Package Version


cryptography 3.2.1

homeassistant 2021.1.5

opkg files libopenssl
Package libopenssl1.1 (1.1.1j-1) is installed on root and has the following files:
/usr/lib/libcrypto.so.1.1
/usr/lib/libssl.so.1.1

Issue:

I was able to loaded the require packages and started HA on OpenWrt. However, a lot of components (HomeKit, cloud, mobile_app, apple_tv) can't run with the following error

ImportError: Error relocating /usr/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: SSL_library_init: symbol not found

I did my research and found it seems SSL_library_init no longer get supported under libssl.1.1. However it seem after install cryptography (2.8,3.0,3.2), this symbol keep being called by cryptography.

There might be a modification needed at ssl.h to ensure it's not call SSL_library_init but OpenSSL_init_SSL instead as in the following ssl.h from other openssl package

if OPENSSL_API_COMPAT < 0x10100000L

define SSL_library_init() OPENSSL_init_ssl(0, NULL)

endif

Could someone please help recompile ssl.h file that is suitable for this implementation? I tried copy this ssl.h from the net but no luck during reinstall cryptography.

Thanks a bunch.

Install python module: PyNaCl

Home Assistant
on my Mybooklive with version Powered by LuCI openwrt-19.07 branch (git-20.341.57626-51f55b5) / OpenWrt 19.07.5 r11257-5090152ae3

I've tried everything to urge this pyton module, always give me this error:

Install python module: PyNaCl...... try 1.
Collecting pynacl==1.3.0
Downloading PyNaCl-1.3.0.tar.gz (3.4 MB)
|████████████████████████████████| 3.4 MB 2.0 MB/s
Installing build dependencies ... error
WARNING: Discarding https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz#sha256=0c6100edd16fefd1557da078c7a31e7b7d7a52ce39fdca2bec29d4f7b6e7600c (from https://pypi.org/simple/pynacl/). Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9ajd5wnn/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cffi>=1.4.1; python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pynacl==1.3.0
ERROR: No matching distribution found for pynacl==1.3.0

Add Zigbee Support

I want to help contribute to the project and add Zigbee support, But first because I’ve never worked with openwrt. What language is the code in?

gl-inet device

the plugin is not availible on a glinet device atx1800 is there a way to add the repository or source ?

Python SSL problem

Hello,

I would like to install Home Assistant through the way you recommended.
I tried to run opkg install gl-homeassistant && hass-install on GL-S1300.
I got the following message and could not install the Home Assistant.

 Download and install pip...... try 1.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1892k  100 1892k    0     0  1527k      0  0:00:01  0:00:01 --:--:-- 1919k
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip
 Download and install pip...... try 2.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1892k  100 1892k    0     0  1557k      0  0:00:01  0:00:01 --:--:-- 1864k

It seems like the SSL module is not available for Python 3.6.5-1.
The following relative packages are installed on my GL-S1300.

root@GL-S1300:~# opkg list-installed | grep python
python-pip-conf - 0.1-1
python3 - 3.6.5-1
python3-asyncio - 3.6.5-1
python3-base - 3.6.5-1
python3-cgi - 3.6.5-1
python3-cgitb - 3.6.5-1
python3-codecs - 3.6.5-1
python3-ctypes - 3.6.5-1
python3-dbm - 3.6.5-1
python3-decimal - 3.6.5-1
python3-dev - 3.6.5-1
python3-distutils - 3.6.5-1
python3-email - 3.6.5-1
python3-gdbm - 3.6.5-1
python3-lib2to3 - 3.6.5-1
python3-light - 3.6.5-1
python3-logging - 3.6.5-1
python3-lzma - 3.6.5-1
python3-multiprocessing - 3.6.5-1
python3-ncurses - 3.6.5-1
python3-openssl - 3.6.5-1
python3-pip - 9.0.3-1
python3-pydoc - 3.6.5-1
python3-setuptools - 39.0.1-1
python3-sqlite3 - 3.6.5-1
python3-unittest - 3.6.5-1
python3-xml - 3.6.5-1

root@GL-S1300:~# opkg list-installed | grep openssl
libopenssl - 1.1.1d-2
libopenssl-conf - 1.1.1d-2
libustream-openssl - 2019-08-17-e8f9c22d-2
openssl-util - 1.1.1d-2
openvpn-openssl - 2.5.0-1
python3-openssl - 3.6.5-1
rtty-openssl - 7.1.1-10

Do you have any idea with this problem?

Thanks a lot.

My S1300 failed to compile hass

 Install C library......libffi
cp: can't stat './HomeAssistantOnOPENWRT-master/ffi*': No such file or directory
 Install C library......libopenssl
cp: can't stat './HomeAssistantOnOPENWRT-master/openssl': No such file or directory
 Install C library......libsodium
Installing libsodium (1.0.16-1) to root...
Downloading http://download.gl-inet.com/releases/packages-3.x/ipq40xx/packages/libsodium_1.0.16-1_ipq806x.ipk.
Configuring libsodium.
cp: can't stat './HomeAssistantOnOPENWRT-master/sodium.h': No such file or directory
 Install python module: PyNaCl...... try 1.
Collecting pynacl
  Downloading https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
 (3.4MB)
     |################################| 3.4MB 2.4MB/s
  Installing build dependencies ... error
  ERROR: Complete output from command /usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /t
mp/pip-build-env-onjjpa9h/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools
 wheel 'cffi>=1.4.1; python_implementation != '"'"'PyPy'"'"'':
  ERROR: Collecting setuptools
    Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.
1-py2.py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2
.py3-none-any.whl
  Collecting cffi>=1.4.1
    Downloading https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.g
z (456kB)
  Collecting pycparser (from cffi>=1.4.1)
    Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.ta
r.gz (158kB)
  Building wheels for collected packages: cffi, pycparser
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hk9hsqdw/cffi/set
up.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(co
de, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-2iwuoae2 --python-tag cp36:
    ERROR: running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.6
    creating build/lib.linux-armv7l-3.6/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.6
    creating build/temp.linux-armv7l-3.6/c
    arm-openwrt-linux-uclibcgnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-sav
es -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -Os -pipe -march=armv
7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,no
w -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-var
iable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/han/release/ib/release_53/sdk_gh/ipq806
x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/target-arm_co
rtex-a7_uClibc-1.0.14_eabi/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClib
c-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_
eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6 -c c/_cffi_backen
d.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
                     ^
    compilation terminated.
    error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
    Building wheel for pycparser (setup.py): started
    Building wheel for pycparser (setup.py): finished with status 'done'
    Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
  Successfully built pycparser
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hk9hsqdw/cffi/s
etup.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-8h5djdx1/install-record.txt --single-version-externally-managed --prefix
/tmp/pip-build-env-onjjpa9h/overlay --compile:
      ERROR: running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-3.6
      creating build/lib.linux-armv7l-3.6/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
      warning: build_py: byte-compiling is disabled, skipping.

      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.6
      creating build/temp.linux-armv7l-3.6/c
      arm-openwrt-linux-uclibcgnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-s
aves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -Os -pipe -march=ar
mv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,
now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-v
ariable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/han/release/ib/release_53/sdk_gh/ipq8
06x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/target-arm_
cortex-a7_uClibc-1.0.14_eabi/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uCl
ibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.1
4_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6 -c c/_cffi_back
end.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
      c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
       #include <ffi.h>
                       ^
      compilation terminated.
      error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hk9hsqdw/cffi/setup.py'"'"';f=getattr(t
okenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exe
c'"'"'))' install --record /tmp/pip-record-8h5djdx1/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-onjjp
a9h/overlay --compile" failed with error code 1 in /tmp/pip-install-hk9hsqdw/cffi/
  ----------------------------------------
ERROR: Command "/usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-onjjp
a9h/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cffi>=1.4.1; p
ython_implementation != '"'"'PyPy'"'"''" failed with error code 1 in None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.