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

 找回密码
 立即注册
查看: 4660|回复: 9

[技术探讨] 求助!用termux组建的homeassistant,装不上PyNaCl

[复制链接]

6

主题

256

帖子

1745

积分

金牌会员

Rank: 6Rank: 6

积分
1745
金钱
1489
HASS币
0
发表于 2019-11-6 14:03:01 | 显示全部楼层 |阅读模式
本帖最后由 z741554038 于 2019-11-6 14:04 编辑

小白求助
检查配置图如下 1.png

安装错误信息如下
$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple PyNaCl
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting PyNaCl
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/ab/2ac6dea8489fa713                                                                                                                                                             e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: six in /data/data/com.termux/files/usr/lib/python3.7/site-packages (from PyNaCl) (1.12.0)
Requirement already satisfied: cffi>=1.4.1 in /data/data/com.termux/files/usr/lib/python3.7/site-packages (from PyNaCl) (1.13.2)
Requirement already satisfied: pycparser in /data/data/com.termux/files/usr/lib/python3.7/site-packages (from cffi>=1.4.1->yNaCl) (2.19)
Building wheels for collected packages: PyNaCl
  Building wheel for PyNaCl (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /data/data/com.termux/files/usr/bin/python /data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /data/data/com.termux/files/usr/tmp/tmp1cvuwi1g
       cwd: /data/data/com.termux/files/usr/tmp/pip-install-da_astlb/PyNaCl
  Complete output (78 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.7
  creating build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/__init__.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/encoding.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/exceptions.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/hash.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/hashlib.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/public.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/secret.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/signing.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/utils.py -> build/lib.linux-aarch64-3.7/nacl
  creating build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/__init__.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/_argon2.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/argon2i.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/argon2id.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/scrypt.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  creating build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/__init__.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_aead.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_box.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_generichash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_hash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_kx.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_pwhash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_scalarmult.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_secretbox.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_secretstream.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_shorthash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_sign.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/randombytes.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/sodium_core.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/utils.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  running build_clib
  Traceback (most recent call last):
    File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 182, in build_wheel
      metadata_directory)
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 209, in build_wheel
      wheel_directory, config_settings)
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 194, in _build_with_temp_dir
      self.run_setup()
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 237, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 255, in <module>
      "rogramming Language :: Python :: 3.7",
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
      self.run_command('build')
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    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
  Running setup.py clean for PyNaCl
Failed to build PyNaCl
ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly


回复

使用道具 举报

8

主题

736

帖子

4572

积分

论坛元老

Rank: 8Rank: 8

积分
4572
金钱
3831
HASS币
40
QQ
发表于 2019-11-6 14:32:48 | 显示全部楼层
本帖最后由 Aiden1 于 2019-11-6 14:35 编辑

更换一下源或者执行命令试试
pip3 install PyNaCl==1.3.0

回复

使用道具 举报

6

主题

256

帖子

1745

积分

金牌会员

Rank: 6Rank: 6

积分
1745
金钱
1489
HASS币
0
 楼主| 发表于 2019-11-6 15:05:01 | 显示全部楼层
Aiden1 发表于 2019-11-6 14:32
更换一下源或者执行命令试试

就清华的源才有Pynacl,我试一下重新安装吧,从头再来
回复

使用道具 举报

123

主题

4661

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16412
金钱
11666
HASS币
45
发表于 2019-11-7 00:02:06 | 显示全部楼层
这是什么东东,氯化钠?
回复

使用道具 举报

6

主题

256

帖子

1745

积分

金牌会员

Rank: 6Rank: 6

积分
1745
金钱
1489
HASS币
0
 楼主| 发表于 2019-11-8 09:26:41 | 显示全部楼层
小白不太懂,大概是python的调味剂吧,哈哈哈
回复

使用道具 举报

1

主题

15

帖子

59

积分

注册会员

Rank: 2

积分
59
金钱
44
HASS币
0
发表于 2020-3-31 15:04:56 | 显示全部楼层
解决了吗?我也遇到同样的问题。
回复

使用道具 举报

6

主题

256

帖子

1745

积分

金牌会员

Rank: 6Rank: 6

积分
1745
金钱
1489
HASS币
0
 楼主| 发表于 2020-4-1 11:43:09 | 显示全部楼层
sckocn 发表于 2020-3-31 15:04
解决了吗?我也遇到同样的问题。

没,我换平台了,买了树莓派3B+,可以的话建议买个N1
回复

使用道具 举报

1

主题

15

帖子

59

积分

注册会员

Rank: 2

积分
59
金钱
44
HASS币
0
发表于 2020-4-1 15:48:47 | 显示全部楼层
z741554038 发表于 2020-4-1 11:43
没,我换平台了,买了树莓派3B+,可以的话建议买个N1

PyNaCl 这个 我也没安装上,还是出错。但是能运行hass,网页登陆后会有mobile和default出错提示。

感谢回复
回复

使用道具 举报

1

主题

35

帖子

216

积分

中级会员

Rank: 3Rank: 3

积分
216
金钱
181
HASS币
0
发表于 2020-5-28 08:52:09 | 显示全部楼层
pip install wheel
apt install make
pip install PyNaCl==1.3.0
解决
回复

使用道具 举报

1

主题

13

帖子

165

积分

注册会员

Rank: 2

积分
165
金钱
152
HASS币
0
发表于 2021-4-3 02:30:38 | 显示全部楼层
我直接在python for windows 下运行也有这个问题 后来重装了3.7版本的python解决了...
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 00:28 , Processed in 0.598530 second(s), 36 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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