ejwa / gitinspector

:bar_chart: The statistical analysis tool for git repositories
GNU General Public License v3.0
2.34k stars 324 forks source link

gitinspector is not executing #245

Open juliswer opened 2 months ago

juliswer commented 2 months ago

Using python@3.12.3 and pip24.0 this is not working at all. Just following step by step and running the script by typing the following command on console (on macOS):

python3 ./gitinspector.py --format=json ./path-to-project

it's throwing:

WARNING: Localization disabled because the system language could not be determined.
Traceback (most recent call last):
  File "xx/gitinspector/gitinspector.py", line 20, in <module>
    from gitinspector import gitinspector
  File "xx/gitinspector/gitinspector.py", line 26, in <module>
    from .blame import Blame
  File "xx/gitinspector/gitinspector/blame.py", line 28, in <module>
    from .changes import FileDiff
  File "xx/gitinspector/gitinspector/changes.py", line 29, in <module>
    from . import extensions, filtering, format, interval, terminal
  File "xx/gitinspector/gitinspector/format.py", line 28, in <module>
    from . import basedir, localization, terminal, version
  File "xx/gitinspector/gitinspector/version.py", line 23, in <module>
    localization.init()
  File "xx/gitinspector/gitinspector/localization.py", line 71, in init
    __translation__.install(True)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/gettext.py", line 320, in install
    for name in allowed & set(names):

TypeError: 'bool' object is not iterable
Sammy159 commented 1 month ago

Same problem here. "This error occurs because a change was made to the gettext library in Python 3.10 that affects the install method. The names parameters, which were previously optional, are now required and must be iterable."