MagicStack / MagicStack/uvloop

Import error with pypy37

未关闭
#380 9 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Cython
星标
11.9k
派生
616
PR 合并指标
30 天内没有已合并 PR

描述

  • 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 "<stdin>", line 1, in <module>
  File "/tmp/nwani_1611011952/dev/site-packages/uvloop/__init__.py", line 7, in <module>
    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
>>>>

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在使用 Python 3.7.9 的 PyPy 7.3.3 上的 Linux 中,使用报告的 uvloop 0.14.0 环境,重现安装和 import uvloop 失败的问题。从 uvloop/__init__.py 以及报告的 loop.pypy37-pp73-x86_64-linux-gnu.so 导入错误开始;当该 package 能够在该环境中成功导入时即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。