Skip to content
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

[Report]→初次运行程序安装依赖时没有安装opencv-contrib-python依赖← #62

Closed
LFeightyFour opened this issue May 7, 2022 · 3 comments
Assignees
Labels

Comments

@LFeightyFour
Copy link

QPT版本

1.0b3.dev7

操作系统版本

Windows 10

CPU型号

Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz 3.60 GHz

核心信息填写

复现步骤/报错截图

步骤描述

在qpt2exe.py运行中以及debug程序运行时均没有报错,但实际功能却和我在pycharm中直接运行时有差别,经过排查,我发现是opencv-ctrib-python依赖没有被安装,在auto模式下自动生成的依赖文件中是有这一条的

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

↓建议在此处粘贴完整Requirements(Python第三方依赖)列表信息↓  
  
# Here is the list of packages automatically derived by QPT
# you can ignore the dependent packages in the main package and only care about the main package
# For example, you need to install paddlepaddle and pillow, because paddlepaddle relies on pillow, so you only need to install paddlepaddle.
# ---------------------------------------------------------------------
# QPT Home:        https://github.com/GT-ZhangAcer/QPT
# ---------------------------------------------------------------------
# 
# -------------Mainly depends on package analysis results--------------

qpt==1.0b3.dev7
paddleocr==2.4.0.4
geojson==2.5.0
paddlepaddle-gpu==2.2.2.post111
visualdl==2.2.3
scikit-learn==1.0.2
pyqt5==5.15.6
imgaug==0.4.0
pre-commit==2.18.1
bce-python-sdk==0.8.64

# ----------------------Ignored dependent packages---------------------

# ----------------------Ignored sub dependent packages---------------------

# -----Dependencies of qpt
#pillow
#wget
#pefile
#ttkbootstrap==0.5.1
#click

# -----Dependencies of paddleocr
#opencv-contrib-python==4.4.0.46
#scikit-image
#cython
#imgaug==0.4.0
#pyclipper
#lxml
#numpy
#lmdb
#python-levenshtein
#premailer
#openpyxl
#visualdl
#shapely
#tqdm

# -----Dependencies of paddlepaddle-gpu
#astor
#protobuf>=3.1.0
#pillow
#six
#requests>=2.20.0
#decorator
#numpy<=1.19.3,>=1.13

# -----Dependencies of visualdl
#pre-commit
#bce-python-sdk
#requests
#matplotlib
#numpy
#pillow>=7.0.0
#flake8>=3.7.9
#six>=1.14.0
#flask-babel>=1.0.0
#shellcheck-py
#flask>=1.1.1
#protobuf>=3.11.0
#pandas

# -----Dependencies of scikit-learn
#numpy>=1.14.6
#scipy>=1.1.0
#threadpoolctl>=2.0.0
#joblib>=0.11

# -----Dependencies of pyqt5
#pyqt5-sip<13,>=12.8
#pyqt5-qt5>=5.15.2

# -----Dependencies of imgaug
#matplotlib
#imageio
#pillow
#opencv-python
#numpy>=1.15
#six
#scikit-image>=0.14.2
#shapely
#scipy

# -----Dependencies of pre-commit
#cfgv>=2.0.0
#pyyaml>=5.1
#toml
#nodeenv>=0.11.1
#identify>=1.0.0
#virtualenv>=20.0.8

# -----Dependencies of bce-python-sdk
#future>=0.6.0
#six>=1.4.0
#pycryptodome>=3.8.0
  
↑建议在此处粘贴完整Requirements(Python第三方依赖)列表信息↑  

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

↓建议在此处粘贴完整日志↓  
  
↑建议在此处粘贴完整日志↑  

完整运行日志(如打包时已报错,此处可选)

↓建议在此处粘贴完整日志↓  
  
↑建议在此处粘贴完整日志↑  

其他信息

@GT-ZhangAcer
Copy link
Member

请给出日志

@GT-ZhangAcer
Copy link
Member

PaddleOCR这个,内置了SubModule,但只适配了旧版本,可以在requirements手动取消对应包的注释,下个版本会修复这一临时方案

@GT-ZhangAcer
Copy link
Member

最新版本已修复 https://github.com/QPT-Family/QPT/releases/tag/V1.0b3

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