Re: TypeError: dict is not a sequence - Mailing list psycopg

From thiemo@gelassene-pferde.biz
Subject Re: TypeError: dict is not a sequence
Date
Msg-id 20241101161113.Horde.0Bgt_EQ0glbsBmc_1YpZj90@webmail.gelassene-pferde.biz
Whole thread Raw
In response to Re: TypeError: dict is not a sequence  (Jim Sizelove <jims@doxpop.com>)
Responses Re: TypeError: dict is not a sequence
List psycopg
Hi Jim

> I suspect the source of the problem is the commented-out line
>
>  -- ST_FromGDALRaster(pg_read_binary_file(%s)),
>
> in the statement.

You are right. I was not expecting the comment to be relevant for the  
parameter replacement. Many thanks for the hint.

I now have an error, not related to psycopg, as far as I can tell.

psycopg2.errors.InternalError_: RASTER_fromGDALRaster: Could not open  
bytea with GDAL. Check that the bytea is of a GDAL supported format

> Maybe the difference in the errors is due to a different version of
> psycopg? This is what I am using:
>
>>>> sys.version
>> '3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0]'
>> >>> psycopg.__version__
>> '3.2.3'

Probably.
>>> sys.version
'3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0]'
>>> psycopg.__version__
'3.1.7'


Many thanks for your support.




psycopg by date:

Previous
From: Jim Sizelove
Date:
Subject: Re: TypeError: dict is not a sequence
Next
From: Adrian Klaver
Date:
Subject: Re: TypeError: dict is not a sequence