Gmp has no attribute types

Hi all, so I’m modifying the GVM script ( 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 ( which also makes use of the Enum types and I got the same error as well.