[Gdal-dev] import gdal error in python
cudars
cudars at yeah.net
Sun Dec 6 02:12:20 EST 2009
Even Rouault wrote:
>
> GDAL Python bindings are not compatible with Python 3. I'm even
> surprised you managed to build them because the setup.py script doesn't
> work with Python 3.
>
> You need a Python 2.X version to make them work.
>
> cudars a écrit :
>> python 3.1.1
>> gdal 1.6.2
>> There are no errors during I built the gdal and python. The installtion
>> is
>> ok.
>> But when I type import gdal in python, I got the error as follow:
>>
>>>>> import gdal
>>>>>
>>
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "D:\Python31\lib\site-packages\gdal.py", line 295
>> raise ValueError, GetLastErrorMsg()
>> ^
>> SyntaxError: invalid syntax
>>
>> I do not what is wrong with this.
>>
>> help.
>>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
Thanks a lot. Even
--
View this message in context: http://n2.nabble.com/import-gdal-error-in-python-tp4116658p4120579.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list