GX Development unexpected error

Options

I just started learning GX development with python. I installed the latest version 2023.2 of Geosoft Viewer. Also, I installed Python 3.8.3 and Geosoft Python modules and verified the installation. Now I am trying to run hello_world_extension.py, the very first example from the tutorial and getting error: A GXpy instance has already been created for the thread. I have nothing else running in the viewer at the same time. The line of code causing the error is

    gxp = geosoft.gxpy.gx.GXpy()

Can anyone suggest me how to solve the problem?