MoneyPrinterTurbo icon indicating copy to clipboard operation
MoneyPrinterTurbo copied to clipboard

Uncaught app exception(TypeError: 'NoneType' object is not iterable)

Open liuyanfeng-githug opened this issue 1 month ago • 1 comments

是否已存在类似问题?

  • [X] 我已搜索现有问题

当前行为

大佬我这前几天还能运行很好有数据正常输出今天就报错了。烦劳大佬帮看下啥情况

2025-01-07 18:34:36 | INFO | "./app/services/task.py:128": get_video_materials preprocess local materials 2025-01-07 18:34:36.636 Uncaught app exception Traceback (most recent call last): File "/Users/anaconda3/envs/MoneyPrinterTurbo/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() ^^^^^^ File "/Users/anaconda3/envs/MoneyPrinterTurbo/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "/Users/moneyprinter/webui/Main.py", line 804, in result = tm.start(task_id=task_id, params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/moneyprinter/app/services/task.py", line 283, in start downloaded_videos = get_video_materials( ^^^^^^^^^^^^^^^^^^^^ File "/Users/moneyprinter/app/services/task.py", line 129, in get_video_materials materials = video.preprocess_video( ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/moneyprinter/app/services/video.py", line 334, in preprocess_video for material in materials: TypeError: 'NoneType' object is not iterable

预期行为

继续执行按照文案创建视频

重现步骤

输入标题千问自动创建文案报这个错。然后我不用千问生成文案直接粘贴文案也报这个错

堆栈追踪/日志

2025-01-07 18:34:36 | INFO | "./app/services/task.py:128": get_video_materials -

preprocess local materials

2025-01-07 18:34:36.636 Uncaught app exception Traceback (most recent call last): File "/Users/anaconda3/envs/MoneyPrinterTurbo/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() ^^^^^^ File "/Users/anaconda3/envs/MoneyPrinterTurbo/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "/Users/moneyprinter/webui/Main.py", line 804, in result = tm.start(task_id=task_id, params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/moneyprinter/app/services/task.py", line 283, in start downloaded_videos = get_video_materials( ^^^^^^^^^^^^^^^^^^^^ File "/Users/moneyprinter/app/services/task.py", line 129, in get_video_materials materials = video.preprocess_video( ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/moneyprinter/app/services/video.py", line 334, in preprocess_video for material in materials: TypeError: 'NoneType' object is not iterable

Python 版本

3.11

操作系统

macOS

MoneyPrinterTurbo 版本

v1.2.1

其他信息

No response

liuyanfeng-githug avatar Jan 07 '25 11:01 liuyanfeng-githug