Title: pip install ujson: pip._vendor.urllib3.exceptions.SSLError: The operation did not complete (read) · Issue #6491 · RustPython/RustPython · GitHub
Open Graph Title: pip install ujson: pip._vendor.urllib3.exceptions.SSLError: The operation did not complete (read) · Issue #6491 · RustPython/RustPython
X Title: pip install ujson: pip._vendor.urllib3.exceptions.SSLError: The operation did not complete (read) · Issue #6491 · RustPython/RustPython
Description: Hi! I'm trying to install ujson (it's optional dependency for xonsh shell) on mac: rustpython -m pip install ujson Result: Details Defaulting to user installation because normal site-packages is not writeable Collecting ujson Downloading...
Open Graph Description: Hi! I'm trying to install ujson (it's optional dependency for xonsh shell) on mac: rustpython -m pip install ujson Result: Details Defaulting to user installation because normal site-packages is no...
X Description: Hi! I'm trying to install ujson (it's optional dependency for xonsh shell) on mac: rustpython -m pip install ujson Result: Details Defaulting to user installation because normal site-packag...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pip install ujson: pip._vendor.urllib3.exceptions.SSLError: The operation did not complete (read)","articleBody":"Hi! I'm trying to install ujson (it's optional dependency for xonsh shell) on mac:\n\n```xsh\nrustpython -m pip install ujson\n```\nResult:\n\n\u003cdetails\u003e\n\n```xsh\nDefaulting to user installation because normal site-packages is not writeable\nCollecting ujson\n Downloading ujson-5.11.0.tar.gz (7.2 MB)\n ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/7.2 MB ? eta -:--:--\u003cbound method Thread._bootstrap of \u003c_RefreshThread(Thread-1, started daemon 2)\u003e\u003e\n\n ━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━ 3.1/7.2 MB 8.8 MB/s eta 0:00:01\nERROR: Exception:\nTraceback (most recent call last):\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/urllib3/response.py\", line 561, in read\n data = self._fp_read(amt) if not fp_closed else b\"\"\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/urllib3/response.py\", line 527, in _fp_read\n return self._fp.read(amt) if amt is not None else self._fp.read()\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/cachecontrol/filewrapper.py\", line 98, in read\n data: bytes = self.__fp.read(amt)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/http/client.py\", line 465, in read\n s = self.fp.read(amt)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/socket.py\", line 714, in readinto\n raise\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/socket.py\", line 707, in readinto\n return self._sock.recv_into(b)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/ssl.py\", line 1304, in recv_into\n return self.read(nbytes, buffer)\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/ssl.py\", line 1148, in read\n raise\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/ssl.py\", line 1138, in read\n return self._sslobj.read(len, buffer)\nssl_error.SSLWantReadError: The operation did not complete (read)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/base_command.py\", line 107, in _run_wrapper\n status = _inner_run()\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/base_command.py\", line 100, in _inner_run\n self.handle_pip_version_check(options)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/base_command.py\", line 98, in _inner_run\n return self.run(options, args)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/base_command.py\", line 98, in _inner_run\n return self.run(options, args)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/req_command.py\", line 91, in wrapper\n raise\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/req_command.py\", line 85, in wrapper\n return func(self, options, args)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/commands/install.py\", line 516, in run\n return ERROR\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/commands/install.py\", line 389, in run\n reqs, check_supported_wheels=not options.target_dir\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/resolver.py\", line 110, in resolve\n raise ResolutionTooDeepError from None\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/resolver.py\", line 100, in resolve\n collected.requirements, max_rounds=limit_how_complex_resolution_can_be\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py\", line 601, in resolve\n state = resolution.resolve(requirements, max_rounds=max_rounds)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py\", line 436, in resolve\n raise ResolutionImpossible(e.criterion.information) from e\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py\", line 434, in resolve\n self._add_to_criteria(self.state.criteria, r, parent=None)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py\", line 150, in _add_to_criteria\n if not criterion.candidates:\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/resolvelib/structs.py\", line 194, in __bool__\n return bool(self._sequence)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py\", line 165, in __bool__\n self._bool = any(self)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py\", line 1, in \u003cgenexpr\u003e\n \"\"\"Utilities to lazily create and visit candidates found.\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py\", line 51, in _iter_built\n versions_found.add(version)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py\", line 39, in _iter_built\n candidate = func()\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/factory.py\", line 181, in _make_candidate_from_link\n link, template, name, version\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/factory.py\", line 241, in _make_base_candidate_from_link\n return None\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/factory.py\", line 231, in _make_base_candidate_from_link\n version=version,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 324, in __init__\n version=version,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 161, in __init__\n self.dist = self._prepare()\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 257, in _prepare\n failed_step=exc.command_description,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 238, in _prepare\n dist = self._prepare_distribution()\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py\", line 329, in _prepare_distribution\n return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/operations/prepare.py\", line 507, in prepare_linked_requirement\n with indent_log():\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/operations/prepare.py\", line 543, in prepare_linked_requirement\n return self._prepare_linked_requirement(req, parallel_builds)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/operations/prepare.py\", line 625, in _prepare_linked_requirement\n f\"error {exc} for URL {link}\"\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/operations/prepare.py\", line 620, in _prepare_linked_requirement\n hashes,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/operations/prepare.py\", line 184, in unpack_url\n hashes=hashes,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/operations/prepare.py\", line 121, in get_http_url\n from_path, content_type = download(link, temp_dir.path)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/network/download.py\", line 193, in __call__\n with open(filepath, \"wb\") as content_file:\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/network/download.py\", line 195, in __call__\n self._process_response(download, resp)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/network/download.py\", line 219, in _process_response\n logger.warning(\"Connection timed out while downloading.\")\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/network/download.py\", line 212, in _process_response\n for chunk in chunks:\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/progress_bars.py\", line 66, in _rich_download_progress_bar\n with progress:\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/cli/progress_bars.py\", line 67, in _rich_download_progress_bar\n for chunk in iterable:\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/network/utils.py\", line 98, in response_chunks\n yield chunk\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_internal/network/utils.py\", line 89, in response_chunks\n decode_content=False,\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/urllib3/response.py\", line 622, in stream\n data = self.read(amt=amt, decode_content=decode_content)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/urllib3/response.py\", line 560, in read\n with self._error_catcher():\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/contextlib.py\", line 194, in __exit__\n raise\n File \"/Users/pc/.cargo/git/checkouts/rustpython-63090cdce5e18442/7c3bc5e/crates/pylib/Lib/contextlib.py\", line 162, in __exit__\n self.gen.throw(value)\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/urllib3/response.py\", line 479, in _error_catcher\n self.release_conn()\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/urllib3/response.py\", line 459, in _error_catcher\n clean_exit = True\n File \"/Users/pc/.local/lib/rustpython3.13/site-packages/pip/_vendor/urllib3/response.py\", line 449, in _error_catcher\n raise SSLError(e)\npip._vendor.urllib3.exceptions.SSLError: The operation did not complete (read)\n```\n\n\u003c/details\u003e","author":{"url":"https://github.com/anki-code","@type":"Person","name":"anki-code"},"datePublished":"2025-12-24T14:01:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/6491/RustPython/issues/6491"}
| 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:f60e18df-ea61-75bd-1d79-2bd5e314297a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEF0:29B8E2:2465666:3199AF6:696AD59E |
| html-safe-nonce | 298207982d586827a9cea98cd9a9ab1d9bc88809cdad6e17a5a851ceb521d884 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUYwOjI5QjhFMjoyNDY1NjY2OjMxOTlBRjY6Njk2QUQ1OUUiLCJ2aXNpdG9yX2lkIjoiMjA5ODkyMzc3NzU5NTAzNzc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 71b49373f27ab1de455f9fd79c264613739a3a6dfdc9b26177e980b05c5e3a3a |
| hovercard-subject-tag | issue:3760394095 |
| 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/RustPython/RustPython/6491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b3f01f98e061ef480aa1168bc5f36b1c6458e13dcdb86aca287d1bb33b8c19b/RustPython/RustPython/issues/6491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b3f01f98e061ef480aa1168bc5f36b1c6458e13dcdb86aca287d1bb33b8c19b/RustPython/RustPython/issues/6491 |
| og:image:alt | Hi! I'm trying to install ujson (it's optional dependency for xonsh shell) on mac: rustpython -m pip install ujson Result: Details Defaulting to user installation because normal site-packages is no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anki-code |
| hostname | github.com |
| expected-hostname | github.com |
| None | c785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | c718a376fcf780eb22089171adb84a543f660bf7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width