infstellar / genshin_impact_assistant

原神小助手 Genshin Assistant (CN/EN) | 自动战斗,秘境,领日常,半自动委托
GNU Affero General Public License v3.0
2.74k stars 222 forks source link

bug #102

Open mxtilx opened 1 year ago

mxtilx commented 1 year ago

source.task.task_manager:start_stop_task:104 - 任务MissionTask启动。 2023-08-17 18:12:26.075 | INFO | source.mission.mission_manager:loop:33 - Mission MissionCrystalfly Start. 2023-08-17 18:12:26.349 | INFO | source.api.pdocr_api::4 - 正在创建OCR对象 2023-08-17 18:12:27.055 | CRITICAL | source.api.pdocr_api::14 - 导入paddleocr时错误; err code: 001 2023-08-17 18:12:27.344 | ERROR | source.api.pdocr_api::15 - FastDeploy initalized failed! Error: DLL load failed: A dynamic link library (DLL) initialization routine failed. Traceback (most recent call last):

File "E:\anconda3\envs\gs\lib\site-packages\fastdeploy\c_lib_wrap.py", line 164, in from .libs.fastdeploy_main import *

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "E:\anconda3\envs\gs\lib\threading.py", line 890, in _bootstrap self._bootstrap_inner() │ └ <function Thread._bootstrap_inner at 0x0000022CD34AE0D8> └ <MissionManager(Thread-11, started daemon 1636)>

File "E:\anconda3\envs\gs\lib\threading.py", line 926, in _bootstrap_inner self.run() │ └ <function BaseThreading.run at 0x0000022CD9869798> └ <MissionManager(Thread-11, started daemon 1636)>

File "E:\genshin_impact_assistant\source\common\base_threading.py", line 170, in run self.loop() │ └ <function MissionManager.loop at 0x0000022CEB7FF948> └ <MissionManager(Thread-11, started daemon 1636)>

File "E:\genshin_impact_assistant\source\mission\mission_manager.py", line 34, in loop self.exec_mission(mission_name) │ │ └ 'MissionCrystalfly' │ └ <function MissionManager.exec_mission at 0x0000022CEB7FF798> └ <MissionManager(Thread-11, started daemon 1636)>

File "E:\genshin_impact_assistant\source\mission\mission_manager.py", line 19, in exec_mission mission = missions.mission_index.get_mission_object(mission_name) │ │ │ └ 'MissionCrystalfly' │ │ └ <function get_mission_object at 0x0000022CEB7FF3A8> │ └ <module 'missions.mission_index' from 'E:\genshin_impact_assistant\missions\mission_index.py'> └ <module 'missions' (namespace)>

File "E:\genshin_impact_assistant\missions\mission_index.py", line 22, in get_mission_object import missions.MissionCrystalfly

File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed

File "E:\genshin_impact_assistant\missions\MissionCrystalfly.py", line 1, in from source.mission.mission_template import MissionExecutor

File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed

File "E:\genshin_impact_assistant\source\mission\mission_template.py", line 1, in from source.teyvat_move import teyvat_move_flow_upgrade

File "", line 1035, in _handle_fromlist File "", line 219, in _call_with_frames_removed File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed

File "E:\genshin_impact_assistant\source\teyvat_move\teyvat_move_flow_upgrade.py", line 5, in from source.pickup.pickup_operator import PickupOperator

File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed

File "E:\genshin_impact_assistant\source\pickup\pickup_operator.py", line 6, in from source.api.pdocr_complete import ocr

File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed

File "E:\genshin_impact_assistant\source\api\pdocr_complete.py", line 1, in from source.api.pdocr_api import PaddleOcrFastDeploy

File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed

File "E:\genshin_impact_assistant\source\api\pdocr_api.py", line 12, in import fastdeploy

File "E:\anconda3\envs\gs\lib\site-packages\fastdeploy__init__.py", line 122, in from .c_lib_wrap import (

File "E:\anconda3\envs\gs\lib\site-packages\fastdeploy\c_lib_wrap.py", line 166, in raise RuntimeError(f"FastDeploy initalized failed! Error: {e}")

RuntimeError: FastDeploy initalized failed! Error: DLL load failed: A dynamic link library (DLL) initialization routine failed.

infstellar commented 1 year ago

缺DLL

mxtilx commented 1 year ago

缺DLL

具体如何修复

infstellar commented 1 year ago

看起来你是从源码运行的 没遇到过这个问题,你搜一下看看把

可能的方案