Error getting Gx context

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\", 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


This discussion has been closed.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!