Skip to content

BUG: Big Sur compat #8525

Closed
Closed

Description

@larsoner

More of an FYI than anything else -- PyQt5 appears not to work on Big Sur. I've tried 5.12 and 5.15.1, and both basically hang as soon as you make a mayavi, PyVista, or matplotlib Qt5Agg window.

So those thinking about upgrading, don't do so if you want to be able to use Python. For matplotlib at least we can use the MacOSX backend in the meantime, but 3D plotting is now (hopefully temporarily) totally broken for people who have upgraded. :(

Or maybe I'm the only one with this issue. If someone else upgrades, feel free to try it out and let me know!

Activity

  1. larsoner commented on Nov 14, 2020

    @larsoner
    MemberAuthor

    Closing because there isn't really anything for us to do. But we can keep any discussion about this here as things progress

  2. cbrnr commented on Nov 14, 2020

    @cbrnr
    Contributor

    Thanks for the heads up. I think this time I will upgrade as late as possible (this is the first time I haven't upgraded on day 1, and just like the new CPUs the macOS update doesn't really hype me).

  3. christianbrodbeck commented on Nov 22, 2020

    @christianbrodbeck
    Member

    os.environ['QT_MAC_WANTS_LAYER'] = '1' (stackoverflow) at least gets the GUIs to open, will do some more testing.

  4. cbrnr commented on Nov 28, 2020

    @cbrnr
    Contributor

    I've done the upgrade and of course things don't work. Workaround for now: manually download the .whl files, change 10_9 to 11_0 and install with pip.
    numpy/numpy#17784
    scipy/scipy#13102
    matplotlib
    Pillow
    PyQt5
    PyQt5-sip
    It seems like most packages on PyPI are incompatible with Big Sur, just because they have the wrong version number. Renaming works. Reopening because I'm expecting others will also run into these issues.
    Edit: This is a pip issue (pypa/packaging#319), hopefully everything will work with the next release (no idea when this is going to happen though).

  5. reopened this on Nov 28, 2020
  6. hoechenberger commented on Nov 29, 2020

    @hoechenberger
    Member

    I have been running Big Sur for over a week or so and no problems besides the Qt thing. I'm using conda-forge.

  7. cbrnr commented on Nov 29, 2020

    @cbrnr
    Contributor

    Yes, it's a pip issue. I know we recommend/support conda, but pip is still the default package manager and currently that doesn't work.

  8. hoechenberger commented on Nov 29, 2020

    @hoechenberger
    Member

    Yep. Didn't mean to suggest otherwise, just wanted to share that it works well for me with conda-forge :)

  9. cbrnr commented on Dec 4, 2020

    @cbrnr
    Contributor

    The latest releases of pip and Homebrew fixed all issue, so everything is working on macOS/Homebrew.

  10. hoechenberger commented on Jan 25, 2021

    @hoechenberger
    Member

    I'm constantly running into this issue if I forget to update my VS Code Run/Debug configuration accordingly. I thought we had added a workaound (setting the variable on macOS automatically) a while back, but cannot find any reference anymore?

  11. hoechenberger commented on Jan 25, 2021

    @hoechenberger
    Member

    Never mind, it's mentioned right above:
    #8554

    But like I said, this apparently doesn't fix the problem for me. Only setting the variable manually has helped so far.

  12. larsoner commented on Jan 25, 2021

    @larsoner
    MemberAuthor

    But like I said, this apparently doesn't fix the problem for me. Only setting the variable manually has helped so far.

    That PR only fixed it for mne coreg and related GUIs that use traits+mayavi, not for code that uses matplotlib. For that, people should look to a matplotlib-generic solution such as setting this env var in their dev environment.

  13. cbrnr commented on Jan 25, 2021

    @cbrnr
    Contributor

    @hoechenberger are you using an old PyQt5 version? This has been fixed in 5.15.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions