testing/sqlmap: ModuleNotFoundError: No module named 'thirdparty.six'
Hello, I get following error on latest sqlmap
. I'm running docker container alpine:edge
(20230901)
Installation
$ apk add --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing sqlmap
fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/40) Installing libbz2 (1.0.8-r6)
(2/40) Installing libexpat (2.5.0-r2)
(3/40) Installing libffi (3.4.4-r3)
(4/40) Installing gdbm (1.23-r1)
(5/40) Installing xz-libs (5.4.4-r0)
(6/40) Installing libgcc (13.1.1_git20230722-r2)
(7/40) Installing libstdc++ (13.1.1_git20230722-r2)
(8/40) Installing mpdecimal (2.5.1-r2)
(9/40) Installing ncurses-terminfo-base (6.4_p20230722-r0)
(10/40) Installing libncursesw (6.4_p20230722-r0)
(11/40) Installing libpanelw (6.4_p20230722-r0)
(12/40) Installing readline (8.2.1-r2)
(13/40) Installing sqlite-libs (3.43.0-r0)
(14/40) Installing python3 (3.11.5-r0)
(15/40) Installing python3-pycache-pyc0 (3.11.5-r0)
(16/40) Installing pyc (0.1-r0)
(17/40) Installing py3-six (1.16.0-r7)
(18/40) Installing py3-six-pyc (1.16.0-r7)
(19/40) Installing py3-soupsieve (2.5-r0)
(20/40) Installing py3-soupsieve-pyc (2.5-r0)
(21/40) Installing py3-beautifulsoup4 (4.12.2-r1)
(22/40) Installing py3-beautifulsoup4-pyc (4.12.2-r1)
(23/40) Installing py3-keepalive (0.5-r3)
(24/40) Installing py3-keepalive-pyc (0.5-r3)
(25/40) Installing py3-termcolor (2.3.0-r0)
(26/40) Installing py3-termcolor-pyc (2.3.0-r0)
(27/40) Installing py3-colorama (0.4.6-r3)
(28/40) Installing py3-colorama-pyc (0.4.6-r3)
(29/40) Installing py3-bottle (0.12.25-r1)
(30/40) Installing py3-bottle-pyc (0.12.25-r1)
(31/40) Installing py3-chardet (5.2.0-r0)
(32/40) Installing py3-chardet-pyc (5.2.0-r0)
(33/40) Installing libmagic (5.45-r1)
(34/40) Installing py3-magic (0.4.27-r2)
(35/40) Installing py3-magic-pyc (0.4.27-r2)
(36/40) Installing py3-pydes (2.0.1-r3)
(37/40) Installing py3-pydes-pyc (2.0.1-r3)
(38/40) Installing sqlmap-pyc (1.7.9-r0)
(39/40) Installing python3-pyc (3.11.5-r0)
(40/40) Installing sqlmap (1.7.9-r0)
Executing busybox-1.36.0-r5.trigger
OK: 81 MiB in 55 packages
Error
$ sqlmap
Traceback (most recent call last):
File "/usr/bin/sqlmap", line 33, in <module>
sys.exit(load_entry_point('sqlmap==1.7.9', 'console_scripts', 'sqlmap')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/sqlmap", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, 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_frames_removed
File "/usr/lib/python3.11/site-packages/sqlmap/sqlmap.py", line 52, in <module>
from lib.core.common import banner
File "/usr/lib/python3.11/site-packages/sqlmap/lib/core/common.py", line 189, in <module>
from lib.utils.sqlalchemy import _sqlalchemy
File "/usr/lib/python3.11/site-packages/sqlmap/lib/utils/sqlalchemy.py", line 42, in <module>
from thirdparty.six.moves import urllib as _urllib
ModuleNotFoundError: No module named 'thirdparty.six'