Error in installing gvm-tools

gvm-tools

#1

Hi! I am trying to install gvm-tools but I get this error.

Blockquote
Collecting gvm-tools
Using cached https://files.pythonhosted.org/packages/87/df/84d8bfb6a7f4c01a9e7fdcde3d48edf72242e422f8fd58c63e7492c7d5f4/gvm-tools-2.0.0b1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-_lDNbg/gvm-tools/setup.py”, line 27, in
version = import(‘gvmtools’).get_version()
File “gvmtools/init.py”, line 22, in
from gvm.utils import get_version_string
ImportError: No module named gvm.utils
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-_lDNbg/gvm-tools/
You are using pip version 8.1.1, however version 19.0.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

I have python 2.7 and 3.5 installed on my Ubuntu machine. I tried the solutions I saw from the internet but I can’t complete the installation


#2

You should consider upgrading via the ‘pip install --upgrade pip’ command.

You should really update pip. Your version is very old.

Did you try to install gvm-tools from pypi or from a local checkout (or url to github)? The latter wont work currently because 2.0beta1 requires python-gvm to be installed before running setup.py. This issue will be fixed in the final 2.0 release.

After updating pip you can try

pip install python-gvm
pip install gvm-tools

And by the way gvm-tools does NOT support Python 2.7. See

https://gvm-tools.readthedocs.io/en/latest/install.html


#3

Thanks! I already updated my pip.
After that I try to install python-gvm and I get this error.

BlockquoteTraceback (most recent call last):
File “/usr/bin/pip”, line 9, in
from pip import main
ImportError: cannot import name main

same with pip install gvm-tools


#4

Something with your update of pip did go wrong. I am sorry I can’t give further advises to fix the installation of pip.