Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stubgen hangs forever for some packages #17761

Open
zwqStella opened this issue Sep 12, 2024 · 0 comments
Open

Stubgen hangs forever for some packages #17761

zwqStella opened this issue Sep 12, 2024 · 0 comments
Labels
bug mypy got something wrong

Comments

@zwqStella
Copy link

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
@zwqStella zwqStella added the bug mypy got something wrong label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

1 participant