cannot import name 'Loop' from 'uvloop.loop' on platform armv7l
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 30/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- linux, python
研究方向
從 Readme.txt 和 setup.py 開始,尤其檢查 configure 命令和產生的擴充功能檔名,接著比較建置架構與 armv7l 執行階段,並重現匯入失敗。完成標準是:cross-compiled package 能在 armv7l 上匯入,並從 uvloop.loop 提供 Loop。
由索引模型根據 Issue 內容生成。
描述
uvloop version: 0.19.0
Python version: 3.10.7
Platform: Linux 5.4.61 armv7l GNU/Linux
-
Can you reproduce the bug with
PYTHONASYNCIODEBUGin 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:
-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
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.
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
- 主要語言
- Cython
- 星號
- 11.9k
- 分支
- 615
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
MagicStack/uvloop 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
MagicStack/uvloop#759 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
MagicStack/uvloop#741 · 2 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 68/100
MagicStack/uvloop#702 · 8 則留言 · 9 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 25/100
MagicStack/uvloop#766 ·
-
難度 4/5 3-5 天 新手友好度 52/100
MagicStack/uvloop#765 ·
查看 MagicStack/uvloop 的全部 Issue
相似的 Issue
-
typst-0.12 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
commercialhaskell/stackage#8127 ·
-
bug build
難度 1/5 1 小時以內 新手友好度 91/100
facebookincubator/velox#19194 ·
-
難度 2/5 1-3 小時 新手友好度 84/100
-
agentic-workflows maintenance
難度 2/5 1-3 小時 新手友好度 85/100
-
難度 2/5 1-3 小時 新手友好度 72/100
nebari-dev/jhub-apps#742 ·