Closed hobson closed 3 years ago
Removing True
from that line worked for me - localization.py:71
- __translation__.install(True)
+ __translation__.install()
Python 3.9.0 macOS 10.14.6
Yep - seems the API changed here in more recent bindings of gettext. Will take a proper look for the next release. Thank you for the report and solution.
Closing this, as it is a duplicate. See #213 for the original reported issue.
Python 3.9.4 on Windows 10 20H2
It still gives the following error after making the change proposed by @maccuaa
C:\dev\python\lib\subprocess.py:941: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
self.stdout = io.open(c2pread, 'rb', bufsize)
Traceback (most recent call last):
File "C:\Users\Thiago\AppData\Roaming\npm\node_modules\gitinspector\gitinspector.py", line 24, in <module>
gitinspector.main()
File "C:\Users\Thiago\AppData\Roaming\npm\node_modules\gitinspector\gitinspector\gitinspector.py", line 206, in main
run.process(repos)
File "C:\Users\Thiago\AppData\Roaming\npm\node_modules\gitinspector\gitinspector\gitinspector.py", line 58, in process
localization.disable()
File "C:\Users\Thiago\AppData\Roaming\npm\node_modules\gitinspector\gitinspector\localization.py", line 106, in disable
gettext.NullTranslations().install(True)
File "C:\dev\python\lib\gettext.py", line 354, in install
for name in allowed & set(names):
TypeError: 'bool' object is not iterable
Removing True
from localization.py:106
worked for me, although still receiving the following warning:
C:\dev\python\lib\subprocess.py:941: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
self.stdout = io.open(c2pread, 'rb', bufsize)
Environment
Ubuntu 20.04 Python 3.7.9:
conda create -n py38 'python>=3.8,<3.9' && conda activate py38
Reproduce
Traceback
Workaround
downgrade to python <3.8