Title: KeyError: 'builtins' · Issue #3761 · python/mypy · GitHub
Open Graph Title: KeyError: 'builtins' · Issue #3761 · python/mypy
X Title: KeyError: 'builtins' · Issue #3761 · python/mypy
Description: When I ran mypy using the following command: mypy -p quant-fin --follow-imports=silent --show-traceback I got the following error: qstrader\version.py:1: error: Cannot find module named 'builtins' Traceback (most recent call last): File ...
Open Graph Description: When I ran mypy using the following command: mypy -p quant-fin --follow-imports=silent --show-traceback I got the following error: qstrader\version.py:1: error: Cannot find module named 'builtins' ...
X Description: When I ran mypy using the following command: mypy -p quant-fin --follow-imports=silent --show-traceback I got the following error: qstrader\version.py:1: error: Cannot find module named 'builti...
Opengraph URL: https://github.com/python/mypy/issues/3761
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"KeyError: 'builtins'","articleBody":"When I ran `mypy` using the following command:\r\n```\r\nmypy -p quant-fin --follow-imports=silent --show-traceback\r\n```\r\n\r\nI got the following error:\r\n```\r\nqstrader\\version.py:1: error: Cannot find module named 'builtins'\r\nTraceback (most recent call last):\r\n File \"c:\\users\\jacek\\appdata\\local\\programs\\python\\python35\\lib\\runpy.py\", line 184, in _run_module_as_main\r\n \"__main__\", mod_spec)\r\n File \"c:\\users\\jacek\\appdata\\local\\programs\\python\\python35\\lib\\runpy.py\", line 85, in _run_code\r\n exec(code, run_globals)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Scripts\\mypy.exe\\__main__.py\", line 9, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\__main__.py\", line 7, in console_entry\r\n main(None)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\main.py\", line 50, in main\r\n res = type_check_only(sources, bin_dir, options)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\main.py\", line 97, in type_check_only\r\n options=options)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\build.py\", line 196, in build\r\n graph = dispatch(sources, manager)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\build.py\", line 1769, in dispatch\r\n process_graph(graph, manager)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\build.py\", line 2012, in process_graph\r\n process_stale_scc(graph, scc, manager)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\build.py\", line 2107, in process_stale_scc\r\n graph[id].semantic_analysis()\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\build.py\", line 1664, in semantic_analysis\r\n self.manager.semantic_analyzer.visit_file(self.tree, self.xpath, self.options, patches)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\semanal.py\", line 295, in visit_file\r\n self.accept(d)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\semanal.py\", line 3636, in accept\r\n node.accept(self)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\nodes.py\", line 565, in accept\r\n return visitor.visit_func_def(self)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\semanal.py\", line 418, in visit_func_def\r\n self.analyze_function(defn)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\semanal.py\", line 598, in analyze_function\r\n defn.type = self.type_analyzer().visit_callable_type(defn.type, nested=False)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\typeanal.py\", line 333, in visit_callable_type\r\n fallback=t.fallback or self.named_type('builtins.function'),\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\typeanal.py\", line 545, in named_type\r\n node = self.lookup_fqn_func(fully_qualified_name)\r\n File \"C:\\Users\\Jacek\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site-packages\\mypy\\semanal.py\", line 3482, in lookup_fully_qualified\r\n n = self.modules[parts[0]]\r\nKeyError: 'builtins'\r\n```","author":{"url":"https://github.com/nme01","@type":"Person","name":"nme01"},"datePublished":"2017-07-24T13:19:51Z","url":"https://github.com/python/mypy/issues/3761"}
| 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:eadc9863-37c2-006b-4b32-49da9430410a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E62C:1BEF18:249E41F:31A2156:6B003058 |
| html-safe-nonce | d422471981f92d6ac541fc57314bde0d90160a9a509b03bddbfb45e81b52576f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjJDOjFCRUYxODoyNDlFNDFGOjMxQTIxNTY6NkIwMDMwNTgiLCJ2aXNpdG9yX2lkIjoiMzg1NDUzOTE0NjI4MjQxNDE2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 707491d6ea63bdeaca39bdc153ea92109237942aada15fb468829f74b938f9b3 |
| hovercard-subject-tag | issue:245077464 |
| 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/3761/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ecb25577f81bd15ca10f7490f6c69b193c894312819ed9080cdca721d64ad21/python/mypy/issues/3761 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ecb25577f81bd15ca10f7490f6c69b193c894312819ed9080cdca721d64ad21/python/mypy/issues/3761 |
| og:image:alt | When I ran mypy using the following command: mypy -p quant-fin --follow-imports=silent --show-traceback I got the following error: qstrader\version.py:1: error: Cannot find module named 'builtins' ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nme01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width