[software development] 有没有人体验过系统ppocrlabel出现“xcb”错误的问题?
Tofloor
poster avatar
Mashiro
deepin
2024-11-12 18:37
Author

我尝试使用deepin v23 社区版安装运行 PPOCRLabel(https://github.com/PFCCLab/PPOCRLabel.git),发现无法运行,命令行提示


我安装的依赖列表如下

albucore==0.0.13
albumentations==1.4.10
annotated-types==0.7.0
anyio==4.6.2.post1
astor==0.8.1
beautifulsoup4==4.12.3
cachetools==5.5.0
certifi==2024.8.30
charset-normalizer==3.4.0
contourpy==1.3.0
cssselect==1.2.0
cssutils==2.11.1
cycler==0.12.1
Cython==3.0.11
decorator==5.1.1
et_xmlfile==2.0.0
exceptiongroup==1.2.2
fire==0.7.0
fonttools==4.54.1
h11==0.14.0
httpcore==1.0.6
httpx==0.27.2
idna==3.10
imageio==2.36.0
imgaug==0.4.0
joblib==1.4.2
kiwisolver==1.4.7
lazy_loader==0.4
lmdb==1.5.1
lxml==5.3.0
matplotlib==3.9.2
more-itertools==10.5.0
networkx==3.4.2
numpy==1.26.4
opencv-contrib-python==4.10.0.84
opencv-python==4.10.0.84
opencv-python-headless==4.10.0.84
openpyxl==3.1.5
opt-einsum==3.3.0
packaging==24.2
paddleocr==2.9.1
paddlepaddle==3.0.0b2
pandas==2.2.3
pillow==11.0.0
PPOCRLabel==2.1.11
premailer==3.10.0
protobuf==5.28.3
pyclipper==1.3.0.post6
pydantic==2.9.2
pydantic_core==2.23.4
pyparsing==3.2.0
PyQt5==5.15.11
PyQt5-Qt5==5.15.15
PyQt5_sip==12.15.0
python-dateutil==2.9.0.post0
python-docx==1.1.2
pytz==2024.2
PyYAML==6.0.2
RapidFuzz==3.10.1
requests==2.32.3
scikit-image==0.24.0
scikit-learn==1.5.2
scipy==1.14.1
shapely==2.0.6
six==1.16.0
sniffio==1.3.1
soupsieve==2.6
termcolor==2.5.0
threadpoolctl==3.5.0
tifffile==2024.9.20
tomli==2.1.0
tqdm==4.67.0
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3

我很想知道是不是系统的安装的C++库问题,还是我的依赖内容安装出现问题,导致的无法运行。如果能通过修改配置文件应该如何去做,太痛苦了,本菜鸟表示不服但是又拿它没办法,求诸位大佬解答一二。

Reply Favorite View the author
All Replies
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-11-12 22:47
#1
sudo apt-get install libxkbcommon-x11-0

看看你的 QT_QPA_PLATFORM_PLUGIN_PATH环境变量,echo一下,假如是空的话,那就在.bashrc里面加入包含 libqxcb.so的目录 ,可能是你的Python虚拟环境中的 .venv/lib/python3.10/site-packages/cv2/qt/plugins

Reply View the author
zccrs
deepin
2024-11-13 11:42
#2

你是直接下载的它的二进制还是源码编译的呀

Reply View the author
小鱼贝壳
deepin
2024-11-14 06:39
#3

没有过

Reply View the author