Error: A GXpy instance has already been created for current thread

I'm trying to run a Python script within Oasis Montaj. The Python GX has been configured (the GX was downloaded, and the Python folder was chosen) according to the Installation guide. Python instance has been successfully verified. When I try to run the "Hello world" file (Python -> Configure Python -> Hello world) and/or some external Python script, I'm constantly getting the error saying "Error: A GXpy instance has already been created for current thread". Does anybody have an idea how it can be resolved?

Best Answer

  • SahilAlurkar
    SahilAlurkar Posts: 2 Fluorite Rank Badge
    Answer ✓

    use     gxc = gxpy.gx.gx() instead of gxc = gxpy.gx.GXpy()     it worked for me. This is suggested on their git hub page


Answers