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

Broken if no Internet Connection Available

Aperta
#768 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, python, vscode

Direzione di ricerca

Riprodurre il problema con l’esempio PyVista Icosahedron mostrato in un notebook Python di VS Code offline, quindi esaminare lo stack trace di trame-vtk.js e l’output della console per sviluppatori. Tracciare quale risorsa o stato non è disponibile senza accesso a Internet e verificare che il grafico venga caricato correttamente offline quando le risorse necessarie sono incluse nel pacchetto o gestite localmente.

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

Descrizione

Does not work without internet connection; gets stuck in loading screen. (using through pyvista, in a VS Code notebook) I belive the issue is with trame and not pyvista itself?

A clear and concise description of what the bug is. Before submitting, please remove unnecessary sections.

To Reproduce

Steps to reproduce the behavior:

  1. disable internet connection
  2. try to plot mesh in pyvista

Code

# disable internet, restart VS Code, create blank .ipynb
import pyvista as pv
pv.Icosahedron().plot()

developer console output:

index-5844b947.js:23 error: Uncaught TypeError: Cannot read properties of null (reading '0')
Fs.console.error @ index-5844b947.js:23
(anonymous) @ index-5844b947.js:23
setTimeout
i @ trame-vtk.js:1
Promise.then
t0 @ vue.global.js:5
updateViewState @ trame-vtk.js:3564
await in updateViewState
(anonymous) @ trame-vtk.js:3564
(anonymous) @ vue.global.js:5
tq @ vue.global.js:5
tW @ vue.global.js:5
t.__weh.t.__weh @ vue.global.js:5
t4 @ vue.global.js:5
ec @ vue.global.js:5
mount @ vue.global.js:5
t.mount @ vue.global.js:5
Fs @ index-5844b947.js:23
await in Fs
(anonymous) @ index-5844b947.js:23
trame-vtk.js:1 Uncaught TypeError: Cannot read properties of null (reading '0')
    at Ge (trame-vtk.js:1:9731)
    at t.setCameraShaderParameters (trame-vtk.js:189:8250)
    at Q5.t.updateShaders (trame-vtk.js:7:15366)
    at Q5.t.drawArrays (trame-vtk.js:7:14002)
    at t.renderPieceDraw (trame-vtk.js:189:11585)
    at t.renderPiece (trame-vtk.js:189:12388)
    at t.render (trame-vtk.js:178:3470)
    at t.opaquePass (trame-vtk.js:178:3204)
    at t.apply (trame-vtk.js:1:62141)
    at t.traverse (trame-vtk.js:1:62005)

Image

Expected behavior

I don't think generally a python plotting package should be loading external resources please package all resources. I don't know what it is trying to load? The only thing i can see is that it depends on google fonts which are not available, but i don't see how that is causing the JavaScript error?

Platform:

Device:

  • Desktop

OS:

  • Windows

Browsers Affected:

  • VS Code Python Notebook (i.e. Windows Webview2)
  • Chrome
  • Firefox
  • Microsoft Edge
  • Safari
  • Opera
  • Brave
  • IE 11
Lingua principale
Python
Stelle
705
Fork
88
Merge medio
1h 43m
PR unite (30g)
1

Preparare l'ambiente

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/trame

Tutte le issue di Kitware/trame

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.