How to fix the "A GXpy instance has already been created for current thread" in Oasis Montaj
EGSMontaj1
Unconfirmed Posts: 1 New Member
in GX Developer
Hey everyone!
I am currently running Oasis Montaj 2025.2.1, and trying to run any python script (including the in built "Hello World" script"), using python 3.12 with Geosoft 2.0 package.
When I run any code, I get the following error, no matter what I run (even if I restart the program):
Any idea of potential fixes for this issue?
Many thanks,
Tim
Tagged:
0
Answers
-
Hi @EGSMontaj1 this error usually means that you are creating a context (calling "gxpy.gx.GXpy()") multiple times in the same script execution. This may also happen if you call a script with this line from another script that has already created a context. We may be able to help more if you share the code.
1
Categories
- All Categories
- 311 Community
- 3 Get Started
- 18 Latest Releases
- 17 Member Spotlight
- 42 Learning
- 1.1K Products
- 567 Geology
- 540 Leapfrog
- 1 Volsung
- 26 Visible Geology
- 36 Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- 138 Geotechnical
- 138 GeoStudio
- 334 Geophysics
- 323 Oasis montaj
- 1 Workbench
- SPIA
- 10 Res2DInv & Res3DInv
- 3 Evo
- 27 GX Developer


