Name 'host' is not defined when trying to import_report

Hi guys,

I’m encountering this issue:

when importing a report by using gmp.import_report. My report probably having host element - the xpath I’m using is report.xpath('host') as you can also see in attached image. FYI, I’m using:
GMP v21.4.
GSA v21.4.3
GVM v21.4.4
gvm-libs v21.4.3

Any help would be very appreciated as this is kinda urgent to me, thank you in advance!

Hi @Apo and welcome to the forum :slight_smile:

You have probably already been here, but just in case- here is some documentation python-gvm: Python API for the Greenbone Vulnerability Manager — python-gvm 21.11.1.dev1 documentation and I’m also bumping this for visibility to see if anyone has any insight.

2 Likes