Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6tJ6-00GGtd-9H for psycopg@arkaria.postgresql.org; Fri, 01 Nov 2024 15:11:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t6tJ3-00Efgb-Sd for psycopg@arkaria.postgresql.org; Fri, 01 Nov 2024 15:11:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6tJ3-00EfgT-M8 for psycopg@lists.postgresql.org; Fri, 01 Nov 2024 15:11:22 +0000 Received: from sm-r-016-dus.org-dns.com ([89.107.70.6]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6tJ0-003yib-Ej for psycopg@lists.postgresql.org; Fri, 01 Nov 2024 15:11:20 +0000 Received: from smarthost-dus.org-dns.com (localhost [127.0.0.1]) by smarthost-dus.org-dns.com (Postfix) with ESMTP id 03557A2102 for ; Fri, 1 Nov 2024 16:11:15 +0100 (CET) Received: by smarthost-dus.org-dns.com (Postfix, from userid 1001) id EB07AA2128; Fri, 1 Nov 2024 16:11:14 +0100 (CET) X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_INFOUSMEBIZ, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from ha01s018.org-dns.com (ha01s018.org-dns.com [62.108.32.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smarthost-dus.org-dns.com (Postfix) with ESMTPS id AA2E8A2102 for ; Fri, 1 Nov 2024 16:11:14 +0100 (CET) Authentication-Results: ha01s018.org-dns.com; spf=pass (sender IP is 127.0.0.1) smtp.mailfrom=thiemo@gelassene-pferde.biz smtp.helo=ha01s018.org-dns.com Received-SPF: pass (ha01s018.org-dns.com: connection is authenticated) Received: from [5.83.191.181] ([5.83.191.181]) by webmail.gelassene-pferde.biz (Horde Framework) with HTTPS; Fri, 01 Nov 2024 16:11:14 +0100 Date: Fri, 01 Nov 2024 16:11:13 +0100 Message-ID: <20241101161113.Horde.0Bgt_EQ0glbsBmc_1YpZj90@webmail.gelassene-pferde.biz> From: thiemo@gelassene-pferde.biz To: psycopg Subject: Re: TypeError: dict is not a sequence References: <20241101111747.Horde.GgVaeCJ_Ig6HsmcfjbNwguM@webmail.gelassene-pferde.biz> In-Reply-To: Accept-Language: de Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-PPP-Message-ID: <173047387457.3564285.17665719424637367200@ha01s018.org-dns.com> X-PPP-Vhost: gelassene-pferde.biz X-POWERED-BY: wint.global - AV:CLEAN SPAM:OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.