Apple Silicon
-
The pyside2 code cannot run on Apple Silicon, the process exists, but no window will pop up.!
alt text
Code Like This:
import sys
from PyQt5.QtWidgets import QApplication, QWidget
if name == 'main':
app = QApplication(sys.argv)
w = QWidget()
w.setWindowTitle('Test')
w.show()
sys.exit(app.exec_()) -
@JerryMazeyu Your link is broken.
Do you see any errors/warnings when starting from a terminal?
Also, you are talking about PySide, but in the code you posted you're using PyQt. -
Both pyside and pyqt have the same result.
When I run this code on latest MAC, this icon pop up but I cannot see any QT window. And my code does not report errors.
I dont know why.
-
@JerryMazeyu Please start your app from a terminal and check there whether there are any errors/warnings.
-
@JerryMazeyu Is your python native ARM build or x86?
-
This Python virtual environment is migrated from x86 Macbook.
-
@JerryMazeyu But is the Python interpreter ARM or x86 build?
-
@JerryMazeyu You should check the Qt libs from PySide/PyQt you're using: whether those are also x86 (most probably they are).
-
-
@JerryMazeyu Yes, so that is not the issue. You can try to run your script through the Python debugger.
-
Well, I fix this bug... The problem seems to be in anaconda. I migrate my anaconda from old x86 MacBook. When I try to change the interpreter to my real system environment /usr/loacl/bin/python3.7, it works. Thx a lot!@jsulm