DoctorReid/StarRailOneDragon

[问题反馈]

Closed this issue · 3 comments

使用版本

2.5.1

问题描述

1.运行exe,报错Unhandle exception in script

游戏截图

Uploading Unhandle exception in script.txt…

运行日志

Failed to execute script 'app' due to unhandle exception:
name 'logger' is not defined
Traceback (most recent call last):
File "gui\app.py", line 10, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "gui\log_view.py", line 8, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "gui\sr_basic_view.py", line 4, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\context\context.py", line 12, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\app\assignments\assignments_run_record.py", line 6, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\mystools_init
.py", line 11, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\mystools\api_init
.py", line 1, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\mystools\api\game_sign_api.py", line 7, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\mystools\api\common.py", line 11, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\mystools\model_init
.py", line 2, in
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "sr\mystools\model\config.py", line 260, in
NameError: name 'logger' is not defined

你的建议

纯小白,求帮助

再运行应该就可以了吧

再运行应该就可以了吧

还真是,第一次用,大佬见笑了

老代码小问题多,后续重构了应该会好点