[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] Add nmap
From: |
Leo Famulari |
Subject: |
Re: [PATCH 0/2] Add nmap |
Date: |
Tue, 15 Mar 2016 04:25:53 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Tue, Mar 15, 2016 at 09:07:03AM +0100, Taylan Ulrich Bayırlı/Kammer wrote:
> Leo Famulari <address@hidden> writes:
>
> > On Tue, Mar 15, 2016 at 08:50:52AM +0100, Taylan Ulrich Bayırlı/Kammer
> > wrote:
> >> Leo Famulari <address@hidden> writes:
> >>
> >> > This package provides nmap [0].
> >>
> >> Ah, thanks for doing this! I've had an nmap branch for ages that I
> >> couldn't get to work because I couldn't get the Python module loading to
> >> work right.
> >
> > I've had this branch for a while too. I don't remember any issues with
> > Python — does everything work for you with this package?
>
> My issues were with zenmap and I think ndiff.
Turns out this package some problems here too, at least with ndiff (I
punted on zenmap for now). Here's what happens when I try to use ndiff:
---
$ ndiff -v scanme-1.xml scanme-2.xml
Could not import the ndiff module: 'No module named ndiff'.
I checked in these directories:
/gnu/store/rg21w23czkv880haxsx5yps2a8672d6f-nmap-7.01/bin
/gnu/store/qpzhyhjkj81qshbq2al9sjx4wxamq0zs-python-2.7.10/lib/python27.zip
/gnu/store/qpzhyhjkj81qshbq2al9sjx4wxamq0zs-python-2.7.10/lib/python2.7
/gnu/store/qpzhyhjkj81qshbq2al9sjx4wxamq0zs-python-2.7.10/lib/python2.7/plat-linux2
/gnu/store/qpzhyhjkj81qshbq2al9sjx4wxamq0zs-python-2.7.10/lib/python2.7/lib-tk
/gnu/store/qpzhyhjkj81qshbq2al9sjx4wxamq0zs-python-2.7.10/lib/python2.7/lib-old
/gnu/store/qpzhyhjkj81qshbq2al9sjx4wxamq0zs-python-2.7.10/lib/python2.7/lib-dynload
/home/leo/.local/lib/python2.7/site-packages
/gnu/store/qpzhyhjkj81qshbq2al9sjx4wxamq0zs-python-2.7.10/lib/python2.7/site-packages
If you installed Ndiff in another directory, you may have to add the
modules directory to the PYTHONPATH environment variable.
---
I think I need to set the PYTHONPATH to point to the libraries in nmap's
store directory. I think it would be easily accomplished if I could apply
some phases of the python-build-system. Is that possible?
Or maybe it would be enough to just make a wrapper that points to
/gnu/store/...-nmap/lib/python2.7 or something like that.
I wonder if the PYTHONPATH needs anything else? I bet if I solved this
it would be easy to also build zenmap.
Re: [PATCH 0/2] Add nmap, Ludovic Courtès, 2016/03/27