Skip to content

更新时安装av==10.0.0依赖失败 #1511

@YadongZheng

Description

@YadongZheng

在提问之前...

  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经阅读了文档中的 常见问题(FAQ)
  • 这个问题出现了至少三次,不是偶发的
  • 我使用 OAS 的 dev 分支

描述你的问题

手动更新时出现av==10.0.0依赖失败,导致更新失败

如何复现

  1. 设置git Repository为 “https://github.com/LmeSzinc/AzurLaneAutoScript”
  2. 双击oas.exe

预期行为

No response

相关 Logs

E:\OnmyojiAutoScript-easy-install
./toolkit/Lib/site-packages/requests/sessions.py trust_env already patched
./toolkit/Lib/site-packages/pip/_vendor/requests/sessions.py trust_env already patched
./toolkit/Lib/site-packages/uiautomator2/init.py minicap_urls no need to patch
./toolkit/Lib/site-packages/uiautomator2/init.py appdir already patched
./toolkit/Lib/site-packages/adbutils/mixin.py apkutils2 patched
==================== SHOW DEPLOY CONFIG ====================
Branch: dev
PypiMirror: https://mirrors.aliyun.com/pypi/simple
WebuiPort: 22288
Language: zh-CN
KeepLocalChanges: False
Rest of the configs are the same as default
+---------------------------------------------------+
|                    UPDATE ALAS                    |
+---------------------------------------------------+
==================== GIT INIT ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" init
Reinitialized existing Git repository in E:/OnmyojiAutoScript-easy-install/.git/
[ success ]
==================== SET GIT PROXY ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" config --local --unset http.proxy
[ allowed failure ], error_code: 5
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" config --local --unset https.proxy
[ allowed failure ], error_code: 5
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" config --local http.sslVerify true
[ success ]
==================== SET GIT REPOSITORY ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" remote set-url origin https://github.com/LmeSzinc/AzurLaneAutoScript
[ success ]
==================== FETCH REPOSITORY BRANCH ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" fetch origin dev
From https://github.com/LmeSzinc/AzurLaneAutoScript
 * branch                dev        -> FETCH_HEAD
[ success ]
==================== PULL REPOSITORY BRANCH ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" reset --hard origin/dev
HEAD is now at 9e58a9d8d Upd: [EN] asset EVENT_20201126_ENTRANCE_TEMP (#5630)
[ success ]
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" pull --ff-only origin dev
From https://github.com/LmeSzinc/AzurLaneAutoScript
 * branch                dev        -> FETCH_HEAD
Already up to date.
[ success ]
==================== SHOW VERSION ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/Git/mingw64/bin/git.exe" --no-pager log --no-merges -1
commit 9e58a9d8d4b19d18b8f40315dab2cb5edaa33dd6 (HEAD -> master, origin/dev)
Author: ArecaSapling <115386623+sui-feng-cb@users.noreply.github.com>
Date:   Fri Apr 24 23:58:11 2026 +0800

    Upd: [EN] asset EVENT_20201126_ENTRANCE_TEMP (#5630)
[ success ]
+----------------------------------------------------------+
|                    KILL EXISTING ALAS                    |
+----------------------------------------------------------+
==================== KILL ALAS.EXE ====================
==================== KILL PYTHON.EXE ====================
+-----------------------------------------------------------+
|                    UPDATE DEPENDENCIES                    |
+-----------------------------------------------------------+
Dependencies to install: {deprecated==1.2.13, idna==2.6, rich==11.2, cycler==0.10, msgpack==1.0.3, py==1.10, cffi==1.15, anyio==1.3.1, user-agents==2.2, starlette==0.14.2, aiofiles==0.7, zope.interface==5.4, wrapt==1.13.1, pyparsing==2.4.7, graphviz==0.8.4, retrying==1.3.3, click==8.0.1, httptools==0.4, pypresence==4.2.1, watchgod==0.7, asgiref==3.4.1, h11==0.12, pillow==8.3.2, pyyaml==5.4.1, opencv-python==4.5.3.56, urllib3==1.22, tornado==6.1, kiwisolver==1.3.2, zope.event==4.5, async-generator==1.10, pyelftools==0.27, numpy==1.16.6, greenlet==1.1.2, commonmark==0.9.1, python-dateutil==2.8.2, pygments==2.12, pydantic==1.10.2, gevent==21.12, sniffio==1.2, zipp==3.6, prettytable==2.2.1, websockets==10, tqdm==4.62.3, requests==2.18.4, wcwidth==0.2.5, matplotlib==3.4.3, lxml==4.6.3, portalocker==2.3.2, python-dotenv==0.19, filelock==3.3, pywin32==301, xmltodict==0.12, jellyfish==0.11.2, importlib-metadata==4.8.1, ua-parser==0.10, cnocr==1.2.2, typing-extensions==4.3, onepush==1.4, certifi==2021.5.30, scipy==1.4.1, gluoncv==0.6, alas-webapp==0.3.7, uvicorn==0.17.6, av==10.0, mxnet==1.6, lz4==3.1.3, colorama==0.4.5, pycryptodome==3.9.9, future==0.18.2, chardet==3.0.4, pywebio==1.6.2, psutil==5.9.3, imageio==2.27, decorator==5.1, pyzmq==22.3}
==================== CHECK PYTHON ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/python.exe" --version
Python 3.10.11
[ success ]
==================== UPDATE DEPENDENCIES ====================
"E:/OnmyojiAutoScript-easy-install/toolkit/python.exe" -m pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple --disable-pip-version-check
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: adbutils==0.11.0 in e:\onmyojiautoscript-easy-install\toolkit\lib\site-packages (from -r requirements.txt (line 8)) (0.11.0)
Collecting aiofiles==0.7.0 (from -r requirements.txt (line 9))
  Downloading https://mirrors.aliyun.com/pypi/packages/e7/61/007ac6f27fe1c2dc44d3a62f429a8440de1601428b4d0291eae1a3494d1f/aiofiles-0.7.0-py3-none-any.whl (13 kB)
Collecting alas-webapp==0.3.7 (from -r requirements.txt (line 10))
  Downloading https://mirrors.aliyun.com/pypi/packages/c1/45/9ff5de9d2c13a7668fb63ab2bab544a576611d3b0c4c202e495889b0bbf6/alas_webapp-0.3.7.0-py3-none-any.whl (5.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 18.0 MB/s eta 0:00:00
Collecting anyio==1.3.1 (from -r requirements.txt (line 11))
  Downloading https://mirrors.aliyun.com/pypi/packages/ab/c2/17b5c64a1a92c5dbd7ab3fd24c4db4332aa78ebe132e54136d1bc5eb1bd5/anyio-1.3.1-py3-none-any.whl (35 kB)
Requirement already satisfied: apkutils2==1.0.0 in e:\onmyojiautoscript-easy-install\toolkit\lib\site-packages (from -r requirements.txt (line 12)) (1.0.0)
Collecting asgiref==3.4.1 (from -r requirements.txt (line 13))
  Downloading https://mirrors.aliyun.com/pypi/packages/fe/66/577f32b54c50dcd8dec38447258e82ed327ecb86820d67ae7b3dea784f13/asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting async-generator==1.10 (from -r requirements.txt (line 14))
  Downloading https://mirrors.aliyun.com/pypi/packages/71/52/39d20e03abd0ac9159c162ec24b93fbcaa111e8400308f2465432495ca2b/async_generator-1.10-py3-none-any.whl (18 kB)
Collecting av==10.0.0 (from -r requirements.txt (line 15))
  Using cached https://mirrors.aliyun.com/pypi/packages/09/45/eb750ba15c44e8106f58a22e6789f5ddbe5584d9dcb4e755b08d47ed6261/av-10.0.0.tar.gz (2.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [70 lines of output]
      Compiling av\buffer.pyx because it changed.
      [1/1] Cythonizing av\buffer.pyx
      Compiling av\bytesource.pyx because it changed.
      [1/1] Cythonizing av\bytesource.pyx
      Compiling av\descriptor.pyx because it changed.
      [1/1] Cythonizing av\descriptor.pyx
      Compiling av\dictionary.pyx because it changed.
      [1/1] Cythonizing av\dictionary.pyx
      warning: av\enum.pyx:321:4: __nonzero__ was removed in Python 3; use __bool__ instead
      Compiling av\enum.pyx because it changed.
      [1/1] Cythonizing av\enum.pyx
      Compiling av\error.pyx because it changed.
      [1/1] Cythonizing av\error.pyx
      Compiling av\format.pyx because it changed.
      [1/1] Cythonizing av\format.pyx
      Compiling av\frame.pyx because it changed.
      [1/1] Cythonizing av\frame.pyx
      performance hint: av\logging.pyx:232:0: Exception check on 'log_callback' will always require the GIL to be acquired.
      Possible solutions:
          1. Declare 'log_callback' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
          2. Use an 'int' return type on 'log_callback' to allow an error code to be returned.

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      cdef const char *log_context_name(void *ptr) nogil:
          cdef log_context *obj = <log_context*>ptr
          return obj.name

      cdef lib.AVClass log_class
      log_class.item_name = log_context_name
                            ^
      ------------------------------------------------------------
      av\logging.pyx:216:22: Cannot assign type 'const char *(void *) except? NULL nogil' to 'const char *(*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'log_context_name'.

      Error compiling Cython file:
      ------------------------------------------------------------
      ...

      # Start the magic!
      # We allow the user to fully disable the logging system as it will not play
      # nicely with subinterpreters due to FFmpeg-created threads.
      if os.environ.get('PYAV_LOGGING') != 'off':
          lib.av_log_set_callback(log_callback)
                                  ^
      ------------------------------------------------------------
      av\logging.pyx:351:28: Cannot assign type 'void (void *, int, const char *, va_list) except * nogil' to 'av_log_callback' (alias of 'void (*)(void *, int, const char *, va_list) noexcept nogil'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'log_callback'.
      Compiling av\logging.pyx because it changed.
      [1/1] Cythonizing av\logging.pyx
      Traceback (most recent call last):
        File "E:\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "E:\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "E:\OnmyojiAutoScript-easy-install\toolkit\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\24463\AppData\Local\Temp\pip-build-env-yg5zi8_i\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\24463\AppData\Local\Temp\pip-build-env-yg5zi8_i\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
          self.run_setup()
        File "C:\Users\24463\AppData\Local\Temp\pip-build-env-yg5zi8_i\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\24463\AppData\Local\Temp\pip-build-env-yg5zi8_i\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
          exec(code, locals())
        File "<string>", line 157, in <module>
        File "C:\Users\24463\AppData\Local\Temp\pip-build-env-yg5zi8_i\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1153, in cythonize
          cythonize_one(*args)
        File "C:\Users\24463\AppData\Local\Temp\pip-build-env-yg5zi8_i\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1297, in cythonize_one
          raise CompileError(None, pyx_file)
      Cython.Compiler.Errors.CompileError: av\logging.pyx
      [end of output]

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

× Getting requirements to build wheel 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.
[ failure ], error_code: 1
+-----------------------------------------------------+
|                    UPDATE FAILED                    |
+-----------------------------------------------------+
==================== SHOW DEPLOY CONFIG ====================
Branch: dev
PypiMirror: https://mirrors.aliyun.com/pypi/simple
WebuiPort: 22288
Language: zh-CN
KeepLocalChanges: False
Rest of the configs are the same as default

Last command: "E:/OnmyojiAutoScript-easy-install/toolkit/python.exe" -m pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple --disable-pip-version-check
Please check your deploy settings in config/deploy.yaml and re-open Alas.exe
Take the screenshot of entire window if you need help

截图

No response

还有别的吗?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions