Skip to content

Commit

Permalink
fix DIl load failed while importing pydantic_core:
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Aug 20, 2024
1 parent 3cc599c commit bbee43c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pywxdump/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Author: xaoyaoo
# Date: 2023/10/14
# -------------------------------------------------------------------------------
__version__ = "3.1.26"
__version__ = "3.1.27"

import os, json

Expand Down
4 changes: 2 additions & 2 deletions tests/build_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit bbee43c

Please sign in to comment.