all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: "Taylan Ulrich Bayırlı/Kammer" <taylanbayirli@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 0/2] Add nmap
Date: Tue, 15 Mar 2016 04:25:53 -0400	[thread overview]
Message-ID: <20160315082553.GA11456@jasmine> (raw)
In-Reply-To: <8737rs17x4.fsf@T420.taylan>

On Tue, Mar 15, 2016 at 09:07:03AM +0100, Taylan Ulrich Bayırlı/Kammer wrote:
> Leo Famulari <leo@famulari.name> writes:
> 
> > On Tue, Mar 15, 2016 at 08:50:52AM +0100, Taylan Ulrich Bayırlı/Kammer wrote:
> >> Leo Famulari <leo@famulari.name> 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.

  reply	other threads:[~2016-03-15  8:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-14 22:50 [PATCH 0/2] Add nmap Leo Famulari
2016-03-14 22:50 ` [PATCH 1/2] licenses: Add the nmap license Leo Famulari
2016-03-15  8:21   ` Ricardo Wurmus
2016-03-14 22:50 ` [PATCH 2/2] gnu: Add nmap Leo Famulari
2016-03-15  8:04   ` Taylan Ulrich Bayırlı/Kammer
2016-03-15  8:29     ` Leo Famulari
2016-03-15  8:47       ` Taylan Ulrich Bayırlı/Kammer
2016-03-15  8:24   ` Ricardo Wurmus
2016-03-15  7:50 ` [PATCH 0/2] " Taylan Ulrich Bayırlı/Kammer
2016-03-15  7:56   ` Leo Famulari
2016-03-15  8:07     ` Taylan Ulrich Bayırlı/Kammer
2016-03-15  8:25       ` Leo Famulari [this message]
2016-03-27 21:36 ` Ludovic Courtès
2016-03-27 21:44   ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160315082553.GA11456@jasmine \
    --to=leo@famulari.name \
    --cc=guix-devel@gnu.org \
    --cc=taylanbayirli@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.