Nmap Development mailing list archives
Re: Zenmap build not using Python 2.X?
From: Patrick Donnelly <batrick () batbytes com>
Date: Wed, 7 Mar 2012 00:18:47 -0500
On Tue, Mar 6, 2012 at 10:17 PM, David Fifield <david () bamsoftware com> wrote:
On Sun, Mar 04, 2012 at 01:15:25AM -0500, Patrick Donnelly wrote:Hi list, I have an Arch Linux system with the latest Python 3: $ python --version Python 3.2.2 When Zenmap tries to do setup I get this error: cd zenmap && /usr/bin/python setup.py build File "setup.py", line 307 mode = ((os.stat(uninstaller_filename)[ST_MODE]) | 0555) & 07777 ^ SyntaxError: invalid token make[1]: *** [build-zenmap] Error 1 I suspect that configure isn't looking for the proper version of Python which is I think 2.7: $ python2.7 --version Python 2.7.2The problem is that the AM_PATH_PYTHON Autoconf macro allows you to specify a minimum but not a maximum version. The best way to work around this is to define PYTHON when you configure. PYTHON=python2.7 ./configure
Is there a way to add an option to configure via autoconf? That's where I looked first to resolve the problem but didn't see anything for it. Thanks David for the help! -- - Patrick Donnelly _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Zenmap build not using Python 2.X? Patrick Donnelly (Mar 03)
- Re: Zenmap build not using Python 2.X? David Fifield (Mar 06)
- Re: Zenmap build not using Python 2.X? Patrick Donnelly (Mar 06)
- Re: Zenmap build not using Python 2.X? David Fifield (Mar 08)
- Re: Zenmap build not using Python 2.X? Patrick Donnelly (Mar 06)
- Re: Zenmap build not using Python 2.X? David Fifield (Mar 06)