You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError: dlopen failed: cannot locate symbol "uuid_to_hex" referenced by #534
Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?:
Python version: 3.8.1
Platform: Termux v0.92 on Android 9.0
Do you use pgbouncer?: No
Did you install asyncpg with pip?: Yes
If you built asyncpg locally, which version of Cython did you use?: None
Can the issue be reproduced under both asyncio and uvloop?: Yes
Whenever i try to import asyncpg in termux, i get this error. I asked some other people to try the same on their devices and this error was reproduceable
I have the same issue: asyncpg version: 0.20.0 PostgreSQL version: - Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?: No Python version: 3.7.4 Platform: MacOs Sierra 10.12.6 Do you use pgbouncer?: No Did you install asyncpg with pip?: Yes If you built asyncpg locally, which version of Cython did you use?: None
Can the issue be reproduced under both asyncio and
uvloop?: Yes
(zeus) Julian-Cortes:zeus julian$ python
Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import asyncpg
Traceback (most recent call last):
File "", line 1, in
File "/Users/julian/.virtualenvs/zeus/lib/python3.7/site-packages/asyncpg/init.py", line 8, in
from .connection import connect, Connection # NOQA
File "/Users/julian/.virtualenvs/zeus/lib/python3.7/site-packages/asyncpg/connection.py", line 19, in
from . import connect_utils
File "/Users/julian/.virtualenvs/zeus/lib/python3.7/site-packages/asyncpg/connect_utils.py", line 27, in
from . import protocol
File "/Users/julian/.virtualenvs/zeus/lib/python3.7/site-packages/asyncpg/protocol/init.py", line 8, in
from .protocol import Protocol, Record, NO_TIMEOUT # NOQA
File "asyncpg/protocol/protocol.pyx", line 1, in init asyncpg.protocol.protocol
ImportError: dlopen(/Users/julian/.virtualenvs/zeus/lib/python3.7/site-packages/asyncpg/pgproto/pgproto.cpython-37m-darwin.so, 2): Symbol not found: _uuid_to_hex
Referenced from: /Users/julian/.virtualenvs/zeus/lib/python3.7/site-packages/asyncpg/pgproto/pgproto.cpython-37m-darwin.so
Expected in: flat namespace
in /Users/julian/.virtualenvs/zeus/lib/python3.7/site-packages/asyncpg/pgproto/pgproto.cpython-37m-darwin.so
UPDATE:
I ran it inside a linux docker container and it works fine.
Activity
elprans commentedon Feb 17, 2020
Hmm. This seems like a toolchain bug.
uuid_to_hexis an inline function defined in a header file, it's not an external symbol in any way.pity7736 commentedon Feb 20, 2020
I have the same issue:
asyncpg version: 0.20.0
PostgreSQL version: -
Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?: No
Python version: 3.7.4
Platform: MacOs Sierra 10.12.6
Do you use pgbouncer?: No
Did you install asyncpg with pip?: Yes
If you built asyncpg locally, which version of Cython did you use?: None
Can the issue be reproduced under both asyncio and
uvloop?: Yes
UPDATE:
I ran it inside a linux docker container and it works fine.
Bump pgproto to fix compilation issues