Skip to content

fix(ci): add missing bcrypt/PyJWT/paramiko hidden imports for web builds#52

Open
Po1nt9 wants to merge 1 commit into
icysaintdx:mainfrom
Po1nt9:main
Open

fix(ci): add missing bcrypt/PyJWT/paramiko hidden imports for web builds#52
Po1nt9 wants to merge 1 commit into
icysaintdx:mainfrom
Po1nt9:main

Conversation

@Po1nt9
Copy link
Copy Markdown

@Po1nt9 Po1nt9 commented May 26, 2026

问题

Web 构建的 exe 启动时报错:\ModuleNotFoundError: No module named 'bcrypt'\

原因是 \�uild.yml\ 中 Web 版 PyInstaller 打包时缺少 --hidden-import bcrypt\ 和 --hidden-import jwt\,且 pip 安装依赖时也未安装 \�crypt\ 和 \PyJWT\。

修复

  1. pip install 添加 \�crypt\、\PyJWT\、\paramiko\
  2. PyInstaller 命令添加 --hidden-import bcrypt\、--hidden-import jwt\、--hidden-import paramiko\
  3. 同步修复了 macOS 和 Linux 的 Web 构建

适用于 \�uild-web-windows\、\�uild-web-macos\、\�uild-web-linux\ 三个 Job。

…uilds

The web builds (Windows/macOS/Linux) were missing bcrypt, PyJWT, and
paramiko as hidden imports and pip dependencies, causing the packaged
executables to fail at startup with ModuleNotFoundError for bcrypt.

Also added bcrypt, PyJWT, and paramiko to pip install step so they are
available for PyInstaller to collect. Fixed urllib3 not being found by
adding requests to pip install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant