Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zenmap installing issues over python #624

Open
peterpt opened this issue Dec 22, 2016 · 1 comment
Open

zenmap installing issues over python #624

peterpt opened this issue Dec 22, 2016 · 1 comment

Comments

@peterpt
Copy link

peterpt commented Dec 22, 2016

Trying with python 3 or python 3.5 get me SyntaxError: invalid token
Using python 2.7.9
#:/nmap/zenmap# python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/zenmap to 755
running install_data
running install_egg_info
Writing /usr/local/lib/python2.7/site-packages/zenmap-7.40SVN-py2.7.egg-info
Traceback (most recent call last):
File "setup.py", line 652, in
setup(**setup_args)
File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 249, in run
self.fix_paths()
File "setup.py", line 401, in fix_paths
"CONFIG_DIR": os.path.join(self.saved_prefix, config_dir),
File "/usr/local/lib/python2.7/posixpath.py", line 77, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Nmap installed from git was perfect and is running ok , but zenmap is unable to install or open gui .

@Varunram
Copy link

@peterpt This issue seems to have been reported earlier and addressed by @dmiller-nmap in the nmap-dev archives. Link - (http://seclists.org/nmap-dev/2014/q2/315)

From: Daniel Miller <bonsaiviking () gmail com>
Date: Tue, 20 May 2014 18:41:38 -0500
Hello,

Zenmap's build process currently depends on some actions taken by the
configure script and the Makefile. I am not surprised that you ended up
with errors after pulling it out of the Nmap source tree.

That said, if you have suggestions for how we can be more Pythonic in our
approach to building and installing our Python programs (Zenmap and Ndiff),
we welcome your input.

Thanks,
Dan

cclauss added a commit to cclauss/nmap that referenced this issue Nov 7, 2022
Prove the Python syntax errors as discussed in
* nmap#91
* nmap#342
* nmap#624
* nmap#665
* nmap#666
* nmap#1176
* nmap#1484
* nmap#1807
* nmap#1972
* nmap#2088 
* nmap#2279
* nmap#2287
* nmap#2446
* nmap#2493
* nmap#2522
And many more...
cclauss added a commit to cclauss/nmap that referenced this issue Nov 7, 2022
Prove the Python syntax errors as discussed in
* nmap#91
* nmap#342
* nmap#624
* nmap#665
* nmap#666
* nmap#1176
* nmap#1484
* nmap#1807
* nmap#1972
* nmap#2088 
* nmap#2279
* nmap#2287
* nmap#2446
* nmap#2493
* nmap#2522
And many more...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants