PySide6: 'Qt plugin directory '/plugins' does not exist!
-
I have been trying to figure out what to do here for a bit now. At first I thought it was PyInstaller, but I think it has to do with my installation of PySide6. I am running on Windows 10 on Python 3.9.13 on pip 23.0.1. I have tried uninstalling and reinstalling PySide6, PySide2, and PyQt5 and all of them return the same error. I have also ran the following code:
import PySide6 from PySide6 import QtCore app = QtCore.QCoreApplication([]) info = QtCore.QLibraryInfo() print("Package paths:", PySide6.__path__) print("Prefix path:", info.path(QtCore.QLibraryInfo.PrefixPath)) print("Binaries path:", info.path(QtCore.QLibraryInfo.BinariesPath)) print("Library executables path:", info.path(QtCore.QLibraryInfo.LibraryExecutablesPath)) print("Plugins path:", info.path(QtCore.QLibraryInfo.PluginsPath)) print("") # Check if PySide installed embedded qt.conf at run-time embedded_qt_conf = QtCore.QFile(":/qt/etc/qt.conf") if embedded_qt_conf.open(QtCore.QIODevice.ReadOnly): data = embedded_qt_conf.readAll() print("Embedded qt.conf data:", data) else: print("No embedded qt.conf available!")Output:
Package paths: ['c...\\venv\\lib\\site-packages\\PySide6'] Prefix path: Binaries path: /bin Library executables path: Plugins path: /plugins Embedded qt.conf data: b'[Paths]\nPrefix = .../venv/lib/site-packages/PySide6/.\nLibraryExecutables = .../venv/lib/site-packages/PySide6/.\n'As you can see, my prefix path is not showing up, but it is very much there. I tried to see if I can set the prefix path manually, but I was unable to find anything.