![pipenv install pyqt5 pipenv install pyqt5](https://3.bp.blogspot.com/-UI7oqC6nzew/Xk1aYpVt1uI/AAAAAAAAao0/ev1RrlSw5ZIQdO_wFA2Pc5GD79puC7RegCLcBGAsYHQ/s1600/pyqtchart_tutorial.png)
$ ldd /path/to/venv/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.soĪnd lo-and behold: libxcb-xinerama.so.0 => not found I decide to use the ldd command to parse the shared library dependencies. The important error here is libxcb-xinerama.so.0: cannot open shared object file: No such file or directory Ĭannot load library /path/to/venv/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory) QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms". "IID": ".QPA.QPlatformIntegrationFactoryInterface.5.3", I try running my application again and here is the specific error I get in the linker QFactoryLoader::QFactoryLoader() looking at "/path/to/venv/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so"įound metadata in lib /path/to/venv/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so, metadata=
![pipenv install pyqt5 pipenv install pyqt5](https://inotgo.com/imagesLocal/202012/05/20201204225418131r_0.jpg)
I exported the environment variable for debugging export QT_DEBUG_PLUGINS=1 Reinstalling the application may fix this problem.Īvailable platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb. This application failed to start because no Qt platform plugin could be initialized. When I build a sample application I receive the error: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/path/to/venv/lib/python3.8/site-packages/PyQt5/Qt/plugins" even though it was found. I am notified of a successful installation and PyQt5 and PyQt5-Sip shows up in my pip list I then activated the venv and installed pyqt5 $ source bin/activate # create my environment in my working directory
![pipenv install pyqt5 pipenv install pyqt5](https://pythonpyqt.com/images/pyqt-widget.png)
AppRun use_host_x : true AppImage : update-information : 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.I am setting up a python3 virtual environment for my development, so I am staying away from the package manager apt-install $ python3 -m venv. AppRun use_host_x : true ubuntu : image : appimagecrafters/tests-env:ubuntu-xenial command. AppRun use_host_x : true centos : image : appimagecrafters/tests-env:centos-7 command. AppRun use_host_x : true arch : image : appimagecrafters/tests-env:archlinux-latest command. AppRun use_host_x : true debian : image : appimagecrafters/tests-env:debian-stable command. Use to forward CLI parameters exec_args : "$APPDIR/usr/src/main.py apt : arch : amd64 sources : - sourceline : 'deb bionic main restricted universe multiverse' key_url : '' include : - python3 - python3-pkg-resources - python3-pyqt5 exclude : runtime : env : # Set python home # See PYTHONHOME : '$/usr/lib/python3.6/site-packages' test : fedora : image : appimagecrafters/tests-env:fedora-30 command. AppDir app_info : id : -appimage-example name : python appimage hello world icon : utilities-terminal version : 0.1.0 # Set the python executable as entry point exec : usr/bin/python3 # Set the application main script path as argument.
#Pipenv install pyqt5 code#
Version : 1 script : # Remove any previous build - rm -rf AppDir | true # Make usr and icons dirs - mkdir -p AppDir/usr/src # Copy the python application code into the AppDir - cp main.py AppDir/usr/src -r # Install application dependencies - python3 -m pip install -system -ignore-installed -prefix=/usr -root=AppDir -r.