Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bocjW-0002Ew-Gn for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 26 Sep 2016 20:42:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bocjW-0004N7-3l for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 26 Sep 2016 20:42:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bocjS-0004IU-Ey for pgsql-pkg-yum@postgresql.org; Mon, 26 Sep 2016 20:42:34 +0000 Received: from ohmu.fi ([2001:1bc8:100:6::f301]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bocjP-0000MV-Ky for pgsql-pkg-yum@postgresql.org; Mon, 26 Sep 2016 20:42:33 +0000 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ohmu.fi (Postfix) with ESMTP id ACD1A60ACB; Mon, 26 Sep 2016 23:42:27 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ohmu.fi; s=ohmu20151014; t=1474922547; bh=6y/El5eWuZyf60d0k/I5dZG8yiZ9ynwXJ3WQ4xGxmhg=; h=Subject:To:References:From:Date:In-Reply-To:From; b=niITWuLOHAE1YDvdGn1CoxjLneoFaIVgpU8pYDGN7D1kEs0f5K2QnmaCF/uRmf3wh rF/huPAgmbD0IvTBAOZ+x6habKCinn8Qb2UtWxpTqxJ19q9H+Yv4p5coa2ZxzBnOEk iBg61aLKe7joe99Uxpo82RYA06sZU7roa3v023aw= Subject: Re: Broken python3-psycopg2 for F24 / PG 9.6 To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , pgsql-pkg-yum@postgresql.org References: <1474885640.28685.18.camel@gunduz.org> <403242bb-2cd3-78be-bf4a-2df63c221cac@ohmu.fi> <1474922312.14931.29.camel@gunduz.org> From: Oskari Saarenmaa Message-ID: Date: Mon, 26 Sep 2016 23:42:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1474922312.14931.29.camel@gunduz.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org 26.09.2016, 23:38, Devrim Gündüz kirjoitti: > On Mon, 2016-09-26 at 23:20 +0300, Oskari Saarenmaa wrote: >> The python3-psycopg2 package is broken and unusable as it is. It's >> missing the essential _psycopg.so file: >> >> >>> import psycopg2 >> Traceback (most recent call last): >> File "", line 1, in >> File "/usr/lib64/python3.5/site-packages/psycopg2/__init__.py", line >> 50, in >> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID >> ImportError: No module named 'psycopg2._psycopg' > > That is installed with python-psycopg2 package: > > /usr/lib64/python2.7/site-packages/psycopg2/_psycopg.so > > When/how do you get this? Python 2 and Python 3 require their own shared libraries. The Python 2 psycopg2 package includes a _psycopg.so file, but the Python 3 package doesn't, try: python3 -c 'import psycopg2' >> Also, Fedora 24 provides python3-psycopg2 2.6.1 by default, > > You mean upstream Fedora? I don't care about the versions there. :) I'd prefer not to replace packages provided by upstream unless it's absolutely necessary, but I guess that's ok if it's the pg yum repo policy. / Oskari -- Sent via pgsql-pkg-yum mailing list (pgsql-pkg-yum@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-yum