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

No module named libnmap.parser #6

Closed
gabyavra opened this issue Apr 22, 2020 · 4 comments
Closed

No module named libnmap.parser #6

gabyavra opened this issue Apr 22, 2020 · 4 comments

Comments

@gabyavra
Copy link

gabyavra commented Apr 22, 2020

sudo -H pip install -r requirements.txt
Requirement already satisfied: python-libnmap in /Library/Python/3.7/site-packages (from -r requirements.txt (line 1)) (0.7.0)
Requirement already satisfied: XlsxWriter in /Library/Python/3.7/site-packages (from -r requirements.txt (line 2)) (1.2.8)

./nmap-converter.py -h
Traceback (most recent call last):
File "./nmap-converter.py", line 3, in
from libnmap.parser import NmapParser, NmapParserException
ImportError: No module named libnmap.parser

Any idea?
I have also tried pip3 and I have some issues.

Thank you.

@mrschyte mrschyte pinned this issue Apr 22, 2020
@mrschyte
Copy link
Owner

This seems to be an issue with your python evironment. Have you tried setting up the script using a virtualenv?

Try:

python3 -m venv venv
source venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
python3 nmap-converter.py

@gsh3ll
Copy link

gsh3ll commented Nov 23, 2020

Hello, I have the following problems in the process of using:
TypeError: super() argument 1 must be type, not classobj
How do I solve it?

@mrschyte
Copy link
Owner

Make sure you're running the script with Python3.

Try:

python3 -m venv venv
source venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
python3 nmap-converter.py

@gsh3ll
Copy link

gsh3ll commented Nov 24, 2020

Oh, forgive me for not looking at the code carefully, this problem has been solved

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

3 participants