Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4MENGA80920 for ; Tue, 22 May 2001 10:23:16 -0400 (EDT) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4LKvcA63199 for ; Mon, 21 May 2001 16:57:38 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4LKuNZ71866 for pgsql-interfaces@postgresql.org; Mon, 21 May 2001 16:56:23 -0400 (EDT) (envelope-from news) From: "Erny" X-Newsgroups: comp.databases.postgresql.interfaces Subject: Python pg module and loimport Date: Mon, 21 May 2001 22:57:23 +0200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Original-NNTP-Posting-Host: 212.166.170.72 Message-ID: <3b0980f5@news> To: pgsql-interfaces@postgresql.org X-Archive-Number: 200105/96 X-Sequence-Number: 1626 Hi there. I'm using Postgresql 7.1.1 under NT4/cygwin1.31 with python 2.1.dll and pygres (recent version?) large object import don't work: >>> import pg >>> db=pg.DB() # Connects to my database >>> db.loimport("/hello") Traceback (most recent call last): File "", line 1, in ? _pg.error: can't create large object. The file is accessible from front-end (and also back-end with the same path). it's a small file. Other interfaces (libq, libq++) work well (the testlo.c example) so could be an error of the python layer? I could observe the creation of 1 tuple in the pg_largeobject system-table, but with with pageno=0 and no data. Erny Spain