View Issue Details

IDProjectCategoryView StatusLast Update
0008197Kali LinuxGeneral Bugpublic2023-03-07 12:24
Reporterdevwithilja Assigned Tosbrun  
Status resolvedResolutionfixed 
Fixed in Version2023.1 
Summary0008197: wapiti is not working with python version3.11

After installing an extra python3.11 version it seems that wapiti stops to work.

I got so far tanks to the wapiti github issue report:

Were it is mentioned that wapiti only works on python version 3.9 and 3.10. I tested for python 3.11 and 3.10 only.

is it possible to make a requirement in the debian package for a specific python 3.9 or 3.10 version?
Or additially having in the executeable "wapiti" like a specific python version to be executed or so?

My dirty fix was
changing the default python3 version into python3.10
└─$ head -1 $(which wapiti)

I also thought maybe it is possible easily to solve it with update-alternatives , so the wapiti would be configured to be executed woth a specific python version .. but sadly I still didn't get it how to use it.

Steps To Reproduce

Installing python3.11 as a default python version and executing wapiti, will produce the error:

└─$ dpkg -l | grep -E "python3.[0-9]{0,2} "
ii python3.10 3.10.9-1 amd64 Interactive high-level object-oriented language (version 3.10)
ii python3.11 3.11.2-4 amd64 Interactive high-level object-oriented language (version 3.11)

└─$ python --version
Python 3.11.2

└─$ wapiti
Traceback (most recent call last):
File "/usr/bin/wapiti", line 33, in <module>
sys.exit(load_entry_point('wapiti3==3.0.4', 'console_scripts', 'wapiti')())
File "/usr/bin/wapiti", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.11/importlib/metadata/", line 202, in load
module = import_module('module'))
File "/usr/lib/python3.11/importlib/", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_framesremoved
File "/usr/lib/python3/dist-packages/wapitiCore/main/", line 41, in <module>
from wapitiCore.language.language import

File "/usr/lib/python3/dist-packages/wapitiCore/language/", line 62, in <module>
lan = gettext.translation(
TypeError: translation() got an unexpected keyword argument 'codeset'

Additional Information

└─$ uname -a
Linux kali 6.0.0-kali6-amd64 0000001 SMP PREEMPT_DYNAMIC Debian 6.0.12-1kali1 (2022-12-19) x86_64 GNU/Linux




2023-03-07 12:23

manager   ~0017626

This is now fixed

Issue History

Date Modified Username Field Change
2023-02-27 07:21 devwithilja New Issue
2023-03-01 13:25 sbrun Assigned To => sbrun
2023-03-01 13:25 sbrun Status new => assigned
2023-03-07 12:23 daniruiz Note Added: 0017626
2023-03-07 12:24 daniruiz Status assigned => resolved
2023-03-07 12:24 daniruiz Resolution open => fixed
2023-03-07 12:24 daniruiz Fixed in Version => 2023.1