gitinspector
gitinspector copied to clipboard
ModuleNotFoundError: No module named 'localization' (python 3.9)
[root@fbsd /usr/ports/devel/gitinspector]# make install clean
===> Installing for gitinspector-py39-0.4.4_4 ===> Checking if gitinspector-py39 is already installed ===> Registering installation for gitinspector-py39-0.4.4_4 Installing gitinspector-py39-0.4.4_4... ===> Cleaning for py39-setuptools-63.1.0 ===> Cleaning for gitinspector-py39-0.4.4_4
[root@fbsd /usr/ports/devel/gitinspector]# cd
[root@fbsd ~]# gitinspector -h
Traceback (most recent call last):
File "/usr/local/bin/gitinspector", line 33, in
Thanks. Looks like a breaking change of some sort in Python 3.9.
Same here. Any updates on this?
Could be related to Python no longer supporting Python 2 as of 1 Jan 2020. Python 3.8 was released Oct 2019 and Python 3.9 in Oct 2020, so after the demise of Python 2.
Module gitinspector.localization
uses Python 2 functionality in __translation__.install(True)
, where True
is a Unicode flag used in Python 2. In Python 3, this flag is no longer present, so it should be __translation__.install()
. This occurs in three places in localization.py
(lines 71, 96 and 106).