Title: [Bug]: TypeError: int() argument must be a string, a bytes-like object or a number, not 'KeyboardModifier' · Issue #24155 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: TypeError: int() argument must be a string, a bytes-like object or a number, not 'KeyboardModifier' · Issue #24155 · matplotlib/matplotlib
X Title: [Bug]: TypeError: int() argument must be a string, a bytes-like object or a number, not 'KeyboardModifier' · Issue #24155 · matplotlib/matplotlib
Description: Bug summary Error while importing matplotlib qt backend. The version details are as below matplotlib: 3.6.1 pyside: 6.4.0 python: 3.9.9 on a macOS-M1 machine. Code for reproduction from matplotlib.backends.backend_qtagg import Navigation...
Open Graph Description: Bug summary Error while importing matplotlib qt backend. The version details are as below matplotlib: 3.6.1 pyside: 6.4.0 python: 3.9.9 on a macOS-M1 machine. Code for reproduction from matplotlib....
X Description: Bug summary Error while importing matplotlib qt backend. The version details are as below matplotlib: 3.6.1 pyside: 6.4.0 python: 3.9.9 on a macOS-M1 machine. Code for reproduction from matplotlib....
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: TypeError: int() argument must be a string, a bytes-like object or a number, not 'KeyboardModifier'","articleBody":"### Bug summary\n\nError while importing matplotlib qt backend. \r\n\r\nThe version details are as below\r\nmatplotlib: 3.6.1\r\npyside: 6.4.0\r\npython: 3.9.9\r\n\r\non a macOS-M1 machine.\n\n### Code for reproduction\n\n```python\nfrom matplotlib.backends.backend_qtagg import NavigationToolbar2QT as NavigationToolbar\n```\n\n\n### Actual outcome\n\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/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 \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/matplotlib/backends/backend_qt.py\", line 72, in \u003cmodule\u003e\r\n _MODIFIER_KEYS = [\r\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/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 number, not 'KeyboardModifier'\n\n### Expected outcome\n\nNo error!\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nOS/X\n\n### Matplotlib Version\n\n3.6.1\n\n### Matplotlib Backend\n\nMacOSX\n\n### Python version\n\n3.9.9\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/srikanthravipati","@type":"Person","name":"srikanthravipati"},"datePublished":"2022-10-13T17:37:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/24155/matplotlib/issues/24155"}
| 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:a8b898b7-6e95-782e-c22c-7258b1831302 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80E4:5105D:A45DF5C:E7098D0:6A50DCA9 |
| html-safe-nonce | 4a27793ad95a7409ee19a53933540e55e39df9ebef461e868902629c58451541 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEU0OjUxMDVEOkE0NURGNUM6RTcwOThEMDo2QTUwRENBOSIsInZpc2l0b3JfaWQiOiI1MzE1NzU2MzE5NjY3NDQ0OTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1f41907a8dd02e3c3fd9e039bda6067687373cbd529aa5a9f65c0a4bd1a1085b |
| hovercard-subject-tag | issue:1408187859 |
| 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/24155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f75a708b8b2dcca0dbf8de0ddce08577b2a7ef2edeb1f92a613ccff0d9a5161f/matplotlib/matplotlib/issues/24155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f75a708b8b2dcca0dbf8de0ddce08577b2a7ef2edeb1f92a613ccff0d9a5161f/matplotlib/matplotlib/issues/24155 |
| og:image:alt | Bug summary Error while importing matplotlib qt backend. The version details are as below matplotlib: 3.6.1 pyside: 6.4.0 python: 3.9.9 on a macOS-M1 machine. Code for reproduction from matplotlib.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srikanthravipati |
| 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 | 17290b65caabb92b271e0949d1bf147b63deab41 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width