![]() I got the same error messages when I run the same script via Python's debug executable directly: python_d test.py, while python test.py works fine, just like my main program in release build. It seems that Python cannot import shiboken2 with debug library (python38_d.lib). The error is from a line: from PySide2.QtWidgets import QApplication, QPushButton, QMessageBox, QDialog ModuleNotFoundError: No module named 'shiboken2.shiboken2' 585 opened on Feb 4 by PuffyRainbowCloud. On MacOS Ventura Error: 'Failed to recognize file format' when attempting to play any YouTube video bug / problem macOS. Error messages: PySide2/_init_.py: Unable to import shiboken2 from E:\workspace\qide\qide\src\app\exp\py, C:\dev\Python\Python38\python38_d.zip, C:\dev\Python\Python38\DLLs, C:\dev\Python\Python38\lib, C:\dev\Python\Python38, C:\dev\Python\Python38\lib\site-packagesįrom PySide2.QtWidgets import QApplication, QPushButton, QMessageBox, QDialogįile "C:\dev\Python\Python38\lib\site-packages\PySide2\_init_.py", line 107, in įile "C:\dev\Python\Python38\lib\site-packages\PySide2\_init_.py", line 58, in _setupQtDirectoriesįile "C:\dev\Python\Python38\lib\site-packages\shiboken2\_init_.py", line 27, in Syncplay-1.7.0-Setup.exe false positives on virustotal bug / problem. It works fine when the main program is built in release mode (link with python38.lib), but cannot work in debug build (link with python38_d.lib), because PyRun_SimpleFile failed. The main program links with the Python lib and use PyRun_SimpleFile to execute a Python script file, which are about some Qt PySide2 stuff. ![]() I'm trying to embedding PySide2 into a C program. ![]()
0 Comments
Leave a Reply. |