Title: mypy can't find typeshed directory when installed using pyenv python/pip · Issue #3211 · python/mypy · GitHub
Open Graph Title: mypy can't find typeshed directory when installed using pyenv python/pip · Issue #3211 · python/mypy
X Title: mypy can't find typeshed directory when installed using pyenv python/pip · Issue #3211 · python/mypy
Description: mypy can't find typeshed directory when installed via a pyenv'd python version. On OSX. python version 3.5.2, installed with pyenv $ which python >> ~/.pyenv/shims/python $ pip install mypy $ pip show mypy >> Name: mypy >> Version: 0.501...
Open Graph Description: mypy can't find typeshed directory when installed via a pyenv'd python version. On OSX. python version 3.5.2, installed with pyenv $ which python >> ~/.pyenv/shims/python $ pip install mypy $ pip s...
X Description: mypy can't find typeshed directory when installed via a pyenv'd python version. On OSX. python version 3.5.2, installed with pyenv $ which python >> ~/.pyenv/shims/python $ pip instal...
Opengraph URL: https://github.com/python/mypy/issues/3211
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy can't find typeshed directory when installed using pyenv python/pip","articleBody":"mypy can't find typeshed directory when installed via a pyenv'd python version.\r\n\r\nOn OSX.\r\npython version 3.5.2, installed with `pyenv`\r\n\r\n```\r\n$ which python\r\n>> ~/.pyenv/shims/python\r\n```\r\n\r\n```\r\n$ pip install mypy\r\n$ pip show mypy\r\n>> Name: mypy\r\n>> Version: 0.501\r\n>> ...\r\n>> Location: ~/.pyenv/versions/3.5.2/Python.framework/Versions/3.5/lib/python3.5/site-packages\r\n$ which mypy\r\n>> ~/.pyenv/shims/mypy\r\n```\r\n\r\n```\r\n$ mypy test.py\r\n>> test.py: error: Name '__builtins__' is not defined\r\n>> test.py:1: error: Name 'int' is not defined\r\n>> test.py:1: error: Cannot find module named 'builtins'\r\n>> test.py:1: note: (Perhaps setting MYPYPATH or using the \"--ignore-missing-imports\" flag would help)\r\n>> test.py:1: error: INTERNAL ERROR -- please report a bug at https://github.com/python/mypy/issues\r\n>> test.py:1: note: please use --show-traceback to print a traceback when reporting a bug\r\n```\r\n\r\ncompare to:\r\n```\r\nmypy test.py --custom-typeshed-dir ~/.pyenv/versions/3.5.2/Python.framework/Versions/3.5/lib/mypy/typeshed/\r\n```\r\nwhich works fine.\r\n","author":{"url":"https://github.com/mdeland","@type":"Person","name":"mdeland"},"datePublished":"2017-04-21T17:48:10Z","url":"https://github.com/python/mypy/issues/3211"}
| 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:ace09bea-ccc4-c95b-e1e0-89294a05a22f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B226:30DBED:2AAA355:37BAAA6:6B0009E9 |
| html-safe-nonce | b9d5890114e1f50c4004f29ab12584ff5e42d3c83118c05ea8b201352e163082 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjI2OjMwREJFRDoyQUFBMzU1OjM3QkFBQTY6NkIwMDA5RTkiLCJ2aXNpdG9yX2lkIjoiMTgxNjcxMTk1MzI4OTA1NDY5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d2720d0b6be6449de660de315783c629f716a22e47cddd060cf157fa0d87b154 |
| hovercard-subject-tag | issue:223451920 |
| 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/3211/issue_layout |
| twitter:image | https://opengraph.githubassets.com/864c140dd5d31069286cad63fa4109ec1408f9ae1245e9b50957b9b2b1a56d0b/python/mypy/issues/3211 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/864c140dd5d31069286cad63fa4109ec1408f9ae1245e9b50957b9b2b1a56d0b/python/mypy/issues/3211 |
| og:image:alt | mypy can't find typeshed directory when installed via a pyenv'd python version. On OSX. python version 3.5.2, installed with pyenv $ which python >> ~/.pyenv/shims/python $ pip install mypy $ pip s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdeland |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width