Cz_freeze exe, cannot find pyarmor runtime generated module

  Kiến thức lập trình

So i got this setup for cx_freeze

import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
    "packages": ["os", "sys", "hashlib", "json", "time", "logging", "subprocess", "traceback", "paramiko", "psutil", "PyQt5", "ctypes"],
    "include_files": ['dist/pyarmor_runtime_000000'],
    "excludes": []
}

base = None
if sys.platform == "win32":
    base = "Win32GUI"  # Use "Win32GUI" to hide the console window

# Define the executable
executables = [
    Executable("dist/patcher-source.py", base=base, target_name="Awakening2-Patcher.exe", icon='patcher-icon.ico')
]

setup(
    name="Awakening2-Patcher",
    version="1.0",
    description="Auto Patcher for Awakening2",
    options={"build_exe": build_exe_options},
    executables=executables
)

It raises module not found pyarmor_runtime_000000 not found, even if the dir is literally there in the same location as the exe

LEAVE A COMMENT