MagicStack / MagicStack/uvloop
cannot import name 'Loop' from 'uvloop.loop' on platform armv7l
Personne n'a encore pris cette issue.
- Langage dominant
- Cython
- Étoiles
- 11.9k
- Forks
- 616
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par Readme.txt et setup.py, en particulier par la commande configure et le nom de fichier de l’extension générée, puis comparez l’architecture de build avec l’environnement d’exécution armv7l et reproduisez l’échec de l’importation. C’est terminé lorsque le paquet compilé pour une autre architecture s’importe sur armv7l et expose Loop depuis uvloop.loop.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- linux, python
- Domaine
- build-system, operating-systems
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 30/100