『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: cuixiao603

k3梅林安装hass教程

  [复制链接]

1

主题

9

帖子

55

积分

注册会员

Rank: 2

积分
55
金钱
46
HASS币
0
发表于 2018-11-10 19:57:05 | 显示全部楼层
cuixiao603 发表于 2018-11-1 22:39
你这个是不是官改,之前有个兄弟是这个问题 梅林安装的python都是3.7

是官改。那请问怎么弄?
回复

使用道具 举报

3

主题

72

帖子

302

积分

论坛分享达人

积分
302
金钱
230
HASS币
0
 楼主| 发表于 2018-11-14 23:07:53 | 显示全部楼层
shenzhiming88 发表于 2018-11-10 19:57
是官改。那请问怎么弄?

官改我没搞过啊 但是官改 貌似论坛有教程的
回复

使用道具 举报

0

主题

18

帖子

89

积分

注册会员

Rank: 2

积分
89
金钱
70
HASS币
0
发表于 2018-11-23 23:08:55 | 显示全部楼层
最后一步chmod a+x start.sh提示chmod: start.sh: No such file or directory怎么办呢,就卡在这一步了
回复

使用道具 举报

0

主题

18

帖子

89

积分

注册会员

Rank: 2

积分
89
金钱
70
HASS币
0
发表于 2018-11-23 23:29:42 | 显示全部楼层
貌似好了,但是不会自启
回复

使用道具 举报

1

主题

11

帖子

59

积分

注册会员

Rank: 2

积分
59
金钱
48
HASS币
0
发表于 2018-11-24 18:16:49 | 显示全部楼层
这个自动启动好像没什么用?
回复

使用道具 举报

0

主题

5

帖子

93

积分

注册会员

Rank: 2

积分
93
金钱
88
HASS币
0
发表于 2018-12-26 09:00:06 | 显示全部楼层
一直显示OSError: [Errno 12] Cannot allocate memory,hass配置文件夹是空的,严格按照步骤做了好几遍,请论坛大神们指导一下
回复

使用道具 举报

5

主题

89

帖子

461

积分

中级会员

Rank: 3Rank: 3

积分
461
金钱
372
HASS币
0
发表于 2018-12-26 22:05:34 | 显示全部楼层
本帖最后由 tom663 于 2018-12-27 15:25 编辑

[K3 /tmp/share/sda1]# pip3 install cffi
Collecting cffi
  Downloading https://files.pythonhosted.org/p ... /cffi-1.11.5.tar.gz (438kB)
    100% |################################| 440kB 17kB/s
Requirement already satisfied: pycparser in ./root/opt/lib/python3.6/site-packages (from cffi) (2.19)
Building wheels for collected packages: cffi
  Building wheel for cffi failed: [Errno 30] Read-only file system: '/.cache'
Failed to build cffi
Installing collected packages: cffi
  Running setup.py install for cffi ... error
    Complete output from command /opt/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-rc44zpvf/cffi/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-iw3h262m/install-record.txt --single-version-externally-managed --compile:
    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/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-gnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -I/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include -I/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/include -I/media/ware4/Entware-ng.2017.12/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/usr/include -I/media/ware4/Entware-ng.2017.12/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.6 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
    arm-openwrt-linux-gnueabi-gcc -shared -L/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -L/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -L/media/ware4/Entware-ng.2017.12/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/usr/lib -L/media/ware4/Entware-ng.2017.12/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/lib -L/media/ware4/Entware-ng.2017.12/build_dir/target-arm_cortex-a9_glibc-2.23_eabi/Python-3.6.2 -L/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -L/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware4/Entware-ng.2017.12/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -L/media/ware4/Entware-ng.2017.12/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/usr/lib -L/media/ware4/Entware-ng.2017.12/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/lib -L/media/ware4/Entware-ng.2017.12/build_dir/target-arm_cortex-a9_glibc-2.23_eabi/Python-3.6.2 build/temp.linux-armv7l-3.6/c/_cffi_backend.o -L/opt/lib -lffi -lpython3.6 -o build/lib.linux-armv7l-3.6/_cffi_backend.cpython-36.so
    /opt/bin/ld: cannot find -lffi
    collect2: error: ld returned 1 exit status
    error: command 'arm-openwrt-linux-gnueabi-gcc' failed with exit status 1

    ----------------------------------------
Command "/opt/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-rc44zpvf/cffi/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-iw3h262m/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-rc44zpvf/cffi/


楼主帮看下是怎么回事!装了好多次都卡在这了!!
回复

使用道具 举报

0

主题

22

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
64
HASS币
0
发表于 2019-2-3 22:36:30 | 显示全部楼层
用起来怎么爽不爽?
回复

使用道具 举报

55

主题

618

帖子

3774

积分

论坛元老

Rank: 8Rank: 8

积分
3774
金钱
3151
HASS币
20
发表于 2019-2-12 17:44:40 | 显示全部楼层
cuixiao603 发表于 2018-11-14 23:07
官改我没搞过啊 但是官改 貌似论坛有教程的

请问一下
pip3 install mutagen pycryptodome pyOpenSSL pyotp PyQRCode python-jose-cryptodome ua-parser user-agents warrant xmlto dict
是不是要运行 做到第九步运行hass 提示错误命令
/opt/lib/python3.7/site-packages/
没有homeassistant 文件夹
回复

使用道具 举报

0

主题

11

帖子

56

积分

注册会员

Rank: 2

积分
56
金钱
45
HASS币
0
发表于 2019-2-14 01:20:47 | 显示全部楼层
本帖最后由 chl 于 2019-2-14 01:21 编辑

安装到第六步出现如下错误

file:///C:/Users/chenh/Desktop/11111.png
Collecting bcrypt==3.1.5 (from homeassistant)
^[^A  Using cached https://files.pythonhosted.org/packages/91/a5/fd19eac0252e56b                 4ce65ced937ae40024782c21108da7d830003b7f76cdb/bcrypt-3.1.5.tar.gz
  Could not find a version that satisfies the requirement cffi>=1.1 (from versio                 ns: )
No matching distribution found for cffi>=1.1
手动安装CFFI、GCC均无解。AC68U,梅林380.70_0-X7.9.1,望各位大佬指导一下

11111.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 10:38 , Processed in 0.055878 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表