forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
    查看: 1546|回复: 3

    [经验分享] 关于MT2500安装HomeAssistant时遇到问题求助

    [复制链接]

    2

    主题

    5

    帖子

    56

    积分

    注册会员

    Rank: 2

    积分
    56
    发表于 2023-4-4 00:38:05 | 显示全部楼层 |阅读模式
    在安装HomeAssistant时遇到问题,各位大佬能否帮忙看一下什么原因?

    python3.6安装成功
    pip安装成功
    gcc安装成功

    但是PyNaCl每次都安装不成功,请问各位大佬这个是什么原因呀?

    Install python module: PyNaCl...... try 1.
    Collecting pynacl==1.3.0
      Downloading PyNaCl-1.3.0.tar.gz (3.4 MB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 1.6 MB/s eta 0:00:00
      Installing build dependencies ...
      error: subprocess-exited-with-error

      × pip subprocess to install build dependencies did not run successfully.
      │ exit code: 1
      ╰─> [122 lines of output]
          Collecting setuptools
            Downloading setuptools-67.6.1-py3-none-any.whl (1.1 MB)
               ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 636.3 kB/s eta 0:00:00
          Collecting wheel
            Downloading wheel-0.40.0-py3-none-any.whl (64 kB)
               ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 kB 18.7 MB/s eta 0:00:00
          Collecting cffi>=1.4.1
            Downloading cffi-1.15.1.tar.gz (508 kB)
               ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 508.5/508.5 kB 6.8 MB/s eta 0:00:00
            Preparing metadata (setup.py): started
            Preparing metadata (setup.py): finished with status 'done'
          Collecting pycparser
            Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
               ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 20.1 MB/s eta 0:00:00
          Building wheels for collected packages: cffi
            Building wheel for cffi (setup.py): started
            Building wheel for cffi (setup.py): finished with status 'error'
            error: subprocess-exited-with-error

            × python setup.py bdist_wheel did not run successfully.
            │ exit code: 1
            ╰─> [37 lines of output]
                /usr/lib/python3.9/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter i                                                                                    s deprecated, use license_files instead.
                  warnings.warn(msg, warning_class)
                running bdist_wheel
                running build
                running build_py
                creating build
                creating build/lib.linux-aarch64-cpython-39
                creating build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/verifier.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/vengine_gen.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/recompiler.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/pkgconfig.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/model.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/lock.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/ffiplatform.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/error.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/cparser.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/commontypes.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/api.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/__init__.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/_cffi_include.h -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/parse_c_type.h -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/_embedding.h -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-cpython-39/cffi
                running build_ext
                building '_cffi_backend' extension
                creating build/temp.linux-aarch64-cpython-39
                creating build/temp.linux-aarch64-cpython-39/c

                /usr/bin/ld: cannot find -lffi
                collect2: error: ld returned 1 exit status
                error: command '/usr/bin/gcc' failed with exit code 1
                [end of output]

            note: This error originates from a subprocess, and is likely not a problem with pip.
            ERROR: Failed building wheel for cffi
            Running setup.py clean for cffi
          Failed to build cffi
          Installing collected packages: wheel, setuptools, pycparser, cffi
            Running setup.py install for cffi: started
            Running setup.py install for cffi: finished with status 'error'
            error: subprocess-exited-with-error

            × Running setup.py install for cffi did not run successfully.
            │ exit code: 1
            ╰─> [39 lines of output]
                /usr/lib/python3.9/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter i                                                                                    s deprecated, use license_files instead.
                  warnings.warn(msg, warning_class)
                running install
                /usr/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecate                                                                                    d. Use build and pip and other standards-based tools.
                  warnings.warn(
                running build
                running build_py
                creating build
                creating build/lib.linux-aarch64-cpython-39
                creating build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/verifier.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/vengine_gen.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/recompiler.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/pkgconfig.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/model.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/lock.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/ffiplatform.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/error.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/cparser.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/commontypes.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/api.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/__init__.py -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/_cffi_include.h -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/parse_c_type.h -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/_embedding.h -> build/lib.linux-aarch64-cpython-39/cffi
                copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-cpython-39/cffi
                running build_ext
                building '_cffi_backend' extension
                creating build/temp.linux-aarch64-cpython-39
                creating build/temp.linux-aarch64-cpython-39/c

                /usr/bin/ld: cannot find -lffi
                collect2: error: ld returned 1 exit status
                error: command '/usr/bin/gcc' failed with exit code 1
                [end of output]

            note: This error originates from a subprocess, and is likely not a problem with pip.
          error: legacy-install-failure

          × Encountered error while trying to install package.
          ╰─> cffi

          note: This is an issue with the package mentioned above, not pip.
          hint: See above for output from the failure.
          [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    × pip subprocess to install build dependencies did not run successfully.
    │ exit code: 1
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.


    回复

    使用道具 举报

    0

    主题

    208

    帖子

    824

    积分

    高级会员

    Rank: 4

    积分
    824

    官方人员

    发表于 2023-4-4 19:46:12 | 显示全部楼层
    装一个软件包试试:
    1. opkg update
    2. opkg install libffi
    复制代码
    点击本楼回复,以方便收到通知
    回复

    使用道具 举报

    2

    主题

    5

    帖子

    56

    积分

    注册会员

    Rank: 2

    积分
    56
     楼主| 发表于 2023-4-5 00:26:40 | 显示全部楼层
    hansome 发表于 2023-4-4 19:46
    装一个软件包试试:

    装了还是不行
    回复

    使用道具 举报

    2

    主题

    5

    帖子

    56

    积分

    注册会员

    Rank: 2

    积分
    56
     楼主| 发表于 2023-4-5 00:33:37 | 显示全部楼层
    报错图片

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    回复

    使用道具 举报

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

    本版积分规则

    Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

    GMT+8, 2024-11-22 17:01 , Processed in 0.019019 second(s), 26 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

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