Pyinstaller cannot find PySide2 plugin directories












0















I'm making a program with python3.6



I used Tkinter for GUI



when I run pyinstaller, it shows me an error message : "Exception: Cannot find PySide2 plugin directories"



`Traceback (most recent call last):
File "<string>", line 2, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 49, in <module>
_setupQtDirectories()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 21, in _setupQtDirectories
import shiboken2
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesshiboken2__init__.py", line 4, in <module>
from .shiboken2 import *
ImportError: DLL load failed: 지정된 프로시저를 찾을 수 없습니다.
Traceback (most recent call last):
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32Scriptspyinstaller-script.py", line 13, in <module>
load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 784, in build
exec(text, spec_namespace)
File "<string>", line 17, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 241, in __init__
self.__postinit__()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingdatastruct.py", line 158, in __postinit__
self.assemble()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 500, in assemble
module_hook.post_graph()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 410, in post_graph
self._load_hook_module()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 377, in _load_hook_module
self.hook_module_name, self.hook_filename)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallercompat.py", line 736, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 823, in load_module
File "<frozen importlib._bootstrap_external>", line 682, in load_module
File "<frozen importlib._bootstrap>", line 251, in _load_module_shim
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerhookshook-PySide2.QtCore.py", line 12, in <module>
binaries = qt_plugins_binaries('codecs', namespace='PySide2')
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 132, in qt_plugins_binaries
pdir = qt_plugins_dir(namespace=namespace)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 106, in qt_plugins_dir
raise Exception('Cannot find {0} plugin directories'.format(namespace))
Exception: Cannot find PySide2 plugin directories`


I didn't use pyside2 but why pyinstaller finds pyside2 direcotry?



or are pyside2 and tkinter same?



what should I do?



where can I find pyside2 plugin direcotry?










share|improve this question























  • recommendation: create a virtualenv and just install the necessary packages + pyinstaller, and use that python to generate your executable so you will avoid unnecessary elements being linked as in this case and your executable will be less heavy

    – eyllanesc
    Jan 2 at 5:11
















0















I'm making a program with python3.6



I used Tkinter for GUI



when I run pyinstaller, it shows me an error message : "Exception: Cannot find PySide2 plugin directories"



`Traceback (most recent call last):
File "<string>", line 2, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 49, in <module>
_setupQtDirectories()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 21, in _setupQtDirectories
import shiboken2
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesshiboken2__init__.py", line 4, in <module>
from .shiboken2 import *
ImportError: DLL load failed: 지정된 프로시저를 찾을 수 없습니다.
Traceback (most recent call last):
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32Scriptspyinstaller-script.py", line 13, in <module>
load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 784, in build
exec(text, spec_namespace)
File "<string>", line 17, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 241, in __init__
self.__postinit__()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingdatastruct.py", line 158, in __postinit__
self.assemble()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 500, in assemble
module_hook.post_graph()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 410, in post_graph
self._load_hook_module()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 377, in _load_hook_module
self.hook_module_name, self.hook_filename)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallercompat.py", line 736, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 823, in load_module
File "<frozen importlib._bootstrap_external>", line 682, in load_module
File "<frozen importlib._bootstrap>", line 251, in _load_module_shim
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerhookshook-PySide2.QtCore.py", line 12, in <module>
binaries = qt_plugins_binaries('codecs', namespace='PySide2')
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 132, in qt_plugins_binaries
pdir = qt_plugins_dir(namespace=namespace)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 106, in qt_plugins_dir
raise Exception('Cannot find {0} plugin directories'.format(namespace))
Exception: Cannot find PySide2 plugin directories`


I didn't use pyside2 but why pyinstaller finds pyside2 direcotry?



or are pyside2 and tkinter same?



what should I do?



where can I find pyside2 plugin direcotry?










share|improve this question























  • recommendation: create a virtualenv and just install the necessary packages + pyinstaller, and use that python to generate your executable so you will avoid unnecessary elements being linked as in this case and your executable will be less heavy

    – eyllanesc
    Jan 2 at 5:11














0












0








0








I'm making a program with python3.6



I used Tkinter for GUI



when I run pyinstaller, it shows me an error message : "Exception: Cannot find PySide2 plugin directories"



`Traceback (most recent call last):
File "<string>", line 2, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 49, in <module>
_setupQtDirectories()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 21, in _setupQtDirectories
import shiboken2
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesshiboken2__init__.py", line 4, in <module>
from .shiboken2 import *
ImportError: DLL load failed: 지정된 프로시저를 찾을 수 없습니다.
Traceback (most recent call last):
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32Scriptspyinstaller-script.py", line 13, in <module>
load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 784, in build
exec(text, spec_namespace)
File "<string>", line 17, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 241, in __init__
self.__postinit__()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingdatastruct.py", line 158, in __postinit__
self.assemble()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 500, in assemble
module_hook.post_graph()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 410, in post_graph
self._load_hook_module()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 377, in _load_hook_module
self.hook_module_name, self.hook_filename)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallercompat.py", line 736, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 823, in load_module
File "<frozen importlib._bootstrap_external>", line 682, in load_module
File "<frozen importlib._bootstrap>", line 251, in _load_module_shim
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerhookshook-PySide2.QtCore.py", line 12, in <module>
binaries = qt_plugins_binaries('codecs', namespace='PySide2')
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 132, in qt_plugins_binaries
pdir = qt_plugins_dir(namespace=namespace)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 106, in qt_plugins_dir
raise Exception('Cannot find {0} plugin directories'.format(namespace))
Exception: Cannot find PySide2 plugin directories`


I didn't use pyside2 but why pyinstaller finds pyside2 direcotry?



or are pyside2 and tkinter same?



what should I do?



where can I find pyside2 plugin direcotry?










share|improve this question














I'm making a program with python3.6



I used Tkinter for GUI



when I run pyinstaller, it shows me an error message : "Exception: Cannot find PySide2 plugin directories"



`Traceback (most recent call last):
File "<string>", line 2, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 49, in <module>
_setupQtDirectories()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPySide2__init__.py", line 21, in _setupQtDirectories
import shiboken2
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesshiboken2__init__.py", line 4, in <module>
from .shiboken2 import *
ImportError: DLL load failed: 지정된 프로시저를 찾을 수 없습니다.
Traceback (most recent call last):
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32Scriptspyinstaller-script.py", line 13, in <module>
load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstaller__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 784, in build
exec(text, spec_namespace)
File "<string>", line 17, in <module>
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 241, in __init__
self.__postinit__()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingdatastruct.py", line 158, in __postinit__
self.assemble()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingbuild_main.py", line 500, in assemble
module_hook.post_graph()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 410, in post_graph
self._load_hook_module()
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerbuildingimphook.py", line 377, in _load_hook_module
self.hook_module_name, self.hook_filename)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallercompat.py", line 736, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 823, in load_module
File "<frozen importlib._bootstrap_external>", line 682, in load_module
File "<frozen importlib._bootstrap>", line 251, in _load_module_shim
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerhookshook-PySide2.QtCore.py", line 12, in <module>
binaries = qt_plugins_binaries('codecs', namespace='PySide2')
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 132, in qt_plugins_binaries
pdir = qt_plugins_dir(namespace=namespace)
File "C:Users엄민식AppDataLocalProgramsPythonPython36-32libsite-packagesPyInstallerutilshooksqt.py", line 106, in qt_plugins_dir
raise Exception('Cannot find {0} plugin directories'.format(namespace))
Exception: Cannot find PySide2 plugin directories`


I didn't use pyside2 but why pyinstaller finds pyside2 direcotry?



or are pyside2 and tkinter same?



what should I do?



where can I find pyside2 plugin direcotry?







python python-3.x tkinter pyside pyinstaller






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 4:55









MINSIKMINSIK

243




243













  • recommendation: create a virtualenv and just install the necessary packages + pyinstaller, and use that python to generate your executable so you will avoid unnecessary elements being linked as in this case and your executable will be less heavy

    – eyllanesc
    Jan 2 at 5:11



















  • recommendation: create a virtualenv and just install the necessary packages + pyinstaller, and use that python to generate your executable so you will avoid unnecessary elements being linked as in this case and your executable will be less heavy

    – eyllanesc
    Jan 2 at 5:11

















recommendation: create a virtualenv and just install the necessary packages + pyinstaller, and use that python to generate your executable so you will avoid unnecessary elements being linked as in this case and your executable will be less heavy

– eyllanesc
Jan 2 at 5:11





recommendation: create a virtualenv and just install the necessary packages + pyinstaller, and use that python to generate your executable so you will avoid unnecessary elements being linked as in this case and your executable will be less heavy

– eyllanesc
Jan 2 at 5:11












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001388%2fpyinstaller-cannot-find-pyside2-plugin-directories%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001388%2fpyinstaller-cannot-find-pyside2-plugin-directories%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

A Topological Invariant for $pi_3(U(n))$