I am the author of abqpy. abqpy requires you to run the abaqus script in a file so that it can use the abaqus cae command to submit the script to abaqus kernel. It seems that you run the abaqus code in an interactive python console in grasshopper, in this case abqpy does not know what script to submit to the abaqus kernel.