From bbee43cc9f93526ff6620cc643d6c49a9c549fc3 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Tue, 20 Aug 2024 17:38:10 +0800 Subject: [PATCH] fix DIl load failed while importing pydantic_core: --- pywxdump/__init__.py | 2 +- tests/build_exe.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pywxdump/__init__.py b/pywxdump/__init__.py index 66fa8e45..d763d669 100644 --- a/pywxdump/__init__.py +++ b/pywxdump/__init__.py @@ -5,7 +5,7 @@ # Author: xaoyaoo # Date: 2023/10/14 # ------------------------------------------------------------------------------- -__version__ = "3.1.26" +__version__ = "3.1.27" import os, json diff --git a/tests/build_exe.py b/tests/build_exe.py index ed6680be..209fc42d 100644 --- a/tests/build_exe.py +++ b/tests/build_exe.py @@ -151,9 +151,9 @@ def base64_to_image(base64_string, image_path): require_path = os.path.join(os.path.dirname(current_path), "requirements.txt") # requirements.txt 路径 with open(require_path, "r", encoding="utf-8") as f: hidden_imports = f.read().splitlines() - hidden_imports = [i.replace('-', '_').split("=")[0] for i in hidden_imports if + hidden_imports = [i.replace('-', '_').split("=")[0].split("~")[0] for i in hidden_imports if i and i not in ["setuptools", "wheel"]] # 去掉setuptools、wheel - hidden_imports += ["pywxdump", "pywxdump.db","pywxdump.db.__init__.utils"] + hidden_imports += ["pywxdump", "pywxdump.db", "pywxdump.db.__init__.utils"] # 获取 ui 文件夹下的所有文件 用于打包 root_path = os.path.join(package_path, 'pywxdump')