Nmap Development mailing list archives
Re: Zenmap build not using Python 2.X?
From: David Fifield <david () bamsoftware com>
Date: Thu, 8 Mar 2012 18:06:22 -0800
On Wed, Mar 07, 2012 at 12:18:47AM -0500, Patrick Donnelly wrote:
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 ./configureIs 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.
I just regenerated with aclocal, and it at least mentions PYTHON now. I don't know if there's an easy way to add a --with option that would have the same effect. You can also set the variable as an argument to configure. ./configure PYTHON=/usr/bin/python2.7 David Fifield _______________________________________________ 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)