-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Exception: Qt plugin directory '/plugins' does not exist! - PySide6 #7463
Comments
What is the output if you run the following snippet in your environment? import PySide2
from PySide2 import QtCore
app = QtCore.QCoreApplication([])
info = QtCore.QLibraryInfo()
print("Package paths:", PySide2.__path__)
print("Prefix path:", info.location(QtCore.QLibraryInfo.PrefixPath))
print("Binaries path:", info.location(QtCore.QLibraryInfo.BinariesPath))
print("Plugins path:", info.location(QtCore.QLibraryInfo.PluginsPath)) |
Here's my output:
|
FYI, I decided to change my project to PySide6 just to upgrade in the meantime. I have adjusted your code snippet:
And here's the output:
|
This looks like paths being incorrectly reported by your PySide installation... How did you install |
I just used pip3 install pyside6 |
Hmm, how about this? 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!") Is your PySide using embedded For the reference, the expected output when embedded
|
Here's the output:
|
I'm running out of ideas, then, and cannot reproduce this - based on the above outputs I'd say that this is either a bug in PySide or an issue in your environment. Is there anything special about the part of the path that you are not showing us (the Do you get proper paths by the above snippet if you create a new virtual environment somewhere on the primary hard drive? |
Yeah, I'm not sure what's happening. The I decided to truly use my local C: drive and it works. So something weird is going on there that I don't understand. I'll close the forum, but unfortunately could never find a true answer. |
PyInstaller version 5.8.0
Python version 3.9.13
Platform: Windows (NA)
Installed python through python.org/downloads
I have not tried this on another platform.
I have uninstalled/reinstalled PySide6 6.4.2 and PyInstaller and have used the PyInstaller developer package.
I'm not much of a developer and saw that people were editing the ~\venv\Lib\site-packages\Pyinstaller\utils\hooks\Qt.py, but I can't seem to find that file anywhere? I also noticed that this person had a very similar problem, but their issue was a character encoding problem. I noticed that their path was an actual full path however. Here, my path is just '/plugins' and nothing else. I tried sifting through the stacktrace, but I can't make anything of it. The path also very much exists here ...\venv\Lib\site-pacakges\PySide6\plugins
Stacktrace / full error message
The text was updated successfully, but these errors were encountered: