René's URL Explorer Experiment


Title: Pyside support and usage · Issue #114 · ros-visualization/python_qt_binding · GitHub

Open Graph Title: Pyside support and usage · Issue #114 · ros-visualization/python_qt_binding

X Title: Pyside support and usage · Issue #114 · ros-visualization/python_qt_binding

Description: @sloretz Motivation I was working on ros2/rviz#889 and I have found a couple of issues with qt python integration, especially dependencies. I was looking into creating python bindings for rviz only with PySide2. No I was wondering how to...

Open Graph Description: @sloretz Motivation I was working on ros2/rviz#889 and I have found a couple of issues with qt python integration, especially dependencies. I was looking into creating python bindings for rviz only...

X Description: @sloretz Motivation I was working on ros2/rviz#889 and I have found a couple of issues with qt python integration, especially dependencies. I was looking into creating python bindings for rviz only...

Opengraph URL: https://github.com/ros-visualization/python_qt_binding/issues/114

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pyside support and usage","articleBody":"@sloretz \r\n### Motivation\r\nI was working on https://github.com/ros2/rviz/pull/889 and I have found a couple of issues with qt python integration, especially dependencies. I was looking into creating python bindings for rviz only with PySide2. No I was wondering how to resolve dependencies and turns out there is no key for pyside2 is not in rosdistro but partially in python_qt5_bindings. This all seems kind of unorganised and super hard if you want to create bindings that only support one of the to binding generators. \r\n\r\n### Problems\r\n**pyside2 in rosdistro:**\r\nThe most essential packages python3-pyside2.qtcore, python3-pyside2.qtgui and python3-pyside2.qtwidgets are not installed by libpyside2-dev, libshiboken2-dev or shiboken in rosdistro. python-pyside2 does not even exist in Ubuntu.\r\n\r\n```\r\npython-qt5-bindings:\r\n  arch: [python2-pyqt5]\r\n  debian:\r\n    buster: [pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-sip-dev, qtbase5-dev]\r\n    jessie: [pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-sip-dev, qtbase5-dev]\r\n    stretch: [pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-sip-dev, qtbase5-dev]\r\n  fedora: [python-qt5-devel, sip]\r\n  freebsd: [py27-qt5]\r\n  gentoo: ['dev-python/PyQt5[gui,widgets]']\r\n  nixos: [pythonPackages.pyqt5]\r\n  openembedded: ['${PYTHON_PN}-pyqt5@meta-qt5']\r\n  opensuse: [python2-qt5-devel, python2-sip-devel]\r\n  slackware: [PyQt5]\r\n  ubuntu:\r\n    artful: [pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-sip-dev]\r\n    bionic: [pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-sip-dev]\r\n    wily: [libpyside2-dev, libshiboken2-dev, pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-pyside2, python-sip-dev, shiboken2]\r\n    xenial: [libpyside2-dev, libshiboken2-dev, pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-pyside2, python-sip-dev, shiboken2]\r\n    yakkety: [libpyside2-dev, libshiboken2-dev, pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-pyside2, python-sip-dev, shiboken2]\r\n    zesty: [pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python-sip-dev]\r\n```\r\n\r\nBy changing to the following we would at least install the same libraries for pyqt and pyside on Ubuntu:\r\n```\r\n[libpyside2-dev, libshiboken2-dev, pyqt5-dev, python-pyqt5, python-pyqt5.qtsvg, python3-pyside.qtcore, python3-pyside.qtdbus, python3-pyside.qtdesigner, python3-pyside.qtgui, python3-pyside.qthelp, python3-pyside.qtnetwork, python3-pyside.qtprintsupport, python3-pyside.qttest, python3-pyside.qtwidgets, python3-pyside.qtxml, python3-pyside.qtsvg, python-sip-dev, shiboken2]\r\n```\r\n\r\n**Interoperability of PyQt and PySide**:\r\nAdditionally, why are we not using QtPy(https://github.com/spyder-ide/qtpy) (MIT LICENSE), which has much better support for interoperability between pyside and pyqt, than just replacing names, especially for edge cases. There are also ubuntu/debian binaries in universe.\r\n\r\n### Conclusion\r\nQt for Python support is super shady and not well organised. It is very hard to understand which systemdeps to reference to install what. In addition python_qt_bindings will install both pyside2 and pyqt5. Generally, I would rather like to see an approach similar to the rmw's where we have a default and the option to install and use the the other. \r\n\r\n### Suggestion\r\n* Add python-qtpy to rosdep\r\n* Update python_qt_bindings to use QtPy and depreceate importing via python_qt_bindings\r\n* Use python_qt_bindings package to distribute the CMAKE files for binding generation\r\n* Update python-qt5-bindings rosdep key to install only default bindings (Use pyqt5 as default, as this seems to be defacto what is happening right now)\r\n* Create python-pyqt5 rosdep key\r\n* Create python-pyside2 rosdep key\r\n* Create additional rosdep keys for both pyside and pyqt in rosdistro for each extra qt lib (e.g. python-pyqt5.qtsvg and python-pyside2.qtsvg)\r\n\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/hellantos","@type":"Person","name":"hellantos"},"datePublished":"2022-08-29T08:10:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/114/python_qt_binding/issues/114"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:264501fd-1f84-00e7-f4fc-9e9e5fa4a53f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB282:131F84:1A3E38F:24D7E85:6A4CC263
html-safe-nonce04c2557d27699abcf7d290bf7f1489d469eacadea0a3b8f2bdb6c0f2d73ed460
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjgyOjEzMUY4NDoxQTNFMzhGOjI0RDdFODU6NkE0Q0MyNjMiLCJ2aXNpdG9yX2lkIjoiNzE1OTc5NDEzMjk5ODQ3MjI5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3a0a97677edb7227ac71c89cdf80056303477ad908cec0731974813acd8d02d5
hovercard-subject-tagissue:1353881020
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ros-visualization/python_qt_binding/114/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b3582d05723e928c5c3d30b7f3266d056c1f947a1a8cd655681715d08a336f3f/ros-visualization/python_qt_binding/issues/114
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b3582d05723e928c5c3d30b7f3266d056c1f947a1a8cd655681715d08a336f3f/ros-visualization/python_qt_binding/issues/114
og:image:alt@sloretz Motivation I was working on ros2/rviz#889 and I have found a couple of issues with qt python integration, especially dependencies. I was looking into creating python bindings for rviz only...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehellantos
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
go-importgithub.com/ros-visualization/python_qt_binding git https://github.com/ros-visualization/python_qt_binding.git
octolytics-dimension-user_id2328629
octolytics-dimension-user_loginros-visualization
octolytics-dimension-repository_id5860977
octolytics-dimension-repository_nworos-visualization/python_qt_binding
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5860977
octolytics-dimension-repository_network_root_nworos-visualization/python_qt_binding
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec03e7e569190bc89b638cdd4acb4b6c6b38a170a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ros-visualization/python_qt_binding/issues/114#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fros-visualization%2Fpython_qt_binding%2Fissues%2F114
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fros-visualization%2Fpython_qt_binding%2Fissues%2F114
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ros-visualization%2Fpython_qt_binding
Reloadhttps://github.com/ros-visualization/python_qt_binding/issues/114
Reloadhttps://github.com/ros-visualization/python_qt_binding/issues/114
Reloadhttps://github.com/ros-visualization/python_qt_binding/issues/114
Please reload this pagehttps://github.com/ros-visualization/python_qt_binding/issues/114
ros-visualization https://github.com/ros-visualization
python_qt_bindinghttps://github.com/ros-visualization/python_qt_binding
Notifications https://github.com/login?return_to=%2Fros-visualization%2Fpython_qt_binding
Fork 63 https://github.com/login?return_to=%2Fros-visualization%2Fpython_qt_binding
Star 34 https://github.com/login?return_to=%2Fros-visualization%2Fpython_qt_binding
Code https://github.com/ros-visualization/python_qt_binding
Issues 7 https://github.com/ros-visualization/python_qt_binding/issues
Pull requests 4 https://github.com/ros-visualization/python_qt_binding/pulls
Actions https://github.com/ros-visualization/python_qt_binding/actions
Security and quality 0 https://github.com/ros-visualization/python_qt_binding/security
Insights https://github.com/ros-visualization/python_qt_binding/pulse
Code https://github.com/ros-visualization/python_qt_binding
Issues https://github.com/ros-visualization/python_qt_binding/issues
Pull requests https://github.com/ros-visualization/python_qt_binding/pulls
Actions https://github.com/ros-visualization/python_qt_binding/actions
Security and quality https://github.com/ros-visualization/python_qt_binding/security
Insights https://github.com/ros-visualization/python_qt_binding/pulse
Pyside support and usagehttps://github.com/ros-visualization/python_qt_binding/issues/114#top
help wantedExtra attention is neededhttps://github.com/ros-visualization/python_qt_binding/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/hellantos
hellantoshttps://github.com/hellantos
on Aug 29, 2022https://github.com/ros-visualization/python_qt_binding/issues/114#issue-1353881020
@sloretzhttps://github.com/sloretz
ros2/rviz#889https://github.com/ros2/rviz/pull/889
https://github.com/spyder-ide/qtpyhttps://github.com/spyder-ide/qtpy
help wantedExtra attention is neededhttps://github.com/ros-visualization/python_qt_binding/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.