Title: [Bug]: PySide6 6.4.0 and FigureCanvasQTAgg Combability · Issue #24175 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: PySide6 6.4.0 and FigureCanvasQTAgg Combability · Issue #24175 · matplotlib/matplotlib
X Title: [Bug]: PySide6 6.4.0 and FigureCanvasQTAgg Combability · Issue #24175 · matplotlib/matplotlib
Description: Bug summary Using the latest PySide6 version (6.4.0) and Matplotlib version (3.6.1), it is not possible to import FigureCanvasQTAgg. It seems that the whole Qt backend breaks. Code for reproduction from matplotlib.backends.backend_qtagg ...
Open Graph Description: Bug summary Using the latest PySide6 version (6.4.0) and Matplotlib version (3.6.1), it is not possible to import FigureCanvasQTAgg. It seems that the whole Qt backend breaks. Code for reproduction...
X Description: Bug summary Using the latest PySide6 version (6.4.0) and Matplotlib version (3.6.1), it is not possible to import FigureCanvasQTAgg. It seems that the whole Qt backend breaks. Code for reproduction...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24175
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: PySide6 6.4.0 and FigureCanvasQTAgg Combability ","articleBody":"### Bug summary\n\nUsing the latest PySide6 version (6.4.0) and Matplotlib version (3.6.1), it is not possible to import ```FigureCanvasQTAgg```. It seems that the whole Qt backend breaks.\r\n\r\n\n\n### Code for reproduction\n\n```python\nfrom matplotlib.backends.backend_qtagg import FigureCanvasQTAgg\n```\n\n\n### Actual outcome\n\n```\r\n File \"C:\\Users\\Mustafa\\Desktop\\Projects\\test_project\\test.py\", line 1, in \u003cmodule\u003e\r\n from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg\r\n File \"C:\\Users\\Mustafa\\Desktop\\Projects\\test_project\\.venv\\lib\\site-packages\\matplotlib\\backends\\backend_qtagg.py\", line 12, in \u003cmodule\u003e\r\n from .backend_qt import QtCore, QtGui, _BackendQT, FigureCanvasQT\r\n File \"C:\\Users\\Mustafa\\Desktop\\Projects\\test_project\\.venv\\lib\\site-packages\\matplotlib\\backends\\backend_qt.py\", line 72, in \u003cmodule\u003e\r\n _MODIFIER_KEYS = [\r\n File \"C:\\Users\\Mustafa\\Desktop\\Projects\\test_project\\.venv\\lib\\site-packages\\matplotlib\\backends\\backend_qt.py\", line 73, in \u003clistcomp\u003e\r\n (_to_int(getattr(_enum(\"QtCore.Qt.KeyboardModifier\"), mod)),\r\nTypeError: int() argument must be a string, a bytes-like object or a real number, not 'KeyboardModifier'\r\n```\n\n### Expected outcome\n\nSuccess import and usage\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nWindows\n\n### Matplotlib Version\n\n3.6.1\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n3.10.8\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/MosGeo","@type":"Person","name":"MosGeo"},"datePublished":"2022-10-15T09:30:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/24175/matplotlib/issues/24175"}
| 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:75cb06e6-d9f2-5f75-20df-13c11df8e677 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B036:309E0A:1A46C59:254D354:6A50CC71 |
| html-safe-nonce | 4f53d57663d02abcb03de8e07b566973de2ca623c85a51b05f8406789783b263 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDM2OjMwOUUwQToxQTQ2QzU5OjI1NEQzNTQ6NkE1MENDNzEiLCJ2aXNpdG9yX2lkIjoiNjc4NDAzNzA4MjE3ODMwOTIzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ce047dcdaf7a4cf367d35cb99f1f44445af458eafae5e322b38cb61428f55d42 |
| hovercard-subject-tag | issue:1410108156 |
| 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/24175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/146a03d3beb692c720191b1c518168767c906d23fa06a1a0da07bfe7531288f2/matplotlib/matplotlib/issues/24175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/146a03d3beb692c720191b1c518168767c906d23fa06a1a0da07bfe7531288f2/matplotlib/matplotlib/issues/24175 |
| og:image:alt | Bug summary Using the latest PySide6 version (6.4.0) and Matplotlib version (3.6.1), it is not possible to import FigureCanvasQTAgg. It seems that the whole Qt backend breaks. Code for reproduction... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MosGeo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| 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 | 08e79d53fc070870d5b168356afebb1e286a2ffe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width