GH Python, to Access Etabs API

Hi, All
I installed Python 2.7.18 to match GH Python
when I Create a script in pycharm using Python 2.7.18 it works perfectly
but while using the same in GH Python it gives me some errors, as per the below screenshot
by the way, I already imported the required libraries which is comtypes.

need help

thanks in advance

Be aware that you use ironpython in gh not cpython like in pycharm.
Rhino 8 wip has a new cpython script editor.