NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

PySide2 installation

Hi,

I have to run a python script using signal/slot of QT (this script communicate with a labview vi)

I have installed https://repo.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux_x86_64.sh to have a python installation.

Then I tried to install PySide2: pip install PySide2

here all is ok

but when I run a python script using PySide2 as import I get:

"Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/admin/miniconda3/bin/platforms" ... Cannot load library /home/admin/miniconda3/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/home/admin/miniconda3/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/admin/miniconda3/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)" qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem." error.

It seems libqxcb.so try to use libxcb-iccc.so.4... "

Can someone help me how I can solve my problem ?

Maybe I need libxcb-iccc.so.4 ? If yes, how to get it ? which command  opkg ?

 

uname -a : Linux NI-cRIO-9040-01D92C83 4.14.87-rt49-cg-7.1.0f0-x64-41 #1 SMP PREEMPT RT Mon Jun 3 21:14:56 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux 

 

Thanks a lot

Jerome

0 Kudos
Message 1 of 1
(919 Views)