Hi all,
I’m facing an issue when running a GVM script. The error I’m getting is as follows:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gvmtools/script.py", line 114, in main
run_script(args.scriptname, global_vars)
File "/usr/local/lib/python3.10/dist-packages/gvmtools/helper.py", line 216, in run_script
exec(file, global_vars) # pylint: disable=exec-used
File "<string>", line 14, in <module>
ModuleNotFoundError: No module named 'gvm.protocols.gmpv208'
I’m running the following command to execute the script:
sudo -u HOSTNAME gvm-script --gmp-username admin --gmp-password admin socket /home/user/Documents/..../../../script.py /home/.../ 33d0cd82-57c6-11e1-8ed1-406186ea4fc5
After some research, I found that the gmpv208
module may not be available or supported in the latest versions of python-gvm
. I’ve already tried updating my python-gvm
package using:
python3 -m pip install --upgrade python-gvm
Here’s what I get when I check the installed version:
Requirement already satisfied: python-gvm in /root/.local/lib/python3.10/site-packages (24.8.0)
Requirement already satisfied: lxml>=4.5.0 in /usr/local/lib/python3.10/dist-packages (from python-gvm) (5.3.0)
Requirement already satisfied: paramiko>=2.7.1 in /usr/lib/python3/dist-packages (from python-gvm) (2.9.3)
I’ve also tried replacing the import statement with the following as a temporary fix:
from gvm.protocols.gmp import GMPv225 as GMP
gvm-cli --gmp-username username --gmp-password password socket --xml "<get_version/>"
<get_version_response status="200" status_text="OK"><version>22.5</version></get_version_response>
it doesnt’ worked
Anyone?