Problem with `timed_window` with asyncio
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- python
- Domaine
- stream-processing
Piste de recherche
Start with the fib_asyncio.py example and the sync function in streamz/core.py around line 1068, then reproduce the timed_window failure with asyncio. Trace how the event loop is checked and verify that the example runs without the reported AttributeError.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hi,
When I try to use the timed_window function with the asyncio event loop I get the following error:
AttributeError: 'AsyncIOMainLoop' object has no attribute '_running'
For example if you change line 12 of the `fib_asyncio.py" example to:
s.timed_window(1.0).sink(lambda x: print(x))
then I get:
$ python fib_asyncio.py
Traceback (most recent call last):
File "fib_asyncio.py", line 14, in <module>
source.emit(0) # seed with initial values
File "/opt/venv-numismatic/lib/python3.6/site-packages/streamz/core.py", line 219, in emit
return sync(self.loop, _)
File "/opt/venv-numismatic/lib/python3.6/site-packages/streamz/core.py", line 1068, in sync
if not loop._running:
AttributeError: 'AsyncIOMainLoop' object has no attribute '_running'
- Langage dominant
- Python
- Étoiles
- 1.3k
- Forks
- 150
- Merge moyen
- 17 h 39 min
- PR mergées (30 j)
- 1
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
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.
Autres issues de python-streamz/streamz
-
pkg_resources warningOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
python-streamz/streamz#481 · 4 commentaires ·
-
Combining the streamz.Stream.filenames() and streamz.Stream.from_textfile() using dask scatter?Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
python-streamz/streamz#480 · 2 commentaires ·
-
Compile the code into c++Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
python-streamz/streamz#479 · 1 commentaire ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
python-streamz/streamz#478 · 6 commentaires ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 10/100
python-streamz/streamz#476 · 17 commentaires · 2 réactions ·
Toutes les issues de python-streamz/streamz
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
topoteretes/cognee#5647 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Sendspin/sendspin-python-cli#291 ·
Les mainteneurs répondent en général sous 6 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
awslabs/visual-asset-management-system#414 ·
Les mainteneurs répondent en général sous 1 jour
-
bug v1 v2
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
modelcontextprotocol/python-sdk#3670 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
aicell-lab/bioengine#232 ·
Les mainteneurs répondent en général sous 1 jour