Nmap Development mailing list archives
Re: ndiff on osx anomoly
From: mail lyst <maillyst () gmail com>
Date: Fri, 16 Oct 2015 05:52:54 -0600
Dan, Tested successfully yesterday. Thank you! n0mad On 10/15/15, Daniel Miller <bonsaiviking () gmail com> wrote:
n0mad, We made a change in 6.49BETA5 that should have solved this problem. We would very much appreciate if you could test this and let us know if it solves the issue for you. https://nmap.org/download.html Dan On Wed, Aug 19, 2015 at 7:02 PM, Daniel Miller <bonsaiviking () gmail com> wrote:n0mad, Thank you for this very detailed bug report! The /Users/david/ path is a leftover from our build system, and should not be present. I will work on resolving this for the next BETA release. We will track this issue on our issue tracker here: http://issues.nmap.org/201 Dan On Tue, Aug 18, 2015 at 8:55 PM, mail lyst <maillyst () gmail com> wrote:dev@nmap: on a relatively new mpb running 10.10.4, installed nmap 6.47 some months ago. finally got round to using zenmap compare which failed in import of ndiff. the rest of my nmap/nping use has been fine. on 8/17 I upgraded to 6.49beta and ndiff still fails - although it could certainly be something wrong in my environment. see *** comments in the chronological flow of diagnostic queries and repair attempts. *** After 6/49 beta installation using installer, not source code compilation: $ ndiff x y -bash: /usr/local/bin/ndiff: /Users/david/macports-10.8/Library/Frameworks/Python.framework/Versions/2.7/Re: bad interpreter: No such file or directory *** i don't recall installing macports on this machine so ......... $locate macports $ locate ndiff /Applications/MATLAB_R2015a.app/toolbox/mpc/mpc/@mpc/private/mpc_fundiff.m /Applications/MATLAB_R2015a.app/toolbox/simulink/simulink/@dependencies/@ModelDependencies/Indifferent.png /Applications/Xcode.app/Contents/Developer/usr/bin/opendiff /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/mergetools/opendiff /Applications/Xcode.app/Contents/Developer/usr/share/man/man1/opendiff.1 /Users/myname/bin/editors_ide/SmartGit.app/Contents/Resources/git/libexec/git-core/mergetools/opendiff /usr/bin/opendiff /usr/local/Library/Formula/ndiff.rb /usr/local/Library/Formula/vbindiff.rb /usr/local/bin/ndiff /usr/local/lib/python2.6/site-packages/ndiff.py /usr/local/lib/python2.6/site-packages/ndiff.pyc /usr/local/share/man/man1/ndiff.1 /usr/share/emacs/22.1/etc/images/smilies/indifferent.xpm *** no david uses this machine and macports not installed $ egrep -bHin david /usr/local/bin/ndiff /usr/local/bin/ndiff:1:0:#!/Users/david/macports-10.8/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /usr/local/bin/ndiff:13:426:# David Fifield *** not sure when the ndiff libs were installed but ...... they are in the wrong library $ ls -alt /usr/local/lib/python2.6/site-packages/ndiff* -rw-rw-r-- 1 root wheel 54949 Aug 21 2014 /usr/local/lib/python2.6/site-packages/ndiff.pyc -rwxrwxr-x 1 root wheel 54699 Aug 12 2014 /usr/local/lib/python2.6/site-packages/ndiff.py *** so i replaced david macports python with /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python $ sudo vi /usr/local/bin/ndiff *** didn't expect this to fix it given the library anomaly but now I'm back to the behavor I saw in nmap 6.47. $ ndiff x y Could not import the ndiff module: 'No module named ndiff'. I checked in these directories: /usr/local/bin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC /Library/Python/2.7/site-packages If you installed Ndiff in another directory, you may have to add the modules directory to the PYTHONPATH environment variable. *** so put ndiff.py* some place similar ala $sudo cp /usr/local/lib/python2.6/site-packages/ndiff.py /usr/local/lib/python2.7/site-packages/ndiff.py $ sudo cp /usr/local/lib/python2.6/site-packages/ndiff.pyc /usr/local/lib/python2.7/site-packages/ndiff.pyc *** which isn't enough to fix the problem so: PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python2.7/site-packages/" export PYTHONPATH *** but that didn't solve the problem either, in fact pythonpath seems ineffective ndiff Could not import the ndiff module: 'No module named ndiff'. I checked in these directories: /usr/local/bin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC /Library/Python/2.7/site-packages If you installed Ndiff in another directory, you may have to add the modules directory to the PYTHONPATH environment variable. Sorry could not have been more help, n0mad _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: ndiff on osx anomoly Daniel Miller (Oct 15)
- Re: ndiff on osx anomoly mail lyst (Oct 16)