René's URL Explorer Experiment


Title: Detect pybind11 version mismatches · Issue #130 · sofa-framework/SofaPython3 · GitHub

Open Graph Title: Detect pybind11 version mismatches · Issue #130 · sofa-framework/SofaPython3

X Title: Detect pybind11 version mismatches · Issue #130 · sofa-framework/SofaPython3

Description: Thanks to @coolteemf who reported this issue. When we are creating our own bindings inside an external plugin, class inheritance against a base class defined in SofaPython3 is possible if and only if the pybind11 version is the same for ...

Open Graph Description: Thanks to @coolteemf who reported this issue. When we are creating our own bindings inside an external plugin, class inheritance against a base class defined in SofaPython3 is possible if and only ...

X Description: Thanks to @coolteemf who reported this issue. When we are creating our own bindings inside an external plugin, class inheritance against a base class defined in SofaPython3 is possible if and only ...

Opengraph URL: https://github.com/sofa-framework/SofaPython3/issues/130

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Detect pybind11 version mismatches","articleBody":"Thanks to @coolteemf who reported this issue.\r\n\r\nWhen we are creating our own bindings inside an external plugin, class inheritance against a base class defined in SofaPython3 is possible _if and only if_ the pybind11 version is the same for both projects. \r\n\r\nFrom pybind11 [documentation](https://pybind11.readthedocs.io/en/stable/advanced/misc.html#partitioning-code-over-multiple-extension-modules):\r\n\r\n\u003e Note also that it is possible (although would rarely be required) to share arbitrary C++ objects between extension modules at runtime. Internal library data is shared between modules using capsule machinery 1 which can be also utilized for storing, modifying and accessing user-defined data. Note that an extension module will “see” other extensions’ data if and only if they were built with the same pybind11 version.\r\n\r\nFor example, the following:\r\n\r\n```\r\n┌─────────────────┐      ┌────────────────────────┐\r\n│    MyPlugin     │      │       SofaPython3      │\r\n│                 │      │                        │\r\n│   Mycamera \u003c-------------- BaseCamera           │\r\n│                 │      │                        │\r\n│                 │      └────────────────────────┘\r\n└─────────────────┘\r\n```\r\n\r\n``` python\r\nfrom Sofa.Core import Camera\r\nfrom MyPlugin import MyCamera\r\n```\r\n\r\nis only possible if SofaPython3 and MyPlugin is compiled using exactly the same pybind11 version. Else, the following will happen:\r\n\r\n``` python\r\n\u003e\u003e\u003e from Sofa.Core import Camera\r\n\u003e\u003e\u003e from MyPlugin  import MyCamera\r\n[ERROR]   [SofaRuntime] ImportError: generic_type: type \"MyCamera\" referenced unknown base type \"sofa::component::visualmodel::BaseCamera\"\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n```\r\n\r\nThis error is not so trivial to debug, and we could easily detect it at the CMake stage by verifying pybind11 version match. We could, for example, insert the current pybind11 version inside an exported CMake's target property. @guparan, do you think this could be feasible?","author":{"url":"https://github.com/jnbrunet","@type":"Person","name":"jnbrunet"},"datePublished":"2021-03-29T12:37:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/130/SofaPython3/issues/130"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5f42b404-1630-0674-7df6-fc5c292054b4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA696:324E5B:B0CC36:DDA3B9:697F0408
html-safe-nonce1ed81f152e2878b79a4256eaed66e8ee88011bf188ce90f1bd2111bf71618019
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjk2OjMyNEU1QjpCMENDMzY6RERBM0I5OjY5N0YwNDA4IiwidmlzaXRvcl9pZCI6IjkxMzM0Njk3MjMwNTUyOTM0NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac46b25a87ba2bedb467b24b8c1b899c528622704c5b6400b26d064e88b593bd41
hovercard-subject-tagissue:843328079
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/sofa-framework/SofaPython3/130/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d34d21930bd1c2604bc4957a9176ae16ce16d77fc2dabb309343f9adb1b46ea2/sofa-framework/SofaPython3/issues/130
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d34d21930bd1c2604bc4957a9176ae16ce16d77fc2dabb309343f9adb1b46ea2/sofa-framework/SofaPython3/issues/130
og:image:altThanks to @coolteemf who reported this issue. When we are creating our own bindings inside an external plugin, class inheritance against a base class defined in SofaPython3 is possible if and only ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejnbrunet
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/sofa-framework/SofaPython3 git https://github.com/sofa-framework/SofaPython3.git
octolytics-dimension-user_id11028508
octolytics-dimension-user_loginsofa-framework
octolytics-dimension-repository_id260159147
octolytics-dimension-repository_nwosofa-framework/SofaPython3
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id260159147
octolytics-dimension-repository_network_root_nwosofa-framework/SofaPython3
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
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/issues/130#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsofa-framework%2FSofaPython3%2Fissues%2F130
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsofa-framework%2FSofaPython3%2Fissues%2F130
Sign up https://patch-diff.githubusercontent.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=sofa-framework%2FSofaPython3
Reloadhttps://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/issues/130
Reloadhttps://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/issues/130
Reloadhttps://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/issues/130
sofa-framework https://patch-diff.githubusercontent.com/sofa-framework
SofaPython3https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsofa-framework%2FSofaPython3
Fork 53 https://patch-diff.githubusercontent.com/login?return_to=%2Fsofa-framework%2FSofaPython3
Star 60 https://patch-diff.githubusercontent.com/login?return_to=%2Fsofa-framework%2FSofaPython3
Code https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3
Issues 36 https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/issues
Pull requests 32 https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/pulls
Actions https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/actions
Projects 0 https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/projects
Wiki https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/wiki
Security 0 https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/security
Insights https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/pulse
Code https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3
Issues https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/issues
Pull requests https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/pulls
Actions https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/actions
Projects https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/projects
Wiki https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/wiki
Security https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/security
Insights https://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/sofa-framework/SofaPython3/issues/130
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/sofa-framework/SofaPython3/issues/130
Detect pybind11 version mismatcheshttps://patch-diff.githubusercontent.com/sofa-framework/SofaPython3/issues/130#top
enhancementNew feature or requesthttps://github.com/sofa-framework/SofaPython3/issues?q=state%3Aopen%20label%3A%22enhancement%22
v21.06https://github.com/sofa-framework/SofaPython3/milestone/2
https://github.com/jnbrunet
https://github.com/jnbrunet
jnbrunethttps://github.com/jnbrunet
on Mar 29, 2021https://github.com/sofa-framework/SofaPython3/issues/130#issue-843328079
@coolteemfhttps://github.com/coolteemf
documentationhttps://pybind11.readthedocs.io/en/stable/advanced/misc.html#partitioning-code-over-multiple-extension-modules
@guparanhttps://github.com/guparan
enhancementNew feature or requesthttps://github.com/sofa-framework/SofaPython3/issues?q=state%3Aopen%20label%3A%22enhancement%22
v21.06https://github.com/sofa-framework/SofaPython3/milestone/2
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.