#5963 mac m1电脑上的pyvideotrans,4.06一点开始执行就闪退,是什么原因

54.244* Posted at: 20 hours ago

mac m1电脑上的pyvideotrans,4.06一点开始执行就闪退,是什么原因

3 Replies

mac M1 上 pyVideoTrans 只能通过源码部署运行,闪退通常是因为运行环境不完整。请按以下顺序排查:

  1. 检查 FFmpeg 版本
    在终端执行 ffmpeg -version,确认版本号 ≥ 6。如果版本过低,执行:

    brew uninstall --ignore-dependencies ffmpeg
    brew tap homebrew-ffmpeg/ffmpeg
    brew install homebrew-ffmpeg/ffmpeg/ffmpeg
  2. 确认已安装必要的系统库

    brew install libsndfile git [email protected]
  3. 重新安装 Python 依赖
    在项目根目录(sp.py 所在目录)执行:

    uv sync

    如果网络慢可换国内镜像:

    uv sync --index https://mirrors.aliyun.com/pypi/simple/
  4. 查看闪退日志
    打开 logs/ 目录下最新的 .log 文件,复制最后 30 行报错信息,这能帮助定位具体原因。

如果以上步骤后问题依旧,请提供日志文件的最后部分(或截取报错内容),以便进一步分析。

请查阅相关文档:

× No solution found when resolving dependencies for split (markers:
│ python_full_version == '3.10.*' and platform_machine != 's390x' and
│ sys_platform == 'win32'):
╰─▶ Because alibabacloud-alimt20181012==1.1.0 depends on

  alibabacloud-tea-openapi>=0.3.6,=0.3.6,

这个错误是由于 alibabacloud-alimt20181012 这个包在 pyproject.toml 中被标记为仅在 Windows 下安装,而您的 Mac 环境触发了该依赖解析导致的。请按以下步骤尝试解决:

  1. 升级 uv 到最新版
    在终端执行:

    uv self update
  2. 重新执行依赖安装(跳过 Windows 专用组件)

    uv sync --no-build-isolation --no-default-groups

    或直接运行(忽略该警告):

    uv sync --index https://mirrors.aliyun.com/pypi/simple/
  3. 如果仍失败,手动安装核心依赖

    uv pip install -r requirements.txt   # 如果存在该文件

    或逐个安装缺失包。

如果上述步骤无法解决问题,请提供 pyproject.toml 文件内容以及完整的终端报错日志(至少显示最后 30 行),以便进一步分析。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Dondate via PayPal

Related resource