Why geosoft.gxpy not working
AllenGuan
Posts: 2
Very new to Geosoft. Installed gxpy module (pip install geosoft-9.3.1-cp36-none-win_amd64.whl) and obtained a Geosoft ID. On command line, test the code below, but got a dll error as shown in attached. I guess I need some kind of key file that references my Geosoft ID? Can somebody help?
set PATH=C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3;C:\Program Files\ArcGIS\Pro\bin\Python\Scripts;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts;%PATH%
set PYTHONPATH=C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages
python
>>>import geosoft.gxpy as gxpy
>>>gxc = gxpy.gx.GXpy()
set PATH=C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3;C:\Program Files\ArcGIS\Pro\bin\Python\Scripts;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts;%PATH%
set PYTHONPATH=C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages
python
>>>import geosoft.gxpy as gxpy
>>>gxc = gxpy.gx.GXpy()
Tagged:
0
Answers
-
Hi @AllenGuan, This sounds like a GX Developer question so I've moved it into the GX Developer Forum.Community Manager0
-
Hi Allen,
Did you install the Oasis montaj base platform? Using the API requires that as a prerequisite.
Consult this link for more information: https://geosoftgxdev.atlassian.net/wiki/spaces/GXD93/pages/78020838/Obtaining+GX+Developer
Regards,
Jacques Beaurain0
This discussion has been closed.