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
- 6 Community
- 3 Get Started
- 16 Latest Releases
- 15 Member Spotlight
- 40 Learning
- 3 Products
- 1 Geology
- 535 Leapfrog
- 1 Volsung
- 26 Visible Geology
- Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- Geotechnical
- 136 GeoStudio
- 1 Geophysics
- 319 Oasis montaj
- 1 Workbench
- SPIA
- 10 Res2DInv & Res3DInv
- 3 Evo
- 26 GX Developer


