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 fails to start #2279

Closed
AsifIqbal093 opened this issue Mar 28, 2021 · 4 comments
Closed

zenmap fails to start #2279

AsifIqbal093 opened this issue Mar 28, 2021 · 4 comments
Labels

Comments

@AsifIqbal093
Copy link

  File "/usr/bin/zenmap", line 114
      except ImportError, e:
                        ^
  SyntaxError: invalid syntax

how to fix this

@teke6
Copy link

teke6 commented Feb 17, 2022

++++

@localhost-server
Copy link

zenmap requires python2 to run not python3
by default python in written in the shbang part of zenmap file /usr/bin/zenmap
check how will u access python2 in your terminal
by writing python or python2
now run sudo nano /usr/bin/zenmap and edit the first line to use python2
u r done

@elkondor000
Copy link

hello everyone i was have the same probleme but i fix only go to /usr/bin/zenmap
change first line to #!/usr/bin/env python TO #!/usr/bin/env python 2
and install this package too
wget http://es.archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb
sudo dpkg -i libffi7_3.3-4_amd64.deb
after that you can run your tool .

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...
@Abdullrahman-Dawaliby
Copy link

just install python-is-python2 in your pc
sudo apt-get install python-is-python2 -y
Note: I assume that you have Debian or Ubuntu installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@AsifIqbal093 @elkondor000 @localhost-server @teke6 @Abdullrahman-Dawaliby and others