Unable to run python from Oasis Montaj
VictorSavenije
Posts: 32
I have been able to reproduce the following problem a few windows 10 machines running Oasis Montaj 2022.1.
Regardless of the the python home variable, so regardless of the python environment, this happens. It also happens independently of the script Oasis is trying to run (eg an empty file).
It seems that the oasis executable is trying importing numpy, before activating the environment, therefore not finding dependencies. But these DLL are present in the python environment, and are found correctly when using the python of the same environment from outside python.
Oasis outputs the error messages as attached, but only once. Following attempts to run python only yield the shorter error message "python environment not set correctly". Restarting Oasis yield the longer error message again.
The issue can be circumvented by manually adding the path to the DLL to the PATH environment variable in windows. In my case the path would be C:\Program Files\Geosoft\Desktop Applications\python\Library\binHowever I would like to distribute a extension more easily without having to manually add paths to the PATH environment variable.



0
Comments
-
Hi I have the same issue. Anyone knows how to deal with this?0
Categories
- All Categories
- 287 Community
- 3 Get Started
- 16 Latest Releases
- 16 Member Spotlight
- 42 Learning
- 1.1K Products
- 563 Geology
- 536 Leapfrog
- 1 Volsung
- 26 Visible Geology
- 36 Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- 136 Geotechnical
- 136 GeoStudio
- 332 Geophysics
- 321 Oasis montaj
- 1 Workbench
- SPIA
- 10 Res2DInv & Res3DInv
- 3 Evo
- 27 GX Developer