Title: Bonsai: tell the user how to recover missing dependencies (#8031) by petruconduraru · Pull Request #8993 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: tell the user how to recover missing dependencies (#8031) by petruconduraru · Pull Request #8993 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: tell the user how to recover missing dependencies (#8031) by petruconduraru · Pull Request #8993 · IfcOpenShell/IfcOpenShell
Description: Problem Bonsai fails to start with ModuleNotFoundError: No module named 'ifcopenshell' and binary_error: Couldn't find ifcopenshell wrapper binary., and the fatal error panel only says "Bonsai could not load." The "How Can I Fix This?" link points at a troubleshooting page with no entry for this failure, so the user has nowhere to go. Root cause (not ours to fix, but ours to explain) Blender extracts every extension's bundled wheels into a single shared folder, extensions/.local/lib/pythonX.XX/site-packages, and re-syncs it only on install, uninstall, enable or disable. Startup never triggers a sync (addon_utils._initialize_extensions_compat_data, _bpy_internal.extensions.wheel_manager.apply_action). If that sync does not complete, the extension folder stays in place while its dependencies are gone. Repairing the install belongs to Blender, so this PR does not touch install state. It only names the condition and states the recovery step. Verification (Blender 5.1.2, isolated BLENDER_USER_RESOURCES profile) With ifcopenshell deleted from the shared site-packages, the extension is still listed as enabled and the import still fails on three consecutive restarts. The broken state is permanent from the user's point of view. Disabling then re-enabling the extension restores the wheels (['ifcopenshell', 'ifcopenshell-0.8.6.dist-info']). That is the recovery step the panel and the docs now give. With two extensions bundling the same wheel, the shared folder is rewritten on every enable and disable (B enabled -> 0.8.7, B disabled -> [], A enabled -> 0.8.6), which is why an incomplete rewrite strands whatever is left enabled. The new panel text renders in exactly the reported state, immediately below the existing System Information box and above "Copy Error Message To Clipboard". Change src/bonsai/bonsai/__init__.py: one extra branch in BIM_PT_fatal_error.draw, next to the existing wrong-Python-version advice, shown only when the traceback is No module named 'ifcopenshell'. No behaviour change, no install state is read or written. src/bonsai/docs/guides/troubleshooting.rst: a matching "Installation issues" entry. Fixes #8031. Correction: this does not fix #8031, which is titled 'Bonsai Auto-Update on daily build fails'. The change only adds a message and a troubleshooting entry that tell the user how to recover (disable then enable Bonsai); it does not stop the failed auto-update from happening. Please read 'Fixes #8031' as 'Related to #8031'. Generated with the assistance of an AI coding tool. Test and corrections, added 2026-10-07 A second commit adds two tests in test/tool/test_blender.py. One fails without the change (the panel shows only the system information) and passes with it; the other checks that a different import failure does not get this advice and passes both ways. Run headless in Blender 5.2: the file goes from 21 to 23 passed. Corrections to the text above: the advice is drawn inside the System Information box, after the version lines, not below it. "No behaviour change" should read: no change to install state; the panel shows five extra lines in this one case. The verification above names Blender 5.1.2; the test run is on 5.2, and the manual check was not repeated.
Open Graph Description: Problem Bonsai fails to start with ModuleNotFoundError: No module named 'ifcopenshell' and binary_error: Couldn't find ifcopenshell wrapper binary., and the fatal error panel only says ...
X Description: Problem Bonsai fails to start with ModuleNotFoundError: No module named 'ifcopenshell' and binary_error: Couldn't find ifcopenshell wrapper binary., and the fatal error pane...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8993
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:77f39b88-cb1c-c22c-674a-cee82f05e4da |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D748:377538:27EBAF:350957:6B04B624 |
| html-safe-nonce | bedf7b8f58643f9a634cd99685c02b7708b9f9fd06c4373dfb85b657a50fe5b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQ4OjM3NzUzODoyN0VCQUY6MzUwOTU3OjZCMDRCNjI0IiwidmlzaXRvcl9pZCI6IjU1ODExNDkxNTY0MjIyMzU2ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8cf3d27b5c92ef7c2b6723faca172793d0bb9c0a6baaa0b0072c15e22979a4ad |
| hovercard-subject-tag | pull_request:4135427312 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/IfcOpenShell/IfcOpenShell/pull/8993/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Problem Bonsai fails to start with ModuleNotFoundError: No module named 'ifcopenshell' and binary_error: Couldn't find ifcopenshell wrapper binary., and the fatal error panel only says ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width