Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'bool' object is not iterable #226

Open
banbar opened this issue Oct 20, 2021 · 14 comments
Open

TypeError: 'bool' object is not iterable #226

banbar opened this issue Oct 20, 2021 · 14 comments

Comments

@banbar
Copy link

banbar commented Oct 20, 2021

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
Copy link

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

@adam-waldenberg
Copy link
Member

adam-waldenberg commented May 4, 2022

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
Copy link

ObiWahn commented May 10, 2022

Same problem here on mac with brew.

@fourofspades
Copy link

Same issue on Windows.

@Brikwerk
Copy link

Brikwerk commented Jul 7, 2022

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
Copy link

vizcay commented Dec 14, 2022

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.

@adam-waldenberg
Copy link
Member

@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
Copy link

vizcay commented Dec 17, 2022

@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
Copy link

Same here. Any updates on this?

@AugustH
Copy link

AugustH commented Jan 5, 2023

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
Copy link

hlovdal commented Mar 23, 2023

Same on Fedora 36.

(The True->None modification worked)

@JTangming
Copy link

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

YatingWang added a commit to YatingWang/gitinspector that referenced this issue Dec 28, 2023
@sral97
Copy link

sral97 commented Apr 5, 2024

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

@fuhrmanator
Copy link

Related to #213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests