public inbox for [email protected]
help / color / mirror / Atom feedFrom: Oskari Saarenmaa <[email protected]>
To: Devrim Gündüz <[email protected]>
To: [email protected]
Subject: Re: Broken python3-psycopg2 for F24 / PG 9.6
Date: Tue, 27 Sep 2016 00:06:31 +0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-pkg-yum>
26.09.2016, 23:57, Devrim Gündüz kirjoitti:
> On Mon, 2016-09-26 at 23:42 +0300, Oskari Saarenmaa wrote:
>>> 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'
>
> I'm not a Python guy, so:
>
> $ python3 -c 'import psycopg2'
> $
>
> I did not get any errors, is that ok?
That's weird. The
https://yum.postgresql.org/9.6/fedora/fedora-24-x86_64/python3-psycopg2-2.6.2-2.f24.x86_64.rpm
package that I'm seeing definitely doesn't contain a _psycopg.so package
which is required by psycopg2.
Try python3 -c 'from psycopg2 import _psycopg; print(_psycopg)' and run
rpm -qf on the reported file.
On stock Fedora 24 without PGDG repos I get:
$ python3 -c 'from psycopg2 import _psycopg; print(_psycopg)'
<module 'psycopg2._psycopg' from
'/usr/lib64/python3.5/site-packages/psycopg2/_psycopg.cpython-35m-x86_64-linux-gnu.so'>
$ rpm -qf
/usr/lib64/python3.5/site-packages/psycopg2/_psycopg.cpython-35m-x86_64-linux-gnu.so
python3-psycopg2-2.6.1-5.fc24.x86_64
/ Oskari
--
Sent via pgsql-pkg-yum mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum
view thread (15+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Broken python3-psycopg2 for F24 / PG 9.6
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox