Title: Error when trying to install with Python 2 pip is really bad · Issue #7 · python/typed_ast · GitHub
Open Graph Title: Error when trying to install with Python 2 pip is really bad · Issue #7 · python/typed_ast
X Title: Error when trying to install with Python 2 pip is really bad · Issue #7 · python/typed_ast
Description: I accidentally ran pip install typed_ast using Python 2 and got these errors: [many more errors from gcc skipped] ast27/Parser/tokenizer.c:512:45: error: ‘PyId_readline’ undeclared (first use in this function) readline = _PyObject_GetAtt...
Open Graph Description: I accidentally ran pip install typed_ast using Python 2 and got these errors: [many more errors from gcc skipped] ast27/Parser/tokenizer.c:512:45: error: ‘PyId_readline’ undeclared (first use in th...
X Description: I accidentally ran pip install typed_ast using Python 2 and got these errors: [many more errors from gcc skipped] ast27/Parser/tokenizer.c:512:45: error: ‘PyId_readline’ undeclared (first use in th...
Opengraph URL: https://github.com/python/typed_ast/issues/7
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when trying to install with Python 2 pip is really bad","articleBody":"I accidentally ran `pip install typed_ast` using Python 2 and got these errors:\n\n```\n[many more errors from gcc skipped]\n\nast27/Parser/tokenizer.c:512:45: error: ‘PyId_readline’ undeclared (first use in this function)\n\n readline = _PyObject_GetAttrId(stream, &PyId_readline);\n\n ^\n\nerror: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n\n----------------------------------------\nCleaning up...\nCommand /usr/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip-build-uAt4J4/typed-ast/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-oRixWl-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-uAt4J4/typed-ast\nTraceback (most recent call last):\n File \"/usr/bin/pip\", line 9, in \u003cmodule>\n load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()\n File \"/usr/lib/python2.7/dist-packages/pip/__init__.py\", line 248, in main\n return command.main(cmd_args)\n File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 161, in main\n text = '\\n'.join(complete_log)\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)\n```\n\nSurely the terrible final error message is not typed_ast's fault, but can the package just be marked as Python 3-only on PyPI somehow?\n","author":{"url":"https://github.com/rwbarton","@type":"Person","name":"rwbarton"},"datePublished":"2016-06-26T02:26:37Z","url":"https://github.com/python/typed_ast/issues/7"}
| 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:f4c39377-7d51-ba76-f071-313ab2e522c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 907E:1AC37C:D0555B:11696A6:6B0052B3 |
| html-safe-nonce | 4d03daf5b0e58cca527569bfa23703a131a3b46013bb1bfe2107dcd1ae30ab08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDdFOjFBQzM3QzpEMDU1NUI6MTE2OTZBNjo2QjAwNTJCMyIsInZpc2l0b3JfaWQiOiIyNDcxODAwNjQxODE1NTk3NzQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8d079a7f7517dd0915b56d319fb095a145430e84de636d8cd0dff20dfdcd8f57 |
| hovercard-subject-tag | issue:162309099 |
| 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/typed_ast/7/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af62ed4bff5cd516ddf71dc520a8c0a72f043ae36086e728ecde28919f1a86d9/python/typed_ast/issues/7 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af62ed4bff5cd516ddf71dc520a8c0a72f043ae36086e728ecde28919f1a86d9/python/typed_ast/issues/7 |
| og:image:alt | I accidentally ran pip install typed_ast using Python 2 and got these errors: [many more errors from gcc skipped] ast27/Parser/tokenizer.c:512:45: error: ‘PyId_readline’ undeclared (first use in th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rwbarton |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typed_ast git https://github.com/python/typed_ast.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 51875828 |
| octolytics-dimension-repository_nwo | python/typed_ast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51875828 |
| octolytics-dimension-repository_network_root_nwo | python/typed_ast |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width