Gmp has no attribute types

Hi all, so I’m modifying the GVM script scan-new-system.gmp.py (https://github.com/greenbone/gvm-tools/blob/master/scripts/scan-new-system.gmp.py) under the create_target function to add in an alive_test = gmp.types.AliveTest.CONSIDER_ALIVE.

Previously this has been working all along (I do a manual build from source) but for some reason something recently caused this to break when I decided to upgrade to GVM v21.04 and I’m getting the error 'Gmp' object has no attribute 'types'

Any advise would be much appreciated thanks!.

For reference, I ran this script (https://github.com/greenbone/gvm-tools/blob/master/scripts/cfg-gen-for-certs.gmp.py) which also makes use of the Enum types and I got the same error as well.