MagicStack / MagicStack/uvloop

cannot import name 'Loop' from 'uvloop.loop' on platform armv7l

オープン
#641 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Cython
スター
11.9k
フォーク
616
PR マージ指標
30日以内にマージされた PR はありません

説明

uvloop version: 0.19.0
Python version: 3.10.7
Platform: Linux 5.4.61 armv7l GNU/Linux
* **Can you reproduce the bug with `PYTHONASYNCIODEBUG` in env?**:
* **Does uvloop behave differently from vanilla asyncio? How?**:

I tried to cross-compile uvloop and port it to my armv7l platform for use, following the build steps in Readme.txt. The only difference was that I modified the contents of the setup.py due to the fact that it was not clear how to select the arm's configuration items:
![image](https://github.com/user-attachments/assets/2e08ed89-ae4a-4a92-958d-30b65c5f32a8)
-174:cmd = ['./configure']
+174:cmd = ['./configure', '--host=arm-linux-gnueabi']
This did work and successfully cross compiled.The log of the compilation process is given in the attachment.
[MobaXterm_10.3.1.69LeetxServerVM-T113_20241026_151215.txt](https://github.com/user-attachments/files/17529426/MobaXterm_10.3.1.69LeetxServerVM-T113_20241026_151215.txt)
After making && make isntall I checked the format with the readelf -h loop.cpython-310-x86_64-linux-gnu.so directive and it was right.
![image](https://github.com/user-attachments/assets/60864d2e-6222-43ff-ac97-5f067f9e48ee)
But after I ported him to armv7l, import uvloop prompts:
**cannot import name 'Loop' from 'uvloop.loop' (/usr/lib/python3.10/site-packages/uvloop/loop.cpython [-310-x86_64-linux-gnu.so)]**
I'm not sure what else in the process might be causing this problem

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Readme.txt と setup.py から始め、特に configure コマンドと生成される拡張のファイル名を確認してから、ビルドアーキテクチャと armv7l ランタイムを比較し、インポートの失敗を再現します。cross-compiled パッケージを armv7l でインポートでき、uvloop.loop から Loop が公開されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
linux, python
領域
build-system, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。