Hack4S3cur1ty

pydivert와 pyinstaller오류 해결 본문

TIPS

pydivert와 pyinstaller오류 해결

h4ck4s3cur1ty 2020. 8. 25. 16:53

pydivert와 pyinstaller를 같이 사용했을 때 DLL을 못찾는 오류가 발생한다.

C:\Python27\Lib\site-packages\pydivert\windivert_dll\__init__.py 35번째줄을

if platform.architecture()[0] == "64bit":
    DLL_PATH = "WinDivert64.dll"
    #DLL_PATH = os.path.join(here, "WinDivert64.dll")
else:
    DLL_PATH = "WinDivert32.dll"
    #DLL_PATH = os.path.join(here, "WinDivert32.dll")

이렇게 수정해주면 된다.

pyinstaller로 나온 exe파일과 함께 dll파일들을 넣어주면 된다.

Comments