EthanH3514 / AL_Yolo

👺 基于Yolov5的Apex Legend游戏 AI 辅瞄外挂
Apache License 2.0
291 stars 50 forks source link

启动失败:DLL load failed while importing dxshot: 找不到指定的模块。 #8

Closed Jackle910 closed 11 months ago

Jackle910 commented 1 year ago

Traceback (most recent call last): File "E:\codespace\AL_Yolo\apex.py", line 2, in from detect import YOLOv5Detector File "E:\codespace\AL_Yolo\detect.py", line 11, in from Capture import LoadScreen File "E:\codespace\AL_Yolo\Capture.py", line 1, in import dxshot ImportError: DLL load failed while importing dxshot: 找不到指定的模块。 dxshot模块在哪呢?

EthanH3514 commented 1 year ago

dxshot在 AL_Yolo\dxshot.pyd 中,请检查 dxshot.pyd 是否在工作目录下

如果 dxshot.pyd 在工作目录下仍然报错,请尝试将 Capturer.py 中前面的import部分改写成下面这样:

import pyautogui
from utils.augmentations import letterbox
import numpy as np
import time
import sys
import os

ROOT = os.getcwd()
sys.path.append(os.path.join(ROOT, "dxshot.pyd"))

import dxshot
loadingfd commented 1 year ago

还有注意python版本

Junjun7 commented 1 year ago

然而并不行,所以哥,你的pyd里面有dxshot吗,要不开源下嘛

EthanH3514 commented 1 year ago

然而并不行,所以哥,你的pyd里面有dxshot吗,要不开源下嘛

dxshot 就是 ./dxshot.pyd ,在主目录下