Wednesday, December 19, 2007

Broken Nmapfe Package

Someone on LQ posted a message about a broken Nmapfe after he upgrade to the latest version of Nmap on -Current (4.50). I tried to reproduce the error and i got this error message when i execute it from terminal:

Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/bin/nmapfe", line 59, in excepthook
import gtk
ImportError: No module named gtk

Original exception was:
Traceback (most recent call last):
File "/usr/bin/nmapfe", line 150, in
File "/tmp/package-nmap/usr/lib/python2.5/site-packages/zenmapGUI/", line 96, in run
File "/tmp/package-nmap/usr/lib/python2.5/site-packages/zenmapGUI/", line 100, in __run_gui
ImportError: No module named gtk

It's quite different with the error message in LQ, but the overall is the same. It's because Slackware doesn't come with pygtk and sqlite (but i have installed this package by myself, so i didn't get the error message of missing sqlite libraries). Adding pygtk meaning that some packages will have to be recompiled as pygtk has been included in a lot of application nowadays and this will be the trend in the future.

While it's good to have a new feature by the inclusion of pygtk, a new problem arise, which is the CDROM discs capacity that won't enough to hold Slackware's ISO if new packages are always included in each version. Besides, it will reduce Slackware's motto which tries to be the most simple Linux distribution.

For now, you have two options. One is to go back to previous version (included in Slackware 12.0) or two, you can grab the SlackBuild and add a configure parameter --without-nmapfe to compile NMAP without Nmapfe interface. This has consequences that you have to work with Nmap in console or terminal, but that's most people do so i don't see this broken Nmapfe as a big problem.