MagicStack / MagicStack/uvloop
Import error with pypy37
- Dominant language
- Cython
- Stars
- 11.9k
- Forks
- 616
- PR merge metrics
- No merged PRs in 30d
Description
* **uvloop version**: 0.14.0
* **Python version**: 3.7.9 (pypy)
* **Platform**: linux (64 bit)
* **Can you reproduce the bug with `PYTHONASYNCIODEBUG` in env?**: N/A
* **Does uvloop behave differently from vanilla asyncio? How?**: N/A
```
./dev/bin/pip install uvloop
Collecting uvloop
Downloading uvloop-0.14.0.tar.gz (2.0 MB)
|████████████████████████████████| 2.0 MB 212 kB/s
Building wheels for collected packages: uvloop
Building wheel for uvloop (setup.py) ... done
Created wheel for uvloop: filename=uvloop-0.14.0-pp37-pypy37_pp73-linux_x86_64.whl size=1747119 sha256=f7ddb978dab6e8464b23974c5e5bec9d51fdb09808893908c98852f2a77b1875
Stored in directory: /home/wani/.cache/pip/wheels/37/33/c5/76203c197d01739bf197c099e5473be584744c4bf284498ebf
Successfully built uvloop
Installing collected packages: uvloop
Successfully installed uvloop-0.14.0
./dev/bin/pypy
Python 3.7.9 (7e6e2bb30ac5fbdbd443619cae28c51d5c162a02, Jan 12 2021, 06:52:08)
[PyPy 7.3.3-beta0 with GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``"Somewhere inside the large
lumbering blob of PyPy there is an elegant core trying to get out." - cfbolz''
>>>> import uvloop
Traceback (most recent call last):
File "", line 1, in
File "/tmp/nwani_1611011952/dev/site-packages/uvloop/__init__.py", line 7, in
from .loop import Loop as __BaseLoop # NOQA
ImportError: /tmp/nwani_1611011952/dev/site-packages/uvloop/loop.pypy37-pp73-x86_64-linux-gnu.so: undefined symbol: PyContext_CopyCurrent
>>>>
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the installation and `import uvloop` failure on Linux with Python 3.7.9 under PyPy 7.3.3, using the reported uvloop 0.14.0 environment. Start with `uvloop/__init__.py` and the reported `loop.pypy37-pp73-x86_64-linux-gnu.so` import error; done means the package imports successfully in that environment.
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
- Needs clarification
- Newbie friendliness
- 25/100