v2.10.1: fails to start on Python 3.14
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 76/100
Piste de recherche
Commencez dans src/e3sm_quickview/view_manager.py, à l’appel asyncio.get_event_loop() identifié dans le rapport, puis vérifiez comment le serveur démarre et comment wslink gère la configuration de la boucle. Reproduisez le problème avec Python 3.14 en utilisant la commande de démarrage indiquée ; le travail est terminé lorsque quickview démarre sans l’erreur de boucle manquante. Envisagez d’ajouter Python 3.14 à CI, comme suggéré.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
We're testing e3sm-quickview 2.10.1 (from conda-forge) on Perlmutter, in the upcoming E3SM-Unified 1.14.0, which uses Python 3.14.7. Running quickview crashes on startup, before the server starts:
$ quickview
VTKStreaming Video encoding is NOT AVAILABLE (missing Python package)
Loading plugin : .../e3sm_quickview/plugins/eam_gridlines.py
Loading plugin : .../e3sm_quickview/plugins/eam_projection.py
Loading plugin : .../e3sm_quickview/plugins/eam_reader.py
Loading plugin : .../e3sm_quickview/plugins/eam_filters.py
Traceback (most recent call last):
File ".../bin/quickview", line 10, in <module>
sys.exit(main())
~~~~^^
File ".../e3sm_quickview/app.py", line 802, in main
app = EAMApp()
File ".../e3sm_quickview/app.py", line 75, in __init__
self.view_manager = ViewManager(self.server, self.source)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../e3sm_quickview/view_manager.py", line 100, in __init__
self.loop = asyncio.get_event_loop()
~~~~~~~~~~~~~~~~~~~~~~^^
File ".../python3.14/asyncio/events.py", line 718, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.
Cause: Starting with Python 3.14, asyncio.get_event_loop() raises RuntimeError when no loop is set, where earlier versions created one implicitly. ViewManager.__init__ (view_manager.py#L100) runs before trame/wslink have started a loop, so it fails. The same line is still on main.
Suggested fix: wslink 2.5.7 already handles this (wslink/core.py, wslink/server.py) with:
try:
self.loop = asyncio.get_event_loop()
except RuntimeError:
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
wslink then picks up the same loop when the server starts. We checked this by setting a loop before calling main():
python -c "import asyncio, sys; asyncio.set_event_loop(asyncio.new_event_loop()); from e3sm_quickview.app import main; sys.argv[0]='quickview'; sys.exit(main())" --server
With that, the server starts normally and prints the connection URL. Since requires-python = ">=3.10" allows 3.14, it may also be worth adding Python 3.14 to CI.
This looks related to #111 (event loop missing in debounce) but affects a different code path.
Environment:
- e3sm-quickview 2.10.1 (conda-forge, noarch)
- Python 3.14.7
- trame 4.0.0, trame-server 4.0.0, wslink 2.5.7
- NERSC Perlmutter login node (pm-cpu)
Drafted by Claude Code and @xylar together.
- Langage dominant
- JavaScript
- Étoiles
- 3
- Forks
- 4
- Merge moyen
- 10 h 10 min
- PR mergées (30 j)
- 7
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
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 Kitware/QuickView
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
-
Spherical projection: globe appears to zoom in or out when center latitude changesPeut-être à nouveau libre @jourdain l’a pris il y a 60 jours, et aucune pull request n’est ouverte. Ouvertenot urgent
-
maintenance
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Support more formats for image downloadPeut-être à nouveau libre @huiwanpnnl l’a pris il y a 39 jours, et aucune pull request n’est ouverte. Ouvertedocumentation
Kitware/QuickView#119 · 4 commentaires · 1 personne assignée ·
-
Information panel from data probe occasionally shows VTK(?) variablesPeut-être à nouveau libre @jourdain l’a pris il y a 110 jours, et aucune pull request n’est ouverte. Ouvertenot urgent
Kitware/QuickView#118 · 1 commentaire · 1 personne assignée ·
Toutes les issues de Kitware/QuickView
Issues similaires
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
anoopcodehack/DevBoard#609 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
openai/codex-plugin-cc#813 ·
-
area: ops type: test
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
accensa/x402-facilitator-stellar#559 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
bilawalsidhu/gods-eye-view#1060 ·
Les mainteneurs répondent en général sous 1 jour
-
Progress difficulty filter lists Hard before MediumPeut-être pris @Pandamachi l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
sysprog21/codetrial#281 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour