OSArch Community

Problem installing BlenderBIM on Mac M1, Blender 3.5.1

  1. R

    I have attempted to install BlenderBIM several times according to the documentation and video tutorial, but after installing, when I attempt to check the box next to the add-on to activate it, I get this error:

    
    Traceback (most recent call last):
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/libs/site/packages/git/__init__.py", line 89, in <module>
    
        refresh()
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/libs/site/packages/git/__init__.py", line 76, in refresh
    
        if not Git.refresh(path=path):
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/libs/site/packages/git/cmd.py", line 318, in refresh
    
        cls().version()
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/libs/site/packages/git/cmd.py", line 741, in <lambda>
    
        return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/libs/site/packages/git/cmd.py", line 1315, in _call_process
    
        return self.execute(call, **exec_kwargs)
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/libs/site/packages/git/cmd.py", line 1109, in execute
    
        raise GitCommandError(redacted_command, status, stderr_value, stdout_value)
    
    git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
    
      cmdline: git version
    
      stderr: 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun'
    
    
    The above exception was the direct cause of the following exception:
    
    
    Traceback (most recent call last):
    
      File "/Applications/Blender.app/Contents/Resources/3.5/scripts/modules/addon_utils.py", line 333, in enable
    
        mod = __import__(module_name)
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/__init__.py", line 40, in <module>
    
        import blenderbim.bim
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/bim/__init__.py", line 22, in <module>
    
        from . import handler, ui, prop, operator, helper
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/bim/handler.py", line 23, in <module>
    
        import blenderbim.tool as tool
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/tool/__init__.py", line 33, in <module>
    
        from blenderbim.tool.ifcgit import IfcGit
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/tool/ifcgit.py", line 6, in <module>
    
        import git
    
      File "/Users/roy/Library/Application Support/Blender/3.5/scripts/addons/blenderbim/libs/site/packages/git/__init__.py", line 91, in <module>
    
        raise ImportError("Failed to initialize: {0}".format(exc)) from exc
    
    ImportError: Failed to initialize: Cmd('git') failed due to: exit code(1)
    
      cmdline: git version
    
      stderr: 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun'
    

    Any help resolving this would be greatly appreciated.

  2. B

    This looks like a bug. The new Git module in blenderbim needs the git executable to be installed in your PATH, but it should fail gracefully and let you proceed. This was tested on Linux and Windows, but not on OSX.

    Can anyone help here? The message looks like there may be a missing tool called xcrun, or possibly a missing path /Library/Developer/CommandLineTools.

    Do other users have problems on OSX? Stackoverflow suggests this is a problem caused by a broken xcode installation.

  3. B
  4. B
  5. R

    @brunopostle Thank you for the helpful response(s).

    I ran xcode-select --install and that seems to have resolved the issue.

Login or Register to reply.