ejwa / gitinspector

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

TypeError: 'bool' object is not iterable #226

Open banbar opened 2 years ago

banbar commented 2 years ago

My settings: Windows 10

Command: C:\OSGeo4W\apps\Python39\python.exe gitinspector.py --format=html --timeline --since=2015-09-01 -w https://github.com/banbar/GMT-456-GIS-Programming > C:\Users\banbar\Desktop/1.html

Output: image

7henry767 commented 2 years ago

it seems only to work with python 2.x. Probably you are using 3.x

adam-waldenberg commented 2 years ago

Gitinspector works fine with 3.x. Though, some versions and some API's are constantly changing and breaking backward compatibility - gettext is an example of that.

ObiWahn commented 2 years ago

Same problem here on mac with brew.

fourofspades commented 2 years ago

Same issue on Windows.

Brikwerk commented 2 years ago

Quick note to those with this issue: I was able to get gitinspector to work on macOS with Python 3.7.13. It seems that the gettext API has changed from 3.7 to 3.9. I recommend running gitinspector again with Python 3.7 installed.

vizcay commented 1 year ago

The problem is that Python 3.7 or older versions is not supported for Apple M1:

brew install python@3.7
...
Warning: python@3.7 has been deprecated because it is deprecated upstream!
python@3.7: The x86_64 architecture is required for this software.
Error: python@3.7: An unsatisfied requirement failed this build.

Anybody knows how to solve this? Not a python dev unfortunately.

adam-waldenberg commented 1 year ago

@vizcay Yes. For now, move to Python 3.7. We need to figure out a good (not too hacky) way to support different versions of gettext - as it keeps changing :)

vizcay commented 1 year ago

@vizcay Yes. For now, move to Python 3.7. We need to figure out a good (not too hacky) way to support different versions of gettext - as it keeps changing :)

Looks like it can only be done with Rosetta: https://stackoverflow.com/questions/70315418/installing-python3-7-macbook-air-m1-problem. At least with homebrew.

Thanks but I will pass.

foxyseta commented 1 year ago

Same here. Any updates on this?

AugustH commented 1 year ago

as a quick hack: in gitinspector/localization.py replace (on line 71 and line 106) install(True) with install(None)

tested on Python 3.10, gives some warnings (unrelated to this problem) but output seems ok.

hlovdal commented 1 year ago

Same on Fedora 36.

(The True->None modification worked)

JTangming commented 1 year ago

Same on Python 3.11.3 (The True->None modification worked)

sral97 commented 3 months ago

Same on Fedora 39 with Python 3.11.8 (The True->None modification worked)

fuhrmanator commented 2 weeks ago

Related to #213