I am working in the same directory as the python code and the topol.tpr definitely in that directory. Can someone give me a clue on how to solve that problem?
Furthermore, my second question is, whether the python code will run “gmx rama”, as I read the document that not all command can run by python. Thank you very much.
I forwarded your issue to the person developing the gromacs python API, Eric Irrgang. We’re currently very busy preparing the GROMACS 2021 beta release that is due in a few days, so it might take a few days for Eric to step in.
I don’t recall whether this reached me and got resolved through other channels, but I see that no answer has been posted in this forum.
Unless there were copy-paste errors, you have a syntax error in your script. The file name needs to be quoted (as a string). Otherwise it looks like you are referencing the tpr member of the topol object, which apparently does not exist.