Does latest daily Bonsai work with today's Blender 4.5.2 LTS ?

edited August 2025 in General

When I try to open a new Demo IFC File, nothing loads and I get the same scary warning in Blender 4.5.2 LTS as I am used to get when trying Bonsai in Blender 5.0 Alpha :

Python: Traceback (most recent call last):
File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/search/ui.py", line 45, in draw
bonsai.bim.helper.draw_filter(self.layout, props.filter_groups, SearchData, "search")
^^^^^^^^^^^^^^^^^
AttributeError: module 'bonsai.bim' has no attribute 'helper'

And again, if I deactivate Bonsai in AddOns, start it again and re-enable Bonsai,
Bonsai will work for that session but as soon as I restart Blender 4.5.2, it will through that warning again.

Does it work for you ?
I just wonder if it is just for me again, or a reproducible problem and Bonsai not yet compatible.

BTW,
As Bonsai worked with 4.5.1 and 4.5.2 RC from yesterday for a few days well .....

Comments

  • Ouch, I'll get the same warning on old Blender 4.4.3 now too with today's Bonsai !?

  • @zoomer said:
    Ouch, I'll get the same warning on old Blender 4.4.3 now too with today's Bonsai !?

    What OS are you using? I haven't experienced any of these problems but I'm still using win10pro

  • I am on Mac ..... will look at the Win 11 PC later.

    This is what I get with today's Bonsai 0.8.4 :

    os: Darwin
    os_version: Darwin Kernel Version 25.0.0: Thu Aug 14 21:58:31 PDT 2025; root:xnu-12377.1.8~5/RELEASE_ARM64_T6041
    python_version: 3.11.11
    architecture: ('64bit', '')
    machine: arm64
    processor: arm
    blender_version: 4.5.2 LTS
    bonsai_version: 0.8.4-alpha250821
    bonsai_commit_hash: dccd9d4
    bonsai_commit_date: 2025-08-21T15:55:19-05:00
    last_actions: 
    # operator: BIM_OT_add_default_type
    # operator: BIM_OT_add_element
    last_error: Traceback (most recent call last):
      File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/ifc.py", line 526, in execute_ifc_operator
        result = getattr(operator, "_execute")(context)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/model/product.py", line 157, in _execute
        bpy.ops.bim.add_element()
      File "/Applications/Blender.app/Contents/Resources/4.5/scripts/modules/bpy/ops.py", line 109, in __call__
        ret = _op_call(self.idname_py(), kw)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    RuntimeError: Error: Python: Traceback (most recent call last):
      File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/ifc.py", line 526, in execute_ifc_operator
        result = getattr(operator, "_execute")(context)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/root/operator.py", line 563, in _execute
        element = core.assign_class(
                  ^^^^^^^^^^^^^^^^^^
      File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/core/root.py", line 99, in assign_class
        collector.assign(obj)
      File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/tool/collector.py", line 65, in assign
        collection = cls._create_project_child_collection("IfcTypeProduct")
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/user/Library/Application Support/Blender/4.5/extensions/.local/lib/python3.11/site-packages/bonsai/tool/collector.py", line 132, in _create_project_child_collection
        project_obj = tool.Ifc.get_object(tool.Ifc.get().by_type("IfcProject")[0])
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
    IndexError: list index out of range
    Location: /Applications/Blender.app/Contents/Resources/4.5/scripts/modules/bpy/ops.py:109
    
    
    ifc: Unsaved
    schema: IFC4
    preprocessor_version: IfcOpenShell 0.8.4-alpha250821
    originating_system: IfcOpenShell 0.8.4-alpha250821
    
  • I checked my Firewall, it noticed some Blender Traffic but did not block it.
    I deleted Blender disk access rights and let them re-enable for any related drive or paths.
    I deactivated AddOns that were updated lately (only Photographer) and restarted.

    Does the Bonsai error code can lead to any estimations in which direction something could be wrong ?

  • are others experiencing this? or is it unique to your setup? I don't know how many mac users there are on the forum?

  • I see it works well on Elementary OS Linux
    (Besides that Blender crashes when you activate Vulkan)

    Windows will take some more time ... Windows Updates ....
    (Windows Store offered Blender Update to 4.5.2 already)
    But I am pretty sure Bonsai will work fine on Windows too.

    Nigel
  • I work with 4.5.1 LTS and 0.8.3 on Ubuntu 25 .04. I had the same problems which could be caused by anything in the row. What finally solved the problem was File > Defaults > Load Factory Settings (THX Dion!). And never touch the Blender Save File again....

  • @VolkerKrieger

    And never touch the Blender Save File again....

    Never! let's make it flashing red with screeching noise to scare users off it they dare touch it or by accident.. :D

    Nigel
  • edited August 2025

    But I would like to know what the reason is, why and where it happens. As I started and rebuild all from scratch already and it already happens again after a few interims weeks without problems. I am pretty sure that Bonsai would work with clean Blender Defaults for me too. But who wants to work like that.

    Usually I have more or less the exact same Startup.blend on all Blenders and OSs.

    I tested a bit .

    • It seems to have nothing to do with my Startup.blend ? (At least it doesn't get better when I hide it)
    • Looks like on Windows there is no issue (AFAIR I updated all Blenders and Bonsais for a second test)
    • On Linux (ElementaryOS 7.1 Horus) I see no problems loading the Demo IFC with its Libraries. (Blender is at 4.5.1 in Flatpak) But I did not fully build up my Startup.blend and also may have forgotten some Settings adjustments.

    But I also started my (backup) M1 Mini in screen sharing, as it was not updated for last 1-2 weeks. OS also already a macOS 26 Tahoe Public Beta, Blender 4.5 and 5 and Bonsai still from 4.5.1 time.

    Initially all ware able to load a new file from Demo IFC.
    Then I updated Blenders to latest 4.5.2 and 5.0 - still all fine.
    Then I updated macOS to latest (4. ?) Public Beta too - still all fine.
    Then I updated all Bonsais to latest 0.8.4 ----> no more able to open new IFC from Demo Template.

    And I did not do any changes on Blender Settings or my Startup file.
    For me it looks like one of the latest daily Blenders from around August 20 poisoned all my 3 Blender installations (4.4, 4.5, 5.0), by maybe polluting my Settings or Startups - in one go.

    Have not yet tried to load an older Bonsai (Or have I already ?)

  • I can only advice on BonsaiBIM on Ubuntu (my utmost respect for the maintainers on Windows !!!).
    I did a complete delete and reinstall of Blender (watch out on the respective /home and /root config files -the user config overrides the system config).
    -- "Everything is a file" ---
    Since the new installation (and the Ubuntu specific adaptation in ..../applications/blender.desktop all works fine
    I have multiple Blender versions "installed" (resided in their specific folders) from history
    I can start them from there with no problem (to test wether the newest blender has bugs.
    May sound bleak: But i do not use a professional software with MS or Apple products.....

    steverugi
  • edited August 2025

    I would like to know what the reason is

    WTH
    This was the problem and this is also the solution ..... :

    https://community.osarch.org/discussion/comment/26237#Comment_26237

  • Deactivating the Homemaker AddOn and restarting Blender lets Bonsai work again.

  • edited August 2025

    But it is again more complicated.
    With Bonsai already installed, I can install and activate Homemaker on latest Blender 4.4, 4.5 and Bonsai seems to work nevertheless. All open "new IFC from Demo Template"

    So maybe issues only happen when Bonsai is updated/installed after Homemaker. So I have to wait for next Bonsai daily update before I can test that.

  • @zoomer do you see this problem only on Mac?

  • edited August 2025

    I am not 100% sure but so far it looks so.
    Very likely though as there is no Windows or Linux user complaining and one even confirming no issues on Ubuntu.

    I thought I had also updated Bonsai in Blender on Windows and Elementary (Ubuntu with Pantheon desktop) and not noticed any issues. Usually I am on Mac only. And maybe the only Bonsai on Mac user ?

    But it is so strange on Mac. When I accidentally found Homemaker potentially problematic and tried, switching multiple times Homemaker on and off, I always got :

    • Homemaker on - Bonsai not working
    • Homemaker deactivated and restarting Blender - Bonsai working

    But Today I tried activating Homemaker on Mac again (as I saw it working on Elementary) and it works anyway in 4.4 and 4.5.

    Thought Bonsai would work also in 5 Alpha with Hommaker, as it loaded the Demo IFC - but failed drawing Walls. But looks like that is just Bonsai on 5 Alpha, as it also happens with Homemaker deactivated.

    Next chance to really confirm that it's Mac only is at around 14:00, when usually a new Bonsai build arrives, so far it is still 2025.8.21. When I update Blender and it will make fail Bonsai on Mac but still work on Windows and Elementary.

    Will wait for next Bonsai daily update and then confirm.

  • Win11 latest, blender 4.5.0, bonsai 0.8.4 alpha 250725, addons about 25 div. incl. homemaker 0.20250220.0, actual hardware drivers --> without problems (ifc4 & ifc4.3 incl. demo template)

  • Thanks for also confirming Windows.

  • With activated "homemakeraddon" and updated bonsai, I also got an error at creating a new project, after deactivating "homemaker", restarting blender and reactivating homemaker, everything worked as expected....

    zoomer
  • edited August 2025

    There came a Bonsai update.

    And it looks like it works even with Homemaker activated - on Mac !?
    Was something adapted or repaired in Bonsai ? (As I have the same Homemaker version as before ...)

    Also Elementary seems to work ...

    But now it does not work on Windows !?

  • @zoomer blender add-ons, and especially Bonsai, sometimes get into a mess where uninstalling and reinstalling is the only solution. Most likely this is a file locking issue during installation where an old file isn't replaced.

  • Yes, like it was with BlenderBIM. And first deactivating and restarting Blender before uninstalling.

    But I think I remember having tried uninstall-restart-install a few times.
    At my first Bonsai issues some months ago I even uninstalled Bonsai and went back to the official version, which also did not help.
    (BTW, deleting all pycaches also did nothing)

    brunopostle
Sign In or Register to comment.