Closed gabyavra closed 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
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?
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
Oh, forgive me for not looking at the code carefully, this problem has been solved
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.