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

Issue with nmap import. #71

Open
Vlad-Timofti opened this issue Apr 3, 2024 · 4 comments
Open

Issue with nmap import. #71

Vlad-Timofti opened this issue Apr 3, 2024 · 4 comments

Comments

@Vlad-Timofti
Copy link

Running the script sends a error stating that python can't find the nmap module.
After a brief lookup, nmap is installed globally as well as python-nmap and their paths are working.
I tried reinstalling nmap and python-nmap but the problem persists.

image

@RobertBond
Copy link

I encountered the same issue. I was pulling my hair out (not really) so I decided to look at the README.md file again.
The relevant portion is copied below.

Open terminal and paste the following commands :

git clone https://github.com/AzeemIdrisi/PhoneSploit-Pro.git
cd PhoneSploit-Pro/
pip install -r requirements.txt

I had forgotten to run the "pip install -r requirements.txt" command above. Running that command resolved that issue for me. Hope this helps anyone else who has encountered this issue.
/

@Vlad-Timofti
Copy link
Author

I did all the steps that you wrote above, but the issue remains.

@LaioX
Copy link

LaioX commented May 21, 2024

I did all the steps that you wrote above, but the issue remains.

Delete all versions of python.

Install version 3.12, then pip install python-nmap

@Mickekofi
Copy link

I did all the steps that you wrote above, but the issue remains.

This Can be Solved by Using a virtual environment and then installing nmap in it since you are getting "no module found"

[1] use these if you already have python3 and pip installed in their required versions

python3 -m venv ~/myenv

[2]Now always activate the environment before starting "python3 phonesploitpro.py", do;

source ~/myenv/bin/activate

[3]Lastly lets install nmap-module

pip install python-nmap

That all, don't forget to always activate the environment(method 2 above) before stating.
In a case where the problem still persist don't hesitate to comment again.
!Happy Exploit!

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

4 participants