Code Monkey home page Code Monkey logo

Comments (13)

Global-Occult avatar Global-Occult commented on July 19, 2024 5

ns = nmap.PortScanner()
AttributeError: partially initialized module 'nmap' has no attribute 'PortScanner' (most likely due to a circular import)

I DID RE-INSTALLED MANY TIMES THE SAME WAY AS PEOPLE DID HERE, STILL GET THIS SHIT. HELP

Did you name your script as nmap.py or python-nmap.py ?
Try changing the name

from ipv4bypass.

jingrena avatar jingrena commented on July 19, 2024 3

hello,
I also have this problem, but I have done your methods while it doesn't work

from ipv4bypass.

milo2012 avatar milo2012 commented on July 19, 2024 2

from ipv4bypass.

r3nhat avatar r3nhat commented on July 19, 2024

Hello,

Thanks for your reply!

I had both nmap and python-nmap installed.
What i did is to uninstall both and then: pip install python-nmap

Now is working.

Thank you!

from ipv4bypass.

fbbfnc avatar fbbfnc commented on July 19, 2024

hello,
I also have this problem, but I have done your methods while it doesn't work

Same here! I'm in a virtualenv by the way

from ipv4bypass.

milo2012 avatar milo2012 commented on July 19, 2024

from ipv4bypass.

CoderAtomCreator avatar CoderAtomCreator commented on July 19, 2024

Requirement already satisfied: python-nmap in c:\users\atomsecurity\appdata\local\programs\python\python38-32\lib\site-packages (0.6.1) ...
HELP PLEASE

from ipv4bypass.

Mitch930 avatar Mitch930 commented on July 19, 2024

Requirement already satisfied: python-nmap in c:\users\atomsecurity\appdata\local\programs\python\python38-32\lib\site-packages (0.6.1) ...
HELP PLEASE

Having the same problem. Help would be greatly appreciated.

from ipv4bypass.

milo2012 avatar milo2012 commented on July 19, 2024

pip uninstall nmap
pip install python-nmap

That will fix the issue

from ipv4bypass.

Ibizinis avatar Ibizinis commented on July 19, 2024

ns = nmap.PortScanner()
AttributeError: partially initialized module 'nmap' has no attribute 'PortScanner' (most likely due to a circular import)

I DID RE-INSTALLED MANY TIMES THE SAME WAY AS PEOPLE DID HERE, STILL GET THIS SHIT. HELP

from ipv4bypass.

Ikenahim avatar Ikenahim commented on July 19, 2024

@Ibizinis if you still have the problem this will fix it for u,
-download python-nmap from here http://xael.org/pages/python-nmap-en.html

  • unzip and cd to the folder
  • open cmd command for windows and run python setup.py install
    check the installed version by
    -python install nmap-python

goodluck

from ipv4bypass.

TorhamDev avatar TorhamDev commented on July 19, 2024

Hello friends
In fact, you need to have the lamp installed on your operating system

For example, I use Fedora Linux

sudo dnf install nmap

You must have nmap installed on your operating system.

But if you still get the same error, follow these steps:

pip uninstall nmap

or

pip uninstall python-nmap

and

pip install -i https://mirrors.aliyun.com/pypi/simple/ python-nmap

I hope your problem is solved :)

from ipv4bypass.

ncx-official avatar ncx-official commented on July 19, 2024

Please note that if your project file is named 'nmap.py' and you are attempting to import the 'nmap' library (python-nmap), it may not function as expected. To resolve this issue, consider renaming your file.

from ipv4bypass.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.