sqlmapproject/sqlmap · error · SqlmapMissingDependence
missing dependence (' ')
Error message
missing dependence ('%s') What it means
Raised by runGui when the tkinter imports (tkinter and its scrolledtext/ttk/messagebox/filedialog companions) fail, i.e. the optional GUI dependencies are absent from this Python installation; the ImportError text is embedded.
Solutions
- Install tkinter via the OS package (e.g. python3-tk on Debian/Ubuntu)
- Use a Python distribution that bundles tkinter
- Fall back to CLI or TUI operation
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at lib/utils/gui.py:1908 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/7111600bfa5acc54.
Report an issue: GitHub.
Appendix: source
Thrown at lib/utils/gui.py:1908
except Exception:
pass
self._cleanupConfigFile(self.processConfigFile)
try:
self.window.destroy()
except Exception:
pass
def runGui(parser):
try:
from thirdparty.six.moves import tkinter as _tkinter
from thirdparty.six.moves import tkinter_scrolledtext as _scrolledtext
from thirdparty.six.moves import tkinter_ttk as _ttk
from thirdparty.six.moves import tkinter_messagebox as _messagebox
from thirdparty.six.moves import tkinter_filedialog as _filedialog
from thirdparty.six.moves import tkinter_font as _font
except ImportError as ex:
raise SqlmapMissingDependence("missing dependence ('%s')" % getSafeExString(ex))
app = SqlmapGui(parser, _tkinter, _ttk, _scrolledtext, _messagebox, _filedialog, _font)
app.window.mainloop()
View on GitHub (pinned to 0a35b20e39)