Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10994 - Nmap package : missing pygtk dependancy

Attached to Project: Arch Linux
Opened by Simon Malinge (Tapi) - Wednesday, 23 July 2008, 13:32 GMT
Last edited by Hugo Doria (hdoria) - Wednesday, 23 July 2008, 18:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Hugo Doria (hdoria)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The new version of nmapfe (GUI for nmap) needs the pygtk package to run, but pygtk is not in nmap's dependancy list.

Additional info:
* package version : extra/nmap 4.68-2
* log w/o pygtk :

[tapi@dragibus ~]$ sudo nmapfe
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/bin/nmapfe", line 65, in excepthook
import gtk
ImportError: No module named gtk

Original exception was:
Traceback (most recent call last):
File "/usr/bin/nmapfe", line 157, in <module>
app.run()
File "/usr/lib/python2.5/site-packages/zenmapGUI/App.py", line 99, in run
self.__run_gui()
File "/usr/lib/python2.5/site-packages/zenmapGUI/App.py", line 109, in __run_gui
import gtk
ImportError: No module named gtk
[tapi@dragibus ~]$

Steps to reproduce:
Run nmapfe without pygtk package, eh... :)
This task depends upon

Closed by  Hugo Doria (hdoria)
Wednesday, 23 July 2008, 18:20 GMT
Reason for closing:  Fixed
Comment by Hugo Doria (hdoria) - Wednesday, 23 July 2008, 16:46 GMT
I do not think nmap should include pygtk as dependency. Many people use nmap on servers and/or do not need nmap's GUI. Nmap works very well without it.

However, I think pygtk could be add as a optional dependency.
Comment by Eric Belanger (Snowman) - Wednesday, 23 July 2008, 17:30 GMT
yes, optdepends would be better.
Comment by Gavin Bisesi (Daenyth) - Wednesday, 23 July 2008, 17:46 GMT
Absolutely, optdepends. I think a lot of people would be annoyed at the needless dep. I know I would for one.
Comment by Hugo Doria (hdoria) - Wednesday, 23 July 2008, 18:20 GMT
Fixed in nmap 4.68-3. Now pygtk is in optdepends array. You can check this with:

$ pacman -Qi nmap

Loading...