Closed yzimmermann closed 2 months ago
Sorry I did not see the description. You are right. I will have a. check if the type hinting is the only thing that causes the issue after which I will remove that type hint.
I usually run it with Python 3.10.
It should be
>= 3.8, <3.11
. I usually run it with Python 3.10. Have you had issues with a particular version?
See above. I accidentally posted too early.
Yeah I saw it haha I updated my original comment.
I changed the requirements for now.
Yeah, so adding from __future__ import annotations
in the relevant files is sufficient to make it run in 3.8.
I would also like to note that the UI would first not open on my Apple silicon machine (with Rosetta to make PySide2 work on arm), which seems to be a common issue.
Adding
import os os.environ['QT_MAC_WANTS_LAYER'] = '1'
in metis.py
fixed the issue for me.
That works as well, although I just removed the numpy type and "upgraded" tuple
to Tuple
Yeah, I saw the ARM issue as well, which is only true for PySide2 versions 15.5.1 and 15.5.2. I am adding a statement that checks whether metis is running on a MacOS and uses the PySide2 versions in question
See #5 The updated code should be robust to Macs with PySide2 5.15.2.1
However the issue seems to be with Python3.8 + Mac Silicon + PySide2 5.15.2.1
Looks good!
According to
pyproject.toml
, metis should work with Python 3.8, but it seems like you need 3.9 at least: