René's URL Explorer Experiment


Title: bonsai(pset): bind schema module directly so pset UI survives add-on reload (#8236) by petruconduraru · Pull Request #8322 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: bonsai(pset): bind schema module directly so pset UI survives add-on reload (#8236) by petruconduraru · Pull Request #8322 · IfcOpenShell/IfcOpenShell

X Title: bonsai(pset): bind schema module directly so pset UI survives add-on reload (#8236) by petruconduraru · Pull Request #8322 · IfcOpenShell/IfcOpenShell

Description: Problem Reported in #8236: after restarting Blender (Bonsai 0.8.6 alpha), the add-on stops showing properties and the pset/qto panels are blank. The console shows: File ".../bonsai/tool/pset.py", line 447, in get_pset_template return bonsai.bim.schema.ifc.psetqto.get_by_name(name) AttributeError: module 'bonsai.bim' has no attribute 'schema' The reporter notes it "works initially, but after restarting Blender" it breaks. Root cause tool/pset.py imports bonsai.bim.schema at module level but then resolves bonsai.bim.schema.ifc... at call time (during the pset UI draw) in get_pset_template and is_pset_applicable. On an add-on reload the bonsai.bim package object can lose its schema attribute before the pset UI draws, so the attribute lookup raises and the panel draw fails. Fix Bind the module directly with from bonsai.bim import schema as bim_schema and reference bim_schema.ifc.... The local name points at the module object itself, so it no longer depends on bonsai.bim retaining the schema attribute across a reload. Verification Verified the mechanism in isolation: after a package's submodule attribute is cleared (as happens on reload), resolving it via the parent.submodule chain raises AttributeError: module 'parent' has no attribute 'submodule' (matching the report), while a directly bound module reference still resolves. The file compiles clean. Note: I could not reproduce the exact Blender-restart trigger headlessly, so this targets the mechanism behind the reported AttributeError. Happy to adjust if a maintainer prefers fixing it at the package-load level instead. Test added on v0.9.0: The new test shows the pset template lookup still works when the bonsai.bim package has no schema attribute, which is the reporter's exact error. Generated with the assistance of an AI coding tool.

Open Graph Description: Problem Reported in #8236: after restarting Blender (Bonsai 0.8.6 alpha), the add-on stops showing properties and the pset/qto panels are blank. The console shows: File ".../bonsai/tool/pset.p...

X Description: Problem Reported in #8236: after restarting Blender (Bonsai 0.8.6 alpha), the add-on stops showing properties and the pset/qto panels are blank. The console shows: File ".../bonsai/tool/ps...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8322

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0e2483a5-894e-8284-f136-cb11a19b3f39
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB07C:345F7:61B236:7F6706:6B050443
html-safe-noncecb9589316327d7c160e76ee9f1c18963a906b14d75d742c6c1917eb16ca0baa1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDdDOjM0NUY3OjYxQjIzNjo3RjY3MDY6NkIwNTA0NDMiLCJ2aXNpdG9yX2lkIjoiNzkzNTY0Njk0NjczNDQ0MTUzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac96faf24b7ef0eeaadb1d3b2b51746f9fd1455d0856e02be00dfcefcff85af850
hovercard-subject-tagpull_request:4001047381
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
twitter:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
og:image:altProblem Reported in #8236: after restarting Blender (Bonsai 0.8.6 alpha), the add-on stops showing properties and the pset/qto panels are blank. The console shows: File ".../bonsai/tool/pset.p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8322%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8322%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests936 (936)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
petruconduraruhttps://github.com/petruconduraru
IfcOpenShell:v0.9.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0
BIMvoice:fix-pset-schema-reload-8236https://github.com/BIMvoice/IfcOpenShell/tree/fix-pset-schema-reload-8236
Conversation 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322
Commits 5 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
bonsai(pset): bind schema module directly so pset UI survives add-on reload (#8236) https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#top
Show all changes 5 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
4d96bae bonsai(pset): bind schema module directly so pset UI survives reload … petruconduraru Jul 6, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/commits/4d96bae3cc1e4ed8fb552879d62afa5340aaeab9
9131875 Merge origin/v0.9.0 into mig14/8322 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/commits/9131875addb6e38e74ded184f82d0979713ec8e7
c2166dc Bonsai: drop schema import comment petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/commits/c2166dc7b7e8c436909810878fc7a038cd5b13d0
e7d21dc Merge remote-tracking branch 'origin/v0.9.0' into bt_8322 petruconduraru Sep 30, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/commits/e7d21dca93ae8a121d8357b651b0e9da7c16bd59
6e7640d Add test for pset template after reload petruconduraru Sep 30, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/commits/6e7640d77618d5610f2db0b955a113484fdae40d
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
pset.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
test_pset.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
src/bonsai/bonsai/tool/pset.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/6e7640d77618d5610f2db0b955a113484fdae40d/src/bonsai/bonsai/tool/pset.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
src/bonsai/test/tool/test_pset.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/6e7640d77618d5610f2db0b955a113484fdae40d/src/bonsai/test/tool/test_pset.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
https://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8322/files
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.