Traceback (most recent call last):
File "D:\Downloads\StarRailAssistant-main\Honkai_Star_Rail.py", line 23, in
from get_width import get_width
File "D:\Downloads\StarRailAssistant-main\get_width.py", line 13, in
from utils.config import sra_config_obj, normalize_file_path, CONFIG_FILE_NAME
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 386, in
load_all_config_data(SRAData)
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 248, in load_all_config_data
modify_json_file(CONFIG_FILE_NAME, lack_method, getattr(cls, lack_method))
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 97, in modify_json_file
return rewrite_json_file(file_path, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 112, in rewrite_json_file
with open(file_path, "wb") as f:
^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
预期行为
正常安装并且打开
实际行为
Traceback (most recent call last):
File "D:\Downloads\StarRailAssistant-main\Honkai_Star_Rail.py", line 23, in
from get_width import get_width
File "D:\Downloads\StarRailAssistant-main\get_width.py", line 13, in
from utils.config import sra_config_obj, normalize_file_path, CONFIG_FILE_NAME
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 386, in
load_all_config_data(SRAData)
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 248, in load_all_config_data
modify_json_file(CONFIG_FILE_NAME, lack_method, getattr(cls, lack_method))
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 97, in modify_json_file
return rewrite_json_file(file_path, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 112, in rewrite_json_file
with open(file_path, "wb") as f:
^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
问题描述
Traceback (most recent call last): File "D:\Downloads\StarRailAssistant-main\Honkai_Star_Rail.py", line 23, in
from get_width import get_width
File "D:\Downloads\StarRailAssistant-main\get_width.py", line 13, in
from utils.config import sra_config_obj, normalize_file_path, CONFIG_FILE_NAME
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 386, in
load_all_config_data(SRAData)
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 248, in load_all_config_data
modify_json_file(CONFIG_FILE_NAME, lack_method, getattr(cls, lack_method))
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 97, in modify_json_file
return rewrite_json_file(file_path, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 112, in rewrite_json_file
with open(file_path, "wb") as f:
^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
预期行为
正常安装并且打开
实际行为
Traceback (most recent call last): File "D:\Downloads\StarRailAssistant-main\Honkai_Star_Rail.py", line 23, in
from get_width import get_width
File "D:\Downloads\StarRailAssistant-main\get_width.py", line 13, in
from utils.config import sra_config_obj, normalize_file_path, CONFIG_FILE_NAME
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 386, in
load_all_config_data(SRAData)
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 248, in load_all_config_data
modify_json_file(CONFIG_FILE_NAME, lack_method, getattr(cls, lack_method))
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 97, in modify_json_file
return rewrite_json_file(file_path, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Downloads\StarRailAssistant-main\utils\config.py", line 112, in rewrite_json_file
with open(file_path, "wb") as f:
^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
截图或录屏
自动锄大地脚本版本
NA
星穹铁道区服
国服
运行的客户端
PC
日志
blank,问题在安装步骤