Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 青龙运行失败,重构后依赖太多了 #155

Open
3 of 4 tasks
Pandaver opened this issue Nov 15, 2023 · 13 comments
Open
3 of 4 tasks

[Bug] 青龙运行失败,重构后依赖太多了 #155

Pandaver opened this issue Nov 15, 2023 · 13 comments
Labels
good first issue Good for newcomers invalid This doesn't seem right

Comments

@Pandaver
Copy link

Pandaver commented Nov 15, 2023

Verify Steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Latest 我已经使用最新版本测试过,问题依旧存在
  • Code 这是 MIUITask 自身代码存在的问题,并非我所使用的 网络 或 设备 等特定问题
  • Meaningful 我提交的不是无意义的 催促更新或修复 请求

MIUITask Version

v1.6.0.1

Bug Found in Environment

Linux

Bug Found in Python Version

3.7

Describe the Bug

系统:Ubuntu 20.04.5 LTS aarch64(Py3.7.8)
青龙版本:2.15.9
运行firstrun.sh失败,可能和ARM架构有关,希望脚本能少一些依赖

MIUITask Log

## 开始执行... 2023-11-15 11:20:20

在本任务运行完后请不要忘记禁用该任务!
在本任务运行完后请不要忘记禁用该任务!
在本任务运行完后请不要忘记禁用该任务!
————————————
开始安装依赖
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: annotated-types==0.6.0 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 4)) (0.6.0)
Requirement already satisfied: anyio==4.0.0 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 5)) (4.0.0)
Collecting certifi==2023.7.22
  Using cached https://mirrors.aliyun.com/pypi/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.whl (158 kB)
Collecting cffi==1.16.0
  Using cached https://mirrors.aliyun.com/pypi/packages/68/ce/95b0bae7968c65473e1298efb042e10cafc7bafc14d9e4f154008241c91d/cffi-1.16.0.tar.gz (512 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting charset-normalizer==3.3.2
  Using cached https://mirrors.aliyun.com/pypi/packages/33/c3/3b96a435c5109dd5b6adc8a59ba1d678b302a97938f032e3770cc84cd354/charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_aarch64.whl (139 kB)
Collecting colorama==0.4.6
  Using cached https://mirrors.aliyun.com/pypi/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting cryptography==41.0.5
  Using cached https://mirrors.aliyun.com/pypi/packages/05/40/ade6e708e6e90528dc50b215adce495fec49286f199bc11e4199b1666505/cryptography-41.0.5-cp37-abi3-musllinux_1_1_aarch64.whl (4.3 MB)
Requirement already satisfied: h11==0.14.0 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 11)) (0.14.0)
Collecting httpcore==1.0.2
  Using cached https://mirrors.aliyun.com/pypi/packages/56/ba/78b0a99c4da0ff8b0f59defa2f13ca4668189b134bd9840b6202a93d9a0f/httpcore-1.0.2-py3-none-any.whl (76 kB)
Collecting httpx==0.25.1
  Using cached https://mirrors.aliyun.com/pypi/packages/82/61/a5fca4a1e88e40969bbd0cf0d981f3aa76d5057db160b94f49603fc18740/httpx-0.25.1-py3-none-any.whl (75 kB)
Requirement already satisfied: idna==3.4 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 14)) (3.4)
Collecting loguru==0.7.2
  Downloading https://mirrors.aliyun.com/pypi/packages/03/0a/4f6fed21aa246c6b49b561ca55facacc2a44b87d65b8b92362a8e99ba202/loguru-0.7.2-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.5/62.5 kB 10.6 MB/s eta 0:00:00
Requirement already satisfied: onepush==1.3.0 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 16)) (1.3.0)
Collecting orjson==3.9.10
  Using cached https://mirrors.aliyun.com/pypi/packages/60/fe/756b9df73ec02eb714ddbb5613ee02221576a7afe9617f94381e85c47af3/orjson-3.9.10-cp310-cp310-musllinux_1_1_aarch64.whl (315 kB)
Collecting pycparser==2.21
  Using cached https://mirrors.aliyun.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
Requirement already satisfied: pycryptodome==3.19.0 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 19)) (3.19.0)
Collecting pydantic==2.4.2
  Downloading https://mirrors.aliyun.com/pypi/packages/73/66/0a72c9fcde42e5650c8d8d5c5c1873b9a3893018020c77ca8eb62708b923/pydantic-2.4.2-py3-none-any.whl (395 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 395.8/395.8 kB 11.7 MB/s eta 0:00:00
Requirement already satisfied: pydantic-core==2.10.1 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 21)) (2.10.1)
Requirement already satisfied: pyyaml==6.0.1 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 22)) (6.0.1)
Collecting requests==2.31.0
  Using cached https://mirrors.aliyun.com/pypi/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62 kB)
Requirement already satisfied: sniffio==1.3.0 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 24)) (1.3.0)
Collecting tenacity==8.2.3
  Downloading https://mirrors.aliyun.com/pypi/packages/f4/f1/990741d5bb2487d529d20a433210ffa136a367751e454214013b441c4575/tenacity-8.2.3-py3-none-any.whl (24 kB)
Requirement already satisfied: typing-extensions==4.8.0 in /usr/local/lib/python3.10/site-packages (from -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 26)) (4.8.0)
Collecting urllib3==2.0.7
  Using cached https://mirrors.aliyun.com/pypi/packages/d2/b2/b157855192a68541a91ba7b2bbcb91f1b4faa51f8bae38d8005c034be524/urllib3-2.0.7-py3-none-any.whl (124 kB)
Collecting win32-setctime==1.1.0
  Downloading https://mirrors.aliyun.com/pypi/packages/0a/e6/a7d828fef907843b2a5773ebff47fb79ac0c1c88d60c0ca9530ee941e248/win32_setctime-1.1.0-py3-none-any.whl (3.6 kB)
Requirement already satisfied: exceptiongroup>=1.0.2 in /usr/local/lib/python3.10/site-packages (from anyio==4.0.0->-r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt (line 5)) (1.1.3)
Building wheels for collected packages: cffi
  Building wheel for cffi (pyproject.toml): started
  Building wheel for cffi (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Building wheel for cffi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [62 lines of output]
      
          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.libera.chat.)
      
          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.
      
      /tmp/pip-build-env-vns9161a/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
      !!
      
              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.
      
              This deprecation is overdue, please update your project and remove deprecated
              calls to avoid build errors in the future.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        parsed = self.parsers.get(option_name, lambda x: x)(value)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-310
      creating build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/recompiler.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/ffiplatform.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/model.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/lock.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/vengine_cpy.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/commontypes.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/error.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/_imp_emulation.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/pkgconfig.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/cparser.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/vengine_gen.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/__init__.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/cffi_opcode.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/backend_ctypes.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/setuptools_ext.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/verifier.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/api.py -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/_cffi_include.h -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/parse_c_type.h -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/_embedding.h -> build/lib.linux-aarch64-cpython-310/cffi
      copying src/cffi/_cffi_errors.h -> build/lib.linux-aarch64-cpython-310/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-aarch64-cpython-310
      creating build/temp.linux-aarch64-cpython-310/src
      creating build/temp.linux-aarch64-cpython-310/src/c
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-aarch64-cpython-310/src/c/_cffi_backend.o
      error: command 'gcc' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cffi
Failed to build cffi
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects

[notice] A new release of pip available: 22.3.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
依赖已安装完毕
————————————
开始首次执行
## 开始执行... 2023-11-15 11:20:43

Traceback (most recent call last):
  File "/ql/data/scripts/0-8-4_miui-auto-tasks_master/miuitask.py", line 6, in <module>
    from utils.api.login import Login
  File "/ql/data/scripts/0-8-4_miui-auto-tasks_master/utils/api/login.py", line 6, in <module>
    import orjson
ModuleNotFoundError: No module named 'orjson'


## 执行结束... 2023-11-15 11:20:43  耗时 0 秒     
首次执行完毕
————————————
请不要忘记禁用该任务!
请不要忘记禁用该任务!
请不要忘记禁用该任务!
请到 脚本管理 - 0-8-4_miui-auto-tasks_master - data - config.yml 中配置参数
————————————


## 执行结束... 2023-11-15 11:20:43  耗时 23 秒

MIUITask Config

No response

Screenshots

No response

@Pandaver Pandaver added the bug Something isn't working label Nov 15, 2023
@0-8-4
Copy link
Owner

0-8-4 commented Nov 15, 2023 via email

@zhang-001
Copy link

我也是这个orjson依赖安装不上

@GitHub-Stock
Copy link

巧了,我也是orjson安装不上

@Night-stars-1
Copy link
Collaborator

依赖生成出现了一些问题,安装了不需要的依赖
安装下面这些依赖就好了

cryptography==41.0.5
httpx==0.25.1
loguru==0.7.2
onepush==1.3.0
orjson==3.9.10
pydantic==2.5.0
PyYAML==6.0.1
tenacity==8.2.3

@GitHub-Stock
Copy link

依赖生成出现了一些问题,安装了不需要的依赖 安装下面这些依赖就好了

cryptography==41.0.5
httpx==0.25.1
loguru==0.7.2
onepush==1.3.0
orjson==3.9.10
pydantic==2.5.0
PyYAML==6.0.1
tenacity==8.2.3

搞定咯,谢谢

@nonfxcksb
Copy link

nonfxcksb commented Nov 15, 2023

开始安装依赖 cryptography,开始时间 2023-11-15 12:56:45

Looking in indexes: https://pypi.doubanio.com/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/cryptography/
Collecting cryptography
Using cached https://mirrors.cloud.tencent.com/pypi/packages/05/40/ade6e708e6e90528dc50b215adce495fec49286f199bc11e4199b1666505/cryptography-41.0.5-cp37-abi3-musllinux_1_1_aarch64.whl (4.3 MB)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/cffi/
Collecting cffi>=1.12 (from cryptography)
Using cached https://mirrors.cloud.tencent.com/pypi/packages/68/ce/95b0bae7968c65473e1298efb042e10cafc7bafc14d9e4f154008241c91d/cffi-1.16.0.tar.gz (512 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/pycparser/
Collecting pycparser (from cffi>=1.12->cryptography)
Using cached https://mirrors.cloud.tencent.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (pyproject.toml): started
Building wheel for cffi (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

× Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libffi', required by 'virtual:world', not found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libffi', required by 'virtual:world', not found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found /tmp/pip-build-env-evimhgw6/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg`
!!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.
  
          This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.
  
          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************
  
  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-cpython-310
  creating build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/model.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/backend_ctypes.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/setuptools_ext.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/pkgconfig.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/vengine_cpy.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_imp_emulation.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/__init__.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/error.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/recompiler.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/cparser.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/vengine_gen.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/ffiplatform.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/api.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/cffi_opcode.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/verifier.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/lock.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/commontypes.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_cffi_include.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/parse_c_type.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_embedding.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_cffi_errors.h -> build/lib.linux-aarch64-cpython-310/cffi
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-aarch64-cpython-310
  creating build/temp.linux-aarch64-cpython-310/src
  creating build/temp.linux-aarch64-cpython-310/src/c
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-aarch64-cpython-310/src/c/_cffi_backend.o
  src/c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
     15 | #include <ffi.h>
        |          ^~~~~~~
  compilation terminated.
  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
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects

依赖安装失败,结束时间 2023-11-15 12:57:40,耗时 55 秒

其他依赖都能安装上,只有cryptography一直安装失败

@Night-stars-1
Copy link
Collaborator

.......
依赖安装失败,结束时间 2023-11-15 12:57:40,耗时 55 秒

其他依赖都能安装上,只有cryptography一直安装失败

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/pycparser/
Collecting pycparser (from cffi>=1.12->cryptography)

Read timed out

@klcb2010
Copy link

开始安装依赖 cryptography,开始时间 2023-11-15 12:56:45

Looking in indexes: https://pypi.doubanio.com/simple/ WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/cryptography/ Collecting cryptography Using cached https://mirrors.cloud.tencent.com/pypi/packages/05/40/ade6e708e6e90528dc50b215adce495fec49286f199bc11e4199b1666505/cryptography-41.0.5-cp37-abi3-musllinux_1_1_aarch64.whl (4.3 MB) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/cffi/ Collecting cffi>=1.12 (from cryptography) Using cached https://mirrors.cloud.tencent.com/pypi/packages/68/ce/95b0bae7968c65473e1298efb042e10cafc7bafc14d9e4f154008241c91d/cffi-1.16.0.tar.gz (512 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/pycparser/ Collecting pycparser (from cffi>=1.12->cryptography) Using cached https://mirrors.cloud.tencent.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

× Building wheel for cffi (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [73 lines of output] Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found /tmp/pip-build-env-evimhgw6/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg` !!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.
  
          This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.
  
          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************
  
  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-cpython-310
  creating build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/model.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/backend_ctypes.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/setuptools_ext.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/pkgconfig.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/vengine_cpy.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_imp_emulation.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/__init__.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/error.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/recompiler.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/cparser.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/vengine_gen.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/ffiplatform.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/api.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/cffi_opcode.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/verifier.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/lock.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/commontypes.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_cffi_include.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/parse_c_type.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_embedding.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_cffi_errors.h -> build/lib.linux-aarch64-cpython-310/cffi
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-aarch64-cpython-310
  creating build/temp.linux-aarch64-cpython-310/src
  creating build/temp.linux-aarch64-cpython-310/src/c
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-aarch64-cpython-310/src/c/_cffi_backend.o
  src/c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
     15 | #include <ffi.h>
        |          ^~~~~~~
  compilation terminated.
  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 ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects

依赖安装失败,结束时间 2023-11-15 12:57:40,耗时 55 秒

其他依赖都能安装上,只有cryptography一直安装失败

我也是 cryptography安装不上

@Pandaver
Copy link
Author

为啥要重构呢,脚本功能又不复杂,以前的代码一个功能一个方法简单明了改起来也快,而且社区也不可能突然加很多新的日常任务,没必要搞得太工程化了

@BA7JCM
Copy link
Contributor

BA7JCM commented Nov 15, 2023

青龙面板Debian版安装全部依赖都正常,可能是apline版的问题?

@BA7JCM
Copy link
Contributor

BA7JCM commented Nov 15, 2023

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-aarch64-cpython-310/src/c/_cffi_backend.o
src/c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.h>
| ^~~~~~~
compilation terminated.
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 ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects

依赖安装失败,结束时间 2023-11-15 12:57:40,耗时 55 秒

其他依赖都能安装上,只有cryptography一直安装失败

缺少头文件了,跟隔壁看起来一样,也试试同样的方法?

@BA7JCM
Copy link
Contributor

BA7JCM commented Nov 15, 2023

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-aarch64-cpython-310/src/c/_cffi_backend.o
error: command 'gcc' failed: No such file or directory
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Failed to build cffi
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects

 error: command 'gcc' failed: No such file or directory

你这个看起来是缺少gcc命令,装个看下?

@Night-stars-1 Night-stars-1 added good first issue Good for newcomers invalid This doesn't seem right and removed bug Something isn't working labels Nov 15, 2023
@lnterface
Copy link

开始安装依赖 cryptography,开始时间 2023-11-15 12:56:45
Looking in indexes: https://pypi.doubanio.com/simple/ WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/cryptography/ Collecting cryptography Using cached https://mirrors.cloud.tencent.com/pypi/packages/05/40/ade6e708e6e90528dc50b215adce495fec49286f199bc11e4199b1666505/cryptography-41.0.5-cp37-abi3-musllinux_1_1_aarch64.whl (4.3 MB) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/cffi/ Collecting cffi>=1.12 (from cryptography) Using cached https://mirrors.cloud.tencent.com/pypi/packages/68/ce/95b0bae7968c65473e1298efb042e10cafc7bafc14d9e4f154008241c91d/cffi-1.16.0.tar.gz (512 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Read timed out. (read timeout=15)")': /pypi/simple/pycparser/ Collecting pycparser (from cffi>=1.12->cryptography) Using cached https://mirrors.cloud.tencent.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
× Building wheel for cffi (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [73 lines of output] Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found /tmp/pip-build-env-evimhgw6/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg` !!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.
  
          This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.
  
          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************
  
  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-cpython-310
  creating build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/model.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/backend_ctypes.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/setuptools_ext.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/pkgconfig.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/vengine_cpy.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_imp_emulation.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/__init__.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/error.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/recompiler.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/cparser.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/vengine_gen.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/ffiplatform.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/api.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/cffi_opcode.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/verifier.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/lock.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/commontypes.py -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_cffi_include.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/parse_c_type.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_embedding.h -> build/lib.linux-aarch64-cpython-310/cffi
  copying src/cffi/_cffi_errors.h -> build/lib.linux-aarch64-cpython-310/cffi
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-aarch64-cpython-310
  creating build/temp.linux-aarch64-cpython-310/src
  creating build/temp.linux-aarch64-cpython-310/src/c
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-aarch64-cpython-310/src/c/_cffi_backend.o
  src/c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
     15 | #include <ffi.h>
        |          ^~~~~~~
  compilation terminated.
  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 ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
依赖安装失败,结束时间 2023-11-15 12:57:40,耗时 55 秒
其他依赖都能安装上,只有cryptography一直安装失败

我也是 cryptography安装不上

安装这几个依赖gcc g++ libffi-dev
apk add gcc g++ libffi-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

9 participants