[pypy-issue] Issue #2766: pypy3 import psycopg2 error (pypy/pypy)

strannik j issues-reply at bitbucket.org
Tue Feb 27 05:50:56 EST 2018


New issue 2766: pypy3 import psycopg2 error
https://bitbucket.org/pypy/pypy/issues/2766/pypy3-import-psycopg2-error

strannik j:

Linux 4.13.16-2-MANJARO x86_64 (Arch based)
PyPy 5.10.1 with GCC 7.3.0 (from repository)

psycopg2 was installed in 
/opt/pypy3/site-packages/psycopg2-2.7.4-py3.5-linux-x86_64.egg
with pip-pypy3:

```
#!bash

sudo pip-pypy3 install psycopg2
```

and from source

```
#!bash
https://bitbucket.org/pypy/pypy/issues/new
sudo pypy3 setup.py install
```
next, I'm trying to import a library:

```
#!python

import psycopg2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/pypy3/site-packages/psycopg2-2.7.4-py3.5-linux-x86_64.egg/psycopg2/__init__.py", line 50, in <module>
    from psycopg2._psycopg import (                     # noqa
ImportError: /opt/pypy3/site-packages/psycopg2-2.7.4-py3.5-linux-x86_64.egg/psycopg2/_psycopg.pypy3-510-x86_64-linux-gnu.so: undefined symbol: PyCodec_Encoder
```




More information about the pypy-issue mailing list