Closed tps800 closed 5 years ago
Hi, both python-gvm and gvm-tools require python >= 3.5. We don't support python 2.
In this case it would be best to change the chbang in all tools requiring python3 from
#!/usr/bin/python
to
#!/usr/bin/env python3
This way python3 would be used as long as it could be found within PATH
.
I've changed the shbang to #!/usr/bin/env python3
.
Python reports version Python 3.7.2rc1
But:
# gvm-cli
Traceback (most recent call last):
File "/usr/local/bin/gvm-cli", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3126, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3110, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3139, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 898, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 784, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'gvm-tools==2.0.0.dev1' distribution was not found and is required by the application
Something else must be missing too ...
pkg_resources.DistributionNotFound: The 'gvm-tools==2.0.0.dev1' distribution was not found and is required by the application
I guess something is mixed up in your installation. gvm-tools 2.0.0.dev1 is an old version from master branch. Also the package name should be gvmtools nowadays.
Btw. if you are installing from git/github it will be easier for you to use pipenv for installation and handling dependencies. If you are installing from pypi please use pip.
gvm-cli
raises an exception right while starting with error invalid syntaxExpected behavior
Starting
gvm-cli
just startsgvm-cli
.Current behavior
Right while statring
gvm-cli
gives an exception with error invalid syntax:Steps to reproduce
GVM versions
gsad:
gvmd:
openvassd:
node:
redis-server:
Environment
Operating system:
Installation method / source: