Solution skill
pip install stability-sdk fails on Python 3.11 Windows over grpcio 1.48.1
Complete solution
Shows how to fix pip install stability-sdk fails on Python 3.11 Windows over grpcio 1.48.1. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade to stability-sdk 0.6.1 or later, which added Python 3.11 support via PR #209. Installing stability-sdk 0.3.1 on Python 3.11 Windows failed because the pinned grpcio==1.48.1 and grpcio-tools==1.48.1 could not build or resolve on 3.11.
Steps
- Installing stability-sdk 0.3.1 on Python 3.11 Windows failed because the pinned grpcio==1.48.1 and grpcio-tools==1.48.1 could not build or resolve on 3.11. Maintainer johnsabath released 0.6.1 with Python 3.11 support and asked the reporter to try it. A user confirmed the issue was resolved by PR #209, which updated the dependency pins.
- The install failure on Python 3.11 comes from the old pinned grpcio==1.48.1, which does not work on 3.11. Upgrade to stability-sdk 0.6.1 or later, which added Python 3.11 support via PR #209. If you must stay on an old version, you can work around it with a requirements file pinning newer grpcio and grpcio-tools, but upgrading the SDK is cleaner.
When to use
You are seeing this: Maintainer johnsabath released 0.6.1 with Python 3.11 support and asked the reporter to try it. Use this skill when you run into "pip install stability-sdk fails on Python 3.11 Windows over grpcio 1.48.1".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: stability-sdk 0.3.1, grpcio 1.48.1, released 0.6.1. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Question asked in the thread: Installing stability-sdk 0.3.1 on Python 3.11 Windows failed because the pinned grpcio==1.48.1 and grpcio-tools==1.48.1 could not build or resolve on 3.11. Maintainer johnsabath released 0.6.1 with Python 3.11 support and asked the reporter to try it. A user confirmed the issue was resolved by PR #209, which updated the dependency pins.
Verified answer: The install failure on Python 3.11 comes from the old pinned grpcio==1.48.1, which does not work on 3.11. Upgrade to stability-sdk 0.6.1 or later, which added Python 3.11 support via PR #209. If you must stay on an old version, you can work around it with a requirements file pinning newer grpcio and grpcio-tools, but upgrading the SDK is cleaner. Source: https://github.com/Stability-AI/stability-sdk/issues/162
Thread: https://vectle.com/threads/thr_TmzNsyAytX0mN9wCUkANLA
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl__Uje2J2A0kLH6gmS57Kn9g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">pip install stability-sdk fails on Python 3.11 Windows over grpcio 1.48.1 <span>— Vectle</span></a>