[gdal-dev] RE: Python bindings on RedHat cluster (was:AttributeError: 'MaskedArray' object has no attribute 'typecode' -- when writing GeoTiff)

Greg Fiske gfiske at whrc.org
Wed Jul 22 10:31:12 EDT 2009


Scott - indeed, it turned out to be permissions issue with the module
gdal_array on our cluster. 

Thanks and best regards,

Greg

-----Original Message-----

Date: Tue, 21 Jul 2009 08:14:05 +0200
From: Scott Sinclair <scott.sinclair.za at gmail.com>
Subject: Re: [gdal-dev] Python bindings on RedHat cluster (was:
	AttributeError: 'MaskedArray' object has no attribute 'typecode' --
	when writing GeoTiff)
To: gdal-dev at lists.osgeo.org
Cc: Greg Fiske <gfiske at whrc.org>

Hi Greg,

It's always a good idea to communicate via the list, there are more
eyes and skills there. The conversations are also publicly archived,
making it easier for others having similar problems to search for
help.

In this case, the mistake is mine, I see that this list behaves
differently to others I am used to and I forgot to "Reply to all".

On my machine _gdal_array is a shared library module. It sounds like
there's a problem with the way GDAL (python bindings at least) is set
up on your cluster, because Python can't find this module.

I don't have any experience here, but if you go to a Python prompt and do

>>> import osgeo
>>> print(osgeo)

You should be able to work out where the GDAL bindings are installed
and then set up the paths for your cluster appropriately.

Cheers,
Scott





More information about the gdal-dev mailing list