Closed psobolewskiPhD closed 1 year ago
I just had a thought @psobolewskiPhD, is there an older conda-forge build which has this class/module available? If so, maybe we can track this down to a specific build/PR in this feedstock that may be missing some build step.
@djhoese Good thought. I forgot to mention it here, but for arm64 macOS:
Executing the query pyside2
conda-forge/osx-arm64 @ 1.7MB/s 2.4s
conda-forge/noarch @ 2.9MB/s 3.8s
Name Version Build Channel
───────────────────────────────────────────────────────
pyside2 5.15.6 py310h1ceb87a_0 conda-forge/osx-arm64
pyside2 5.15.6 py310h1ceb87a_1 conda-forge/osx-arm64
pyside2 5.15.6 py310h1ceb87a_2 conda-forge/osx-arm64
pyside2 5.15.6 py310hbfa27b9_3 conda-forge/osx-arm64
pyside2 5.15.6 py38h431e55d_3 conda-forge/osx-arm64
pyside2 5.15.6 py38h9ecd3b8_0 conda-forge/osx-arm64
pyside2 5.15.6 py38h9ecd3b8_1 conda-forge/osx-arm64
pyside2 5.15.6 py38h9ecd3b8_2 conda-forge/osx-arm64
pyside2 5.15.6 py39h0adaba8_3 conda-forge/osx-arm64
pyside2 5.15.6 py39hf5e3978_0 conda-forge/osx-arm64
pyside2 5.15.6 py39hf5e3978_1 conda-forge/osx-arm64
pyside2 5.15.6 py39hf5e3978_2 conda-forge/osx-arm64
pyside2 5.15.5 py310h5219f08_1 conda-forge/osx-arm64
pyside2 5.15.5 py38h465b20c_1 conda-forge/osx-arm64
pyside2 5.15.5 py39h46bc059_1 conda-forge/osx-arm64
I did check 5.15.5, python 3.9:
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 17:00:33)
[Clang 13.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide2.QtWidgets import QOpenGLWidget
>>> hasattr(QOpenGLWidget, "defaultFramebufferObject")
False
So same. Will update the OP.
@djhoese, just keeping you in the loop. We found out that this is not a conda-forge specific issue. The builds at homebrew also reproduce the error. See https://github.com/napari/packaging/issues/35#issuecomment-1307204473.
should be fixed by #175, please test once merged and published
Wow! 🙏 ❤️
Solution to issue cannot be found in the documentation.
Issue
PySide2 macOS arm64 binary (tested 5.15.6, 5.15.5, on python 3.9 and python 3.10) appears to have a problem in the QOpenGLWidget. Specifically:
This results in errors when using vispy and napari on arm64 with the PySide2 backend, see: https://github.com/vispy/vispy/issues/2406 https://github.com/napari/napari/issues/5231
Meanwhile, using x86 binary via rosetta:
(this has been tested on linux (https://github.com/vispy/vispy/issues/2406#issuecomment-1282934307) and Intel Mac (https://github.com/napari/napari/issues/5231#issuecomment-1284445442) in both cases
True
is the output.)To reproduce on arm64 macOS 12.6 using miniforge3:
Then in the python REPL:
This should print
True
but will printFalse
on arm64.Installed packages
Environment info