Title: [Bug]: macOS: PyPy 3.8 (v7.3.9) threading get_native_id Broken · Issue #24094 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: macOS: PyPy 3.8 (v7.3.9) threading get_native_id Broken · Issue #24094 · matplotlib/matplotlib
X Title: [Bug]: macOS: PyPy 3.8 (v7.3.9) threading get_native_id Broken · Issue #24094 · matplotlib/matplotlib
Description: Bug summary In PyPy 3.8 (v7.3.9), matplotlib 3.6.0 is cannot be imported, leading to breakage. Ref.: https://foss.heptapod.net/pypy/pypy/-/issues/3764 Code for reproduction import matplotlib.pyplot as plt Actual outcome AttributeError: m...
Open Graph Description: Bug summary In PyPy 3.8 (v7.3.9), matplotlib 3.6.0 is cannot be imported, leading to breakage. Ref.: https://foss.heptapod.net/pypy/pypy/-/issues/3764 Code for reproduction import matplotlib.pyplot...
X Description: Bug summary In PyPy 3.8 (v7.3.9), matplotlib 3.6.0 is cannot be imported, leading to breakage. Ref.: https://foss.heptapod.net/pypy/pypy/-/issues/3764 Code for reproduction import matplotlib.pyplot...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24094
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: macOS: PyPy 3.8 (v7.3.9) threading get_native_id Broken","articleBody":"### Bug summary\n\nIn PyPy 3.8 (v7.3.9), matplotlib 3.6.0 is cannot be imported, leading to breakage.\r\n\r\nRef.: https://foss.heptapod.net/pypy/pypy/-/issues/3764\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\n```\n\n\n### Actual outcome\n\n```\r\nAttributeError: module 'threading' has no attribute 'get_native_id'\r\n```\r\nin `matplotlib/pyplot.py:337`\r\n```\r\n def _warn_if_gui_out_of_main_thread():\r\n # This compares native thread ids because even if python-level Thread\r\n # objects match, the underlying OS thread (which is what really matters)\r\n # may be different on Python implementations with green threads.\r\n if (_get_required_interactive_framework(_get_backend_mod()) and\r\n \u003e threading.get_native_id() != threading.main_thread().native_id):\r\n E AttributeError: module 'threading' has no attribute 'get_native_id'\r\n```\n\n### Expected outcome\n\nWork as usual.\n\n### Additional information\n\nThis has been first posted in PyPy: https://foss.heptapod.net/pypy/pypy/-/issues/3764\r\n\r\nI saw this on Conda-Forge, starting a few weeks ago as they shipped the latest PyPy 3.8.\n\n### Operating system\n\nmacOS 11.7 (x86_64) via Azure Pipelines 14 Runner\n\n### Matplotlib Version\n\n3.6.0\n\n### Matplotlib Backend\n\ndefault\n\n### Python version\n\nPyPy 3.8 (v7.3.9)\n\n### Jupyter version\n\nN/A\n\n### Installation\n\nconda","author":{"url":"https://github.com/ax3l","@type":"Person","name":"ax3l"},"datePublished":"2022-10-05T00:22:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/24094/matplotlib/issues/24094"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39e543ae-9440-f6a0-7326-ed73b1005bf9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F20:2003E5:139FA47:19D38E9:6A51B68D |
| html-safe-nonce | 62ddb534522196bf4cfa4518fc5035172eeecedc3f2892ddca69d2cb86fd0545 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjIwOjIwMDNFNToxMzlGQTQ3OjE5RDM4RTk6NkE1MUI2OEQiLCJ2aXNpdG9yX2lkIjoiODA1Mjk0NjA1MTIxOTQzNzE5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd50627a8a0f2b3b740c66448ab2a43930a40d7c3bdab40027367a866371fa99 |
| hovercard-subject-tag | issue:1397003700 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24094/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3defc01b02b033944d4723a6b4c0ab50bd6420a38da858debdc1ff90ef93aa72/matplotlib/matplotlib/issues/24094 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3defc01b02b033944d4723a6b4c0ab50bd6420a38da858debdc1ff90ef93aa72/matplotlib/matplotlib/issues/24094 |
| og:image:alt | Bug summary In PyPy 3.8 (v7.3.9), matplotlib 3.6.0 is cannot be imported, leading to breakage. Ref.: https://foss.heptapod.net/pypy/pypy/-/issues/3764 Code for reproduction import matplotlib.pyplot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ax3l |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width