Skip to content

Commit bbee43c

Browse files
committed
fix DIl load failed while importing pydantic_core:
1 parent 3cc599c commit bbee43c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pywxdump/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Author: xaoyaoo
66
# Date: 2023/10/14
77
# -------------------------------------------------------------------------------
8-
__version__ = "3.1.26"
8+
__version__ = "3.1.27"
99

1010
import os, json
1111

tests/build_exe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def base64_to_image(base64_string, image_path):
151151
require_path = os.path.join(os.path.dirname(current_path), "requirements.txt") # requirements.txt 路径
152152
with open(require_path, "r", encoding="utf-8") as f:
153153
hidden_imports = f.read().splitlines()
154-
hidden_imports = [i.replace('-', '_').split("=")[0] for i in hidden_imports if
154+
hidden_imports = [i.replace('-', '_').split("=")[0].split("~")[0] for i in hidden_imports if
155155
i and i not in ["setuptools", "wheel"]] # 去掉setuptools、wheel
156-
hidden_imports += ["pywxdump", "pywxdump.db","pywxdump.db.__init__.utils"]
156+
hidden_imports += ["pywxdump", "pywxdump.db", "pywxdump.db.__init__.utils"]
157157

158158
# 获取 ui 文件夹下的所有文件 用于打包
159159
root_path = os.path.join(package_path, 'pywxdump')

0 commit comments

Comments
 (0)