From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 0/2] Add nmap Date: Tue, 15 Mar 2016 04:25:53 -0400 Message-ID: <20160315082553.GA11456@jasmine> References: <87bn6g18o3.fsf@T420.taylan> <20160315075620.GA4300@jasmine> <8737rs17x4.fsf@T420.taylan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afkIf-0005co-W9 for guix-devel@gnu.org; Tue, 15 Mar 2016 04:25:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afkIc-0005dJ-NY for guix-devel@gnu.org; Tue, 15 Mar 2016 04:25:57 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afkIc-0005dF-J2 for guix-devel@gnu.org; Tue, 15 Mar 2016 04:25:54 -0400 Content-Disposition: inline In-Reply-To: <8737rs17x4.fsf@T420.taylan> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Taylan Ulrich =?utf-8?B?QmF5xLFybMSxL0thbW1lcg==?= Cc: guix-devel@gnu.org On Tue, Mar 15, 2016 at 09:07:03AM +0100, Taylan Ulrich Bayırlı/Kammer wrote: > Leo Famulari writes: > > > On Tue, Mar 15, 2016 at 08:50:52AM +0100, Taylan Ulrich Bayırlı/Kammer wrote: > >> Leo Famulari 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.