前提・実現したいこと
PySide2を用いたコードを実行した際に以下のエラーメッセージが発生してしまいます.
発生している問題・エラーメッセージ
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: cocoa, minimal, offscreen.
該当のソースコード
KazuoASANO/make_gui_in_python_with_qt: 「PythonでGUIをつくろう∼はじめてのQt for Python∼」のサンプルコード
こちらの
https://github.com/KazuoASANO/make_gui_in_python_with_qt/blob/master/chapter5/section1/HelloWorldUiFormWithPython/helloworld.py
のコードをそのまま実行しました.
試したこと
- Qtの再インストール
- PySide2の再インストール
補足情報(FW/ツールのバージョンなど)
- macOS Mojave 10.14.2
- Python 3.6.8
- Qt 5.12.1
- PySide2 5.12.1
あなたの回答
tips
プレビュー