Title: Stubgen fails with timeout for locust · Issue #9103 · python/mypy · GitHub
Open Graph Title: Stubgen fails with timeout for locust · Issue #9103 · python/mypy
X Title: Stubgen fails with timeout for locust · Issue #9103 · python/mypy
Description: Hi, I'm trying to generate type stubs for Locust and stubgen fails with a timeout (see details below). I was wondering if someone has any insight into what causes this or how to fix it. Please provide more information to help us understa...
Open Graph Description: Hi, I'm trying to generate type stubs for Locust and stubgen fails with a timeout (see details below). I was wondering if someone has any insight into what causes this or how to fix it. Please prov...
X Description: Hi, I'm trying to generate type stubs for Locust and stubgen fails with a timeout (see details below). I was wondering if someone has any insight into what causes this or how to fix it. Please ...
Opengraph URL: https://github.com/python/mypy/issues/9103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stubgen fails with timeout for locust","articleBody":"Hi,\r\nI'm trying to generate type stubs for [Locust](https://locust.io/) and stubgen fails with a timeout (see details below).\r\nI was wondering if someone has any insight into what causes this or how to fix it.\r\n\r\nPlease provide more information to help us understand the issue:\r\n\r\n* Are you reporting a bug, or opening a feature request?\r\n Bug\r\n\r\n* Please insert below the code you are checking with mypy,\r\n or a mock-up repro if the source is private. We would appreciate\r\n if you try to simplify your case to a minimal repro.\r\n\r\n ```\r\n pip install mypy locust\r\n stubgen -p locust\r\n ```\r\n\r\n* What is the actual behavior/output?\r\n ```\r\n Traceback (most recent call last):\r\n File \"./venv/bin/stubgen\", line 10, in \u003cmodule>\r\n sys.exit(main())\r\n File \"mypy/stubgen.py\", line 1564, in main\r\n File \"mypy/stubgen.py\", line 1422, in generate_stubs\r\n File \"mypy/stubgen.py\", line 1183, in collect_build_targets\r\n File \"mypy/stubgen.py\", line 1217, in find_module_paths_using_imports\r\n File \"mypy/stubutil.py\", line 62, in walk_packages\r\n File \"mypy/moduleinspect.py\", line 137, in get_package_properties\r\n File \"mypy/moduleinspect.py\", line 163, in _get_from_queue\r\n RuntimeError: Timeout waiting for subprocess\r\n ```\r\n\r\n* What is the behavior/output you expect?\r\n No console output and generated stubs in `out/`.\r\n\r\n* What are the versions of mypy and Python you are using?\r\n * Python v3.8.2\r\n * mypy 0.782\r\n\r\n* Do you see the same issue after installing mypy from Git master?\r\nYes:\r\n ```\r\n Traceback (most recent call last):\r\n File \"./venv/bin/stubgen\", line 33, in \u003cmodule>\r\n sys.exit(load_entry_point('mypy', 'console_scripts', 'stubgen')())\r\n File \"/Users/simon/work/locust-test/mypy/mypy/stubgen.py\", line 1564, in main\r\n generate_stubs(options)\r\n File \"/Users/simon/work/locust-test/mypy/mypy/stubgen.py\", line 1422, in generate_stubs\r\n py_modules, c_modules = collect_build_targets(options, mypy_opts)\r\n File \"/Users/simon/work/locust-test/mypy/mypy/stubgen.py\", line 1183, in collect_build_targets\r\n py_modules, c_modules = find_module_paths_using_imports(options.modules,\r\n File \"/Users/simon/work/locust-test/mypy/mypy/stubgen.py\", line 1217, in find_module_paths_using_imports\r\n found = list(walk_packages(inspect, packages, verbose))\r\n File \"/Users/simon/work/locust-test/mypy/mypy/stubutil.py\", line 62, in walk_packages\r\n prop = inspect.get_package_properties(package_name)\r\n File \"/Users/simon/work/locust-test/mypy/mypy/moduleinspect.py\", line 137, in get_package_properties\r\n res = self._get_from_queue()\r\n File \"/Users/simon/work/locust-test/mypy/mypy/moduleinspect.py\", line 163, in _get_from_queue\r\n raise RuntimeError('Timeout waiting for subprocess')\r\n RuntimeError: Timeout waiting for subprocess\r\n ```\r\n","author":{"url":"https://github.com/ska-kialo","@type":"Person","name":"ska-kialo"},"datePublished":"2020-07-06T14:36:31Z","url":"https://github.com/python/mypy/issues/9103"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:35a0f045-663a-d556-4466-abc3d7a29133 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 952A:1C9EFF:7638A:A60DC:6B004ECB |
| html-safe-nonce | 5dea3f9aa40f00f4e1294bc84a7885b7a4f16c889c48e8ee8a3640ef3ee28adc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTJBOjFDOUVGRjo3NjM4QTpBNjBEQzo2QjAwNEVDQiIsInZpc2l0b3JfaWQiOiI5MjA1OTU2NDE4NzExMDgwNjUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e5ea45e5df0fac60b52b6c6465bc68439ebeae926d7d07521357054d820cf559 |
| hovercard-subject-tag | issue:651591243 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/9103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d848a6c84ebb3537b1fe8b743c773931838fba14bcd038808541679bc5411a6/python/mypy/issues/9103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d848a6c84ebb3537b1fe8b743c773931838fba14bcd038808541679bc5411a6/python/mypy/issues/9103 |
| og:image:alt | Hi, I'm trying to generate type stubs for Locust and stubgen fails with a timeout (see details below). I was wondering if someone has any insight into what causes this or how to fix it. Please prov... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ska-kialo |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width