Skip to content

tool.blender.ensure_bin_in_path issue in packaged context #7157

@CyrilWaechter

Description

@CyrilWaechter

Bug Description

Another packaged context issue. When activating Bonsaï using AUR package I get message below. I might be wrong but there is a bin folder only if these binaries are not already available system-wide.

Attachments

No response

Debug and Error Output

Exception in module register(): /usr/share/blender/4.5/extensions/system/bonsai/__init__.py
Traceback (most recent call last):
  File "/usr/share/blender/4.5/scripts/modules/addon_utils.py", line 515, in enable
    mod.register()
    ~~~~~~~~~~~~^^
  File "/usr/share/blender/4.5/extensions/system/bonsai/__init__.py", line 278, in register
    bonsai.bim.register()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/bonsai/bim/__init__.py", line 280, in register
    tool.Blender.ensure_bin_in_path()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/bonsai/tool/blender.py", line 486, in ensure_bin_in_path
    for filename in os.listdir(bin_dir):
                    ~~~~~~~~~~^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.13/site-packages/bonsai/libs/bin'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions