#2069 AttributeError: 'NoneType' object has no attribute 'isRunning'

2602:ffe4* Posted at: 15 hours ago 👁21

Traceback (most recent call last):
File "/Users/monkeyin/projects/pyvideotrans/videotrans/mainwin/_main_win.py", line 741, in closeEvent

self.cleanup_and_accept()

File "/Users/monkeyin/projects/pyvideotrans/videotrans/mainwin/_main_win.py", line 787, in cleanup_and_accept

if hasattr(self, 'uuid_signal') and self.uuid_signal.isRunning():

AttributeError: 'NoneType' object has no attribute 'isRunning'


=
system:macOS-26.1-arm64-arm-64bit
version:v3.90
frozen:False
language:zh
root_dir:/Users/monkeyin/projects/pyvideotrans
Python: 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)]

1 Replies

这是一个软件在关闭时出现的内部错误,不影响核心的翻译功能。错误原因是程序在清理资源时,某个信号对象(uuid_signal)未被正确初始化。

解决方法:

  1. 临时方案:直接忽略此错误,点击“确定”或“关闭”按钮即可。软件的主要功能(翻译、配音等)不受影响。
  2. 根本解决:此问题需要开发者修复代码。您可以:

    • 在项目的 GitHub Issues 页面(https://github.com/jianchang512/pyvideotrans/issues)提交此错误报告,附上您提供的完整错误日志。
    • 或者,等待后续版本更新。

由于您使用的是源码版(frozen:False),也可以尝试更新到最新的 main 分支代码,看是否已修复:

cd /Users/monkeyin/projects/pyvideotrans
git pull origin main
uv sync
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.

Donate: https://ko-fi.com/jianchang512

Trending Questions