Title: draw-proto.py example returns AttributeError on Ubuntu 22.04 python-xlib v.033 installed from source · Issue #281 · python-xlib/python-xlib · GitHub
Open Graph Title: draw-proto.py example returns AttributeError on Ubuntu 22.04 python-xlib v.033 installed from source · Issue #281 · python-xlib/python-xlib
X Title: draw-proto.py example returns AttributeError on Ubuntu 22.04 python-xlib v.033 installed from source · Issue #281 · python-xlib/python-xlib
Description: Just getting acquainted with this project, run the examples. installed python-xlib via pip install . on a conda environment. python version '3.10.6 (main, Oct 7 2022, 20:19:58) [GCC 11.2.0]' Ubuntu 22.045LTS python draw-proto.py Tracebac...
Open Graph Description: Just getting acquainted with this project, run the examples. installed python-xlib via pip install . on a conda environment. python version '3.10.6 (main, Oct 7 2022, 20:19:58) [GCC 11.2.0]' Ubuntu...
X Description: Just getting acquainted with this project, run the examples. installed python-xlib via pip install . on a conda environment. python version '3.10.6 (main, Oct 7 2022, 20:19:58) [GCC 11.2.0]'...
Opengraph URL: https://github.com/python-xlib/python-xlib/issues/281
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"draw-proto.py example returns AttributeError on Ubuntu 22.04 python-xlib v.033 installed from source","articleBody":"Just getting acquainted with this project, run the examples. \ninstalled python-xlib via pip install . on a conda environment.\npython version '3.10.6 (main, Oct 7 2022, 20:19:58) [GCC 11.2.0]'\nUbuntu 22.045LTS\n\n\n python draw-proto.py \nTraceback (most recent call last):\n File \"/home/z/work/UIs/xinterface/xlib/python-xlib/examples/draw-proto.py\", line 231, in \u003cmodule\u003e\n Window(display.Display()).loop()\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/display.py\", line 157, in __init__\n r = ConnectionSetupRequest(self,\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/display.py\", line 1075, in __init__\n display.send_and_recv(request = -1)\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/display.py\", line 612, in send_and_recv\n gotreq = self.parse_response(request)\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/display.py\", line 689, in parse_response\n return self.parse_connection_setup()\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/display.py\", line 958, in parse_connection_setup\n x, d = r._success_reply.parse_binary(self.data_recv[:alen],\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/rq.py\", line 1202, in parse_binary\n ret[f.name], data = f.parse_binary_value(data, display,\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/rq.py\", line 532, in parse_binary_value\n ret[i], data = self.type.parse_binary(data, display)\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/rq.py\", line 1191, in parse_binary\n field_val = f.parse_value(field_val, display)\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/rq.py\", line 309, in parse_value\n c = display.get_resource_class(self.class_name)\n File \"/home/z/miniconda3/envs/abj/lib/python3.10/site-packages/Xlib/protocol/display.py\", line 320, in get_resource_class\n return self.resource_classes.get(class_name, default)\nAttributeError: 'Display' object has no attribute 'resource_classes'. Did you mean: 'get_resource_class'?\n(abj) z@zNuc:~/work/UIs/xinterface/xlib/python-xlib/examples$ \n\n","author":{"url":"https://github.com/xvdp","@type":"Person","name":"xvdp"},"datePublished":"2025-01-20T11:01:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/281/python-xlib/issues/281"}
| 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:75d14d91-3048-6cf6-111c-3a58dad10ce9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9492:31F933:7ECCC:AF771:696FC9DD |
| html-safe-nonce | 1474e261907eddf9f6408c414412bc5a66adf0e2d94e421a4aa52931c4a36c38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDkyOjMxRjkzMzo3RUNDQzpBRjc3MTo2OTZGQzlERCIsInZpc2l0b3JfaWQiOiIxNDQ0NzY3NDIwMzU3MDAzNzQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9c85d27589bb20e3e685f0beb85d916cd4a7c74fd72327703b49eb0b114e2e0f |
| hovercard-subject-tag | issue:2798938936 |
| 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/python-xlib/python-xlib/281/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d866606bc5f26aaad349f85bb30eb417882d57ba5a3db50f34013a1bed16933/python-xlib/python-xlib/issues/281 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d866606bc5f26aaad349f85bb30eb417882d57ba5a3db50f34013a1bed16933/python-xlib/python-xlib/issues/281 |
| og:image:alt | Just getting acquainted with this project, run the examples. installed python-xlib via pip install . on a conda environment. python version '3.10.6 (main, Oct 7 2022, 20:19:58) [GCC 11.2.0]' Ubuntu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xvdp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 330ca0f04ee8ecef1da04306a0dd49293f64679ee9a4bd5eaf2e1272bfdcf145 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-xlib/python-xlib git https://github.com/python-xlib/python-xlib.git |
| octolytics-dimension-user_id | 16151530 |
| octolytics-dimension-user_login | python-xlib |
| octolytics-dimension-repository_id | 47391866 |
| octolytics-dimension-repository_nwo | python-xlib/python-xlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47391866 |
| octolytics-dimension-repository_network_root_nwo | python-xlib/python-xlib |
| 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 | 816ad575e27a390de2e2089ebe75261d12de9b37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width