MagicStack / MagicStack/uvloop

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

Offen
#641 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Cython
Sterne
11.9k
Forks
616
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit Readme.txt und setup.py, insbesondere mit dem configure-Befehl und dem Dateinamen der generierten Extension. Vergleiche anschließend die Build-Architektur mit der armv7l-Laufzeitumgebung und reproduziere den Importfehler. Als abgeschlossen gilt die Aufgabe, wenn das cross-kompilierte Paket auf armv7l importiert werden kann und Loop aus uvloop.loop verfügbar macht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
linux, python
Bereich
build-system, operating-systems
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.