mrschyte / nmap-converter

Python script for converting nmap reports into XLS
BSD 2-Clause "Simplified" License
336 stars 87 forks source link

No module named libnmap.parser #6

Closed gabyavra closed 4 years ago

gabyavra commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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