8000 [Report]→出现了意外错误,ocr← · Issue #112 · QPT-Family/QPT · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Report]→出现了意外错误,ocr← #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Devourgod opened this issue Mar 11, 2025 · 1 comment
Open

[Report]→出现了意外错误,ocr← #112

Devourgod opened this issue Mar 11, 2025 · 1 comment
Assignees
Labels

Comments

@Devourgod
Copy link

QPT版本

1.0b8

操作系统版本

Windows 11

核心信息填写

复现步骤/报错截图

步骤描述

你好,在打包有关ocr的代码,打包过程中出错

【如报错则必须提供】Requirements文件内容

尚未生成
↑建议在此处粘贴完整Requirements(Python第三方依赖)列表信息↑

  albucore==0.0.23
albumentations==2.0.5
altgraph==0.17.4
annotated-types==0.7.0
anyio==4.8.0
astor==0.8.1
beautifulsoup4==4.13.3
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
colorama==0.4.6
Cython==3.0.12
decorator==5.2.1
fire==0.7.0
fonttools==4.56.0
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
idna==3.10
imageio==2.37.0
keyboard==0.13.5
lazy_loader==0.4
lmdb==1.6.2
lxml==5.3.1
MouseInfo==0.1.3
networkx==3.4.2
numpy==2.2.3
opencv-contrib-python==4.11.0.86
opencv-python==4.11.0.86
opencv-python-headless==4.11.0.86
opt-einsum==3.3.0
packaging==24.2
paddleocr==2.10.0
paddlepaddle==2.6.2
pefile==2023.2.7
pillow==11.1.0
protobuf==3.20.2
PyAutoGUI==0.9.54
pyclipper==1.3.0.post6
pydantic==2.10.6
pydantic_core==2.27.2
PyGetWindow==0.0.9
pyinstaller-hooks-contrib==2025.1
PyMsgBox==1.0.9
pyperclip==1.9.0
PyRect==0.2.0
PyScreeze==1.0.1
python-docx==1.1.2
pytweening==1.2.0
pywin32-ctypes==0.2.3
PyYAML==6.0.2
QPT==1.0b8
QPT-SDK==1.0.1
RapidFuzz==3.12.2
requests==2.32.3
scikit-image==0.25.2
scipy==1.15.2
shapely==2.0.7
simsimd==6.2.1
sniffio==1.3.1
soupsieve==2.6
stringzilla==3.12.3
termcolor==2.5.0
tifffile==2025.2.18
toml==0.10.2
tqdm==4.67.1
typing_extensions==4.12.2
urllib3==2.3.0
wget==3.2

## 【如报错则必须提供】完整打包日志   

(myenv) C:\Users\Administrator\Desktop\qiangka>python qpt2exe.py
→[2025-03-11 18:33:38,962] [DEBUG] | �[35m操作系统类型:Windows�[0m
→[2025-03-11 18:33:38,962] [DEBUG] | �[35m操作系统位数:AMD64�[0m
C:\Users\Administrator\Desktop\qiangka\myenv\Lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
→[2025-03-11 18:33:38,966] [WARNING] | �[33mC:\Users\ADMINI~1\AppData\Local\Temp\QPT_Cache_V/1.0b8中 ~ 字符会可能影响使用。�[0m
→[2025-03-11 18:33:38,966] [WARNING] | �[33m当前系统的用户名中包含中文/空格等可能会对程序造成异常的字符,现已默认QPT临时目录为C:/q_tmp�[0m
→[2025-03-11 18:33:39,100] [WARNING] | �[33mQPT 1.0b5版本中有较大更新,且仅对Win10 1809以上版本进行验证,低于该版本的操作系统可能存在无法运行问题。�[0m
→[2025-03-11 18:33:39,115] [DEBUG] | �[35mSHELL: chcp 65001�[0m
→[2025-03-11 18:33:39,171] [DEBUG] | Windows PowerShell
→[2025-03-11 18:33:39,171] [DEBUG] | Copyright (C) Microsoft Corporation. All rights reserved.
→[2025-03-11 18:33:39,172] [DEBUG] | Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
→[2025-03-11 18:33:39,265] [DEBUG] | PS C:\Users\Administrator\Desktop\qiangka> chcp 65001 ; echo "---QPT OUTPUT STATUS CODE---" $?
→[2025-03-11 18:33:39,280] [DEBUG] | �[35mActive code page: 65001�[0m
→[2025-03-11 18:33:39,311] [DEBUG] | 终端命令执行成功!
→[2025-03-11 18:33:39,312] [DEBUG] | 正在连接PIPTerminal
→[2025-03-11 18:33:39,330] [DEBUG] | 已设置PIP跨版本编译模式,目标解释器路径为:./out\Release\Python\python.exe
→[2025-03-11 18:33:39,330] [WARNING] | 检测到pyvenv.cfg,推测出C:\Users\Administrator\Desktop\qiangka\myenv为Python虚拟环境主目录,在打包时会忽略该目录
→[2025-03-11 18:33:39,461] [INFO] | 当前解释器版本为Python311,正在向QPT查询是否存在合适的Python镜像...
→[2025-03-11 18:33:39,462] [INFO] | [Auto]正在分析C:\Users\Administrator\Desktop\qiangka下的依赖情况...
→[2025-03-11 18:33:39,471] [WARNING] | annotated-types包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,474] [WARNING] | beautifulsoup4包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,477] [WARNING] | click包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,479] [WARNING] | colorama包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,486] [WARNING] | httpcore包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,487] [WARNING] | httpx包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,488] [WARNING] | idna包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,499] [WARNING] | numpy包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,504] [WARNING] | packaging包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,513] [WARNING] | pydantic包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,515] [WARNING] | pydantic_core包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,526] [WARNING] | RapidFuzz包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,529] [WARNING] | scikit-image包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,535] [WARNING] | scipy包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,545] [WARNING] | soupsieve包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,549] [WARNING] | termcolor包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,556] [WARNING] | typing_extensions包top_level.txt缺失,可能无法正常搜索到相关依赖
→[2025-03-11 18:33:39,557] [WARNING] | urllib3包top_level.txt缺失,可能无法正常搜索到相关依赖
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\qiangka\qpt2exe.py", line 4, in
module = CEM(work_dir="./", # [项目文件夹]待打包的目录,并且该目录下需要有↓下方提到的py文件
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\qiangka\myenv\Lib\site-packages\qpt\executor.py", line 179, in init
auto_dependency_module = AutoRequirementsPackage(path=self.work_dir,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\qiangka\myenv\Lib\site-packages\qpt\modules\auto_requirements.py", line 47, in init
requirements = QPT_MEMORY.pip_tool.analyze_dependence(path,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\qiangka\myenv\Lib\site-packages\qpt\kernel\qinterpreter.py", line 228, in analyze_dependence
requires, dep, ignore_requires = intelligent_analysis(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\qiangka\myenv\Lib\site-packages\qpt\kernel\qcode.py", line 68, in intelligent_analysis
dep = search_dep()
^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\qiangka\myenv\Lib\site-packages\qpt\kernel\qpackage.py", line 98, in search_dep
dep = pkg.requires()
^^^^^^^^^^^^^^
TypeError: 'list' object is not callable

  

  
## 其他信息
Copy link

Hi,开发者朋友,鉴于您是首次在QPT下新增Issue,请务必参考给定的Issue模板进行Issue的新增。
虽然形如版本号、打包日志等信息可能对你并不重要,但如未提供则可能会严重拖慢Issue的解决效率,因为他们对于QPT的维护者而言非常重要!
如您未按Issue模板进行内容补充,可关闭此Issue或Edit该Issue,社区维护者会对低效Issue直接Close,请悉知!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0