If when opening addon-manager & clicking on the "Macros" tab, you see the below message in the Report View, then you're missing GitPython module
Code: Select all
GitPython not installed! Cannot retrieve macros from git
If when opening addon-manager & clicking on the "Macros" tab, you see the below message in the Report View, then you're missing GitPython module
Code: Select all
GitPython not installed! Cannot retrieve macros from git
Yup - that's what I see in the report view. So..... I have no clue about git - and it's not installed on my computer. Is it possible to install git python and not git, just to get to see the macros that are on the git repository, or is this too cumbersome for a newbie.openBrain wrote: ↑Fri Jul 23, 2021 2:34 pmIf when opening addon-manager & clicking on the "Macros" tab, you see the below message in the Report View, then you're missing GitPython moduleCode: Select all
GitPython not installed! Cannot retrieve macros from git
How did you install ? I'm not so familiar with MacOS but I guess you use .dmg files who are standalone apps (like AppImage are). In this case FreeCAD uses the Python that is bundled and you have to install GitPython there.
Code: Select all
from git import Repo
openBrain wrote: ↑Sun Jul 25, 2021 5:49 pmI get this error message:chrisb wrote: ↑Fri Jul 23, 2021 9:24 pm What if you enter this in Python Console ?Code: Select all
from git import Repo
There seems to be indeed a clash between the system installation and the FreeCAD Python.Code: Select all
>>> from git import Repo Traceback (most recent call last): File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.9/site-packages/git/__init__.py", line 87, in <module> refresh() File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.9/site-packages/git/__init__.py", line 76, in refresh if not Git.refresh(path=path): File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.9/site-packages/git/cmd.py", line 243, in refresh cls().version() File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.9/site-packages/git/cmd.py", line 585, in <lambda> return lambda *args, **kwargs: self._call_process(name, *args, **kwargs) File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.9/site-packages/git/cmd.py", line 1124, in _call_process return self.execute(call, **exec_kwargs) File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.9/site-packages/git/cmd.py", line 928, 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 "<input>", line 1, in <module> File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/lib/python3.9/site-packages/git/__init__.py", line 89, 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' >>>
Yes agreed
Thanks for the help. I fixed my installation and now it works (after restarting FreeCAD).