python / python/mypy

Stubgen hangs forever for some packages

Aperta
#17,761 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug
Lingua principale
Python
Stelle
20.6k
Fork
3.3k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Bug Report

When executing
stubgen --package great_expectations --output ../dist/result/stubs1/bundled/stubs/great_expectations/

The output is:

2024-09-12T13:12:29+0800 - INFO - Great Expectations logging enabled at 20 level by JupyterUX module.
2024-09-12T13:12:29+0800 - INFO - Could not find local file-backed GX project
2024-09-12T13:12:29+0800 - INFO - Created temporary directory '/tmp/tmp2cxwhcay' for ephemeral docs site
2024-09-12T13:12:29+0800 - INFO - Loading 'datasources' ->
[]
2024-09-12T13:12:30+0800 - INFO - Great Expectations logging enabled at 20 level by JupyterUX module.
Processed 580 modules
Generated files under ../dist/result/stubs1/bundled/stubs/great_expectations/great_expectations/

The generation seems to be successful. But:

  1. There are some abnormal logs, and seems that they are from inside the package.
  2. The process hangs forever after the last line of output. It doesn't exit.

To Reproduce
Install package great-expectations==0.18.17, and then executing
stubgen --package great_expectations

Expected Behavior

Stubgen should exit after finishing stubs generation.

Actual Behavior

It would hang forever.

Your Environment

  • Mypy version used: 1.4.1
  • Mypy command-line flags: none
  • Mypy configuration options from mypy.ini (and other config files): none
  • Python version used: python 3.11

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Riproduci il blocco con stubgen --package great_expectations usando great-expectations 0.18.17, quindi traccia il comando stubgen dopo la riga segnalata Generated files. Verifica perché il processo rimane attivo dopo la generazione e verifica che il comando termini una volta completata la generazione degli stub, senza lasciare irrisolti i log anomali del pacchetto.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.