gitinspector icon indicating copy to clipboard operation
gitinspector copied to clipboard

TypeError: 'bool' object is not iterable

Open banbar opened this issue 3 years ago • 14 comments

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

banbar avatar Oct 20 '21 12:10 banbar

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

7henry767 avatar Oct 26 '21 17:10 7henry767

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.

adam-waldenberg avatar May 04 '22 04:05 adam-waldenberg

Same problem here on mac with brew.

ObiWahn avatar May 10 '22 07:05 ObiWahn

Same issue on Windows.

fourofspades avatar Jul 05 '22 14:07 fourofspades

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.

Brikwerk avatar Jul 07 '22 19:07 Brikwerk

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

brew install [email protected]
...
Warning: [email protected] has been deprecated because it is deprecated upstream!
[email protected]: The x86_64 architecture is required for this software.
Error: [email protected]: An unsatisfied requirement failed this build.

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

vizcay avatar Dec 14 '22 01:12 vizcay

@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 :)

adam-waldenberg avatar Dec 17 '22 18:12 adam-waldenberg

@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.

vizcay avatar Dec 17 '22 18:12 vizcay

Same here. Any updates on this?

foxyseta avatar Dec 28 '22 00:12 foxyseta

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.

AugustH avatar Jan 05 '23 20:01 AugustH

Same on Fedora 36.

(The True->None modification worked)

hlovdal avatar Mar 23 '23 19:03 hlovdal

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

JTangming avatar Jun 02 '23 06:06 JTangming

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

sral97 avatar Apr 05 '24 09:04 sral97