-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with pyside2 backend on macOS arm64 #2406
Comments
Do we know if this is specific to MacOS? Specific to ARM64 macs? Specific to the version of Qt that PySide 2 is using? |
As far as I can tell that method should exist in PySide2: |
Sorry I don't have access to any other machine at the moment. It could be all of those. Edit: on the napari side, Andy tested with macOS 12.6 but x86 and no issues: |
I ran the pyside2 example: https://github.com/pyside/pyside2-setup/blob/5.15/examples/widgets/widgets/tetrix.py Edit: OpenGL example also works, after installing pyopengl |
I could be missing something but I don't see pyside2 wheels for non-intel macs here: https://pypi.org/project/PySide2/#files I'm surprised it installed at all. |
pyside2 is built for arm64 macOS on conda-forge:
I hit the issue when napari installed from conda-forge pulled pyside2 backend instead of pyqt5. |
Ah sorry, I thought you were making a point between PyPI pyside2 and conda-forge pyside2. I misread that you were running a pysides2-only (no vispy) example. |
Looks like that pyside2 opengl example is using the old GL API by using the vispy/vispy/app/backends/_qt.py Line 130 in 8bf4f9e
|
@Czaki is helping with some testing in the napari issue thread:
Here's what I get with pyside2
vs Here's my regular pyqt env:
|
This is pyside2 (probably feedstock) problem. Here Linux pyside2 output.
|
What version of pyside2 and installed from where? |
here output from conda env:
here env: Details
|
Ok, so generally the same. 🤷♂️ |
Also it is mentioned in pyside2 docs: so it looks like a bug in the build process. |
FYI: I made a python 3.10 env, which has a different build number for pyside2 and get the same error. |
Update: it's not a conda-forge specific issue. |
Update2: it's been reported up-stream by Julien Schueller |
conda-forge/pyside2-feedstock#175 |
Originally I noted this with
napari
, see: napari/napari#5231But it seems to be a vispy issue, because if you install:
mamba create --name test-env3 python=3.9 pyside2 vispy
then examples fail, for example https://vispy.org/gallery/scene/turntable_box.html#sphx-glr-gallery-scene-turntable-box-py
Error:
AttributeError: 'CanvasBackendDesktop' object has no attribute 'defaultFramebufferObject'
Env details:
pyside2 5.15.6 py39hf5e3978_2 conda-forge
vispy 0.11.0 py39h04ce77e_0 conda-forge
note that
mamba create --name test-env3 python=3.9 pyqt vispy
works fine with
vispy 0.11.0 py39h04ce77e_0 conda-forge
The text was updated successfully, but these errors were encountered: