Error getting Gx context

DavidHatch
DavidHatch Posts: 6 Calcite Rank Badge
edited February 2023 in GeoStudio
I am still working through some basics so apologies for the basic question. I have been able to open and read GDB files no problem but have become stuck opening and reading grids. Typing the following lines into python I get the message below:

import geosoft.gxpy.grd as grd
ctx = geosoft.gxpy.grd.GXgrd()


File "C:\Users\david.hatch\AppData\Local\Continuum\Anaconda3\lib\site-packages\geosoft\gxpy\grd.py", line 98, in __init__
self._img = gxapi.GXIMG.create(gxu.gx_dtype(dtype), kx, dim[0], dim[1])
TypeError: 'NoneType' object is not subscriptable

Process finished with exit code 1

Comments

This discussion has been closed.