Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

v2.10.1: fails to start on Python 3.14

Aperta Adatta ai principianti
#147 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Inizia da src/e3sm_quickview/view_manager.py, in corrispondenza della chiamata asyncio.get_event_loop() individuata nel report, quindi verifica come si avvia il server e come wslink gestisce la configurazione del loop. Riproduci il problema con Python 3.14 usando il comando di avvio segnalato; il lavoro è completato quando quickview si avvia senza l’errore di loop mancante. Valuta di aggiungere Python 3.14 a CI, come suggerito.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
3
Fork
4
Merge medio
11h 51m
PR unite (30g)
6

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Kitware/QuickView

Tutte le issue di Kitware/QuickView

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.