-
Notifications
You must be signed in to change notification settings - Fork 328
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
after npm install
#213
Comments
Right, it's for python2 |
This should be re-opoened. It appears this is a recent break due to Python 3.8.x. I can run everything fine using Python 3.6.6 but today I upgraded to 3.8.5 and am getting the same error you were.
Environment:
|
Indeed. It seems to be something in the gettext module that has changed. There is a patch in debian atm for reference that you could try @FeXd. Though, unlike the patch, I think |
I too use Python 3.8.5 and was getting the same error as others on this post, tried the old faithful delete and re-installed, get this error. I am not sure if this is or not related to this post but I suspect it's related to the python version.
|
still not fixed? |
Not yet @ezhukovskiy . Until its included in a release - temporary fix available in in #216 and the comment above. I need to make sure it works with all versions of the gettext dependency. |
- Bump PORTREVISION for package change PR: 254504 Submitted by: kai Obtained from: https://sources.debian.org/data/main/g/gitinspector/0.4.4+dfsg-9/debian/patches/Drop-superfluous-argument-to-NullTranslations.install.patch Reference: ejwa/gitinspector#213 (comment) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@569587 35697150-7ecd-e111-bb59-0022644237b5
- Bump PORTREVISION for package change PR: 254504 Submitted by: kai Obtained from: https://sources.debian.org/data/main/g/gitinspector/0.4.4+dfsg-9/debian/patches/Drop-superfluous-argument-to-NullTranslations.install.patch Reference: ejwa/gitinspector#213 (comment) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@569587 35697150-7ecd-e111-bb59-0022644237b5
- Bump PORTREVISION for package change PR: 254504 Submitted by: kai Obtained from: https://sources.debian.org/data/main/g/gitinspector/0.4.4+dfsg-9/debian/patches/Drop-superfluous-argument-to-NullTranslations.install.patch Reference: ejwa/gitinspector#213 (comment)
- Bump PORTREVISION for package change PR: 254504 Submitted by: kai Obtained from: https://sources.debian.org/data/main/g/gitinspector/0.4.4+dfsg-9/debian/patches/Drop-superfluous-argument-to-NullTranslations.install.patch Reference: ejwa/gitinspector#213 (comment)
Hi, I am getting the same error running on latest python version '3.9.4' with below 'gitinspector' command. can you please help me with this? Environment: windows: 10 Enterprise Logs: Traceback (most recent call last):
File "C:\Users\devops_mgr\gitinspector-0.4.4\gitinspector\gitinspector.py", line 25, in <module>
localization.init()
File "C:\Users\devops_mgr\gitinspector-0.4.4\gitinspector\localization.py", line 76, in init
__translation__.install(True)
File "C:\Users\devops_mgr\AppData\Local\Programs\Python\Python39\lib\gettext.py", line 354, in install
for name in allowed & set(names):
TypeError: 'bool' object is not iterable ``` |
Hi @nishanthkumar23, there's a workaround that may work for you while the fix isn't released. |
Wow, it's almost a year since this issue was created, and it just happened to me too 😞 |
He, same here! waiting on a proper fix. Azure DevOps hosted ubuntu agent:
My "fix" inspired by maccuaa and thiagodp # Note: I have hardcoded the path, this might be different for you.
#
# If this file exists, chain on success with &&...
# sed -i means: inline replace (overwrite file)
# replace .install(True) with .install()
[ -f /usr/local/lib/node_modules/gitinspector/gitinspector/localization.py ] \
&& sed -i s'/.install(True)/.install()/' /usr/local/lib/node_modules/gitinspector/gitinspector/localization.py |
Going a step further from abij: Here's something for Windows 10 using %USERPROFILE% for global install of gitinspector. (works in git bash): #!/bin/bash
# If this file exists
# sed -i means: inline replace (overwrite file)
# replace .install(True) with .install()
PATCHFILE="${USERPROFILE}/AppData/Roaming/npm/node_modules/gitinspector/gitinspector/localization.py"
POSIX_PATH=`cygpath $PATCHFILE`
if test -f $POSIX_PATH; then
echo $POSIX_PATH
sed -i s'/.install(True)/.install()/' $POSIX_PATH
fi |
Still happening Ubuntu 20.04
|
This worked for me Windows 10, Cygwin, Python 3.8.10. |
Still happening when using the search making mylar3 unusable. Python Version : 3.9.7
|
still happens even with the patch on localization.py... |
fresh install on Windows 11 result:
|
Temporary solution use python 3.7 to run the program :
|
Hi,
I can't get gitinspector to run from the
npm
package; after a clean install it crashes withEnvironment:
The text was updated successfully, but these errors were encountered: