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 ``` _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue