aio-libs / aio-libs/aiopg

Issues on PyPy

未關閉
#650 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
1.4k
分支
170
PR 合併指標
30 天內沒有已合併 PR

描述

I'm trying to use this in a PyPy environment with psycopg2cffi installed; however, I get this error:
```
File "project/lib/foo/src/foo/foo.py", line 5, in
from aiopg.sa.engine import Engine
File "/usr/local/site-packages/aiopg/__init__.py", line 6, in
from .connection import connect, Connection, TIMEOUT as DEFAULT_TIMEOUT
File "/usr/local/site-packages/aiopg/connection.py", line 12, in
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
```

If I try to do the `psycopg2cffi.compat.register()` monkeypatch thing, I get this error:

```
Fatal error on aiopg connection: POLL_ERROR from underlying .poll() call\nconnection:
```

Are there instructions for installing into PyPy (if so, apologies for missing them)? Am I doing something wrong? Or maybe this simply isn't supported?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。