MagicStack / MagicStack/uvloop
uvloop pypy3.9 error on import
Open
Nobody has claimed this yet.
- Dominant language
- Cython
- Stars
- 11.9k
- Forks
- 616
- PR merge metrics
- No merged PRs in 30d
Description
- uvloop version: 0.17.0
- Python version: pypy3.9
- Platform: Debian Bullseye
- Can you reproduce the bug with
PYTHONASYNCIODEBUGin env?: Yes - Does uvloop behave differently from vanilla asyncio? How?: Vanilla asyncio does not create this error
uvloop fails to import with the following traceback
File "/var/gpob/GB.py", line 36, in <module>
import uvloop
File "/usr/lib/pypy3.9/site-packages/uvloop/__init__.py", line 7, in <module>
from .loop import Loop as __BaseLoop # NOQA
ImportError: /usr/lib/pypy3.9/site-packages/uvloop/loop.pypy39-pp73-x86_64-linux-gnu.so: undefined symbol: PyContext_CopyCurrent```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the import on Debian Bullseye with PyPy 3.9 and uvloop 0.17.0, then inspect uvloop/init.py and the imported loop.pypy39-pp73-x86_64-linux-gnu.so associated with the undefined PyContext_CopyCurrent symbol. Done means uvloop imports successfully under PyPy and the relevant import behavior is covered by an appropriate regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100