Relative Content

Tag Archive for pythonimportpyqt5python-importimporterror

python import PyQt5 working in debug, not in executable

I’m slowly getting confused because I can’t load a module from PyQt5. I create a script that starts a subprocess in which another script is executed. So that I only need one executable file, I load the script into the file with “pyinstaller –onefile –add-data=”.assetsscriptsscript2.py”. So that I have access to the modules from the first script, I pass the values ​​for “sys.path” as parameters to the second script. Unfortunately, this is not executed as expected, but gives me an error that the module cannot be found….