- Add wxauto package with WeChat UI automation and message handling capabilities - Implement job_extractor.py for automated job posting extraction from WeChat groups - Add job_extractor_gui.py providing graphical interface for job extraction tool - Create comprehensive documentation in Chinese covering GUI usage, multi-group support, and quick start guides - Add build configuration files (build_exe.py, build_exe.spec) for packaging as standalone executable - Include utility scripts for WeChat interaction (auto_send_msg.py, get_history.py, receive_file_transfer.py) - Add project configuration files (pyproject.toml, setup.cfg, requirements.txt) - Include test files (test_api.py, test_com_fix.py) for API and compatibility validation - Add Apache 2.0 LICENSE and comprehensive README documentation - Configure .gitignore to exclude build artifacts, logs, and temporary files
97 lines
3.3 KiB
Plaintext
97 lines
3.3 KiB
Plaintext
╔════════════════════════════════════════════════════════════╗
|
||
║ 微信岗位提取工具 - COM错误快速修复指南 ║
|
||
╚════════════════════════════════════════════════════════════╝
|
||
|
||
【问题】
|
||
打包后的exe运行时报错:
|
||
[WinError -2147221008] 尚未调用 CoInitialize。
|
||
|
||
【原因】
|
||
wxauto使用Windows COM组件,在多线程环境需要初始化。
|
||
|
||
【解决方案 - 三选一】
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
方案1:一键修复(推荐)⭐
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
双击运行:修复并重新打包.bat
|
||
|
||
脚本会自动:
|
||
✓ 安装pywin32
|
||
✓ 清理旧文件
|
||
✓ 重新打包
|
||
✓ 生成新的exe
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
方案2:使用启动工具
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
1. 双击:启动工具.bat
|
||
2. 选择:[6] 安装/更新依赖
|
||
3. 等待安装完成
|
||
4. 选择:[5] 打包成 EXE 文件
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
方案3:手动修复
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
打开命令行,依次执行:
|
||
|
||
1. 安装依赖
|
||
pip install pywin32
|
||
|
||
2. 验证修复
|
||
python test_com_fix.py
|
||
|
||
3. 重新打包
|
||
pyinstaller build_exe.spec
|
||
|
||
4. 测试运行
|
||
dist\微信岗位提取工具.exe
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
【验证步骤】
|
||
|
||
1. 确保微信3.9已登录
|
||
2. 运行打包后的exe
|
||
3. 配置目标群组和API密钥
|
||
4. 点击"开始任务"
|
||
5. 查看是否能正常连接微信
|
||
|
||
如果能正常连接,说明修复成功!✓
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
【仍有问题?】
|
||
|
||
1. 查看详细文档:
|
||
- 打包问题修复说明.md
|
||
- GUI版本使用说明.md
|
||
|
||
2. 检查环境:
|
||
- Python版本:3.9+
|
||
- 微信版本:3.9.x
|
||
- 系统:Windows 10/11
|
||
|
||
3. 常见问题:
|
||
- 杀毒软件拦截 → 添加白名单
|
||
- 权限不足 → 以管理员运行
|
||
- 缺少DLL → 安装VC++ Redistributable
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
【不想打包?】
|
||
|
||
直接运行Python版本:
|
||
python job_extractor_gui.py
|
||
|
||
或使用启动工具:
|
||
双击:启动工具.bat → 选择 [1]
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
更新时间:2026-02-11
|
||
版本:v1.0
|