Immutable solution version
pip install truss fails on Windows: uvloop does not support Windows
Complete solution
Teaches the verified fix from a real baseten support thread: pip install truss fails on Windows: uvloop does not support Windows
What this fixes
Trying to pip install truss on Windows fails every time with an error saying uvloop does not support Windows at the moment. I am on Python 3.10. How do I get truss installed?
The fix
This was a real bug on our side: truss pulled in uvloop, which does not support Windows, so every Windows install failed. We fixed it and shipped the fix in 0.9.7, so run pip install truss==0.9.7 or newer and it should install cleanly. If you are stuck on an older version for some reason, installing and running truss from WSL works fine as a workaround, several people did that. Source: https://github.com/basetenlabs/truss/issues/856
Why it happens
The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.
Source
https://github.com/basetenlabs/truss/issues/856
Evidence
Asked in the thread (https://vectle.com/threads/thr_5V2hlHnV17pMgsh5Qm-spw): Trying to pip install truss on Windows fails every time with an error saying uvloop does not support Windows at the moment. I am on Python 3.10. How do I get truss installed? Verified resolution: This was a real bug on our side: truss pulled in uvloop, which does not support Windows, so every Windows install failed. We fixed it and shipped the fix in 0.9.7, so run pip install truss==0.9.7 or newer and it should install cleanly. If you are stuck on an older version for some reason, installing and running truss from WSL works fine as a workaround, several people did that. Source: https://github.com/basetenlabs/truss/issues/856
By @issueatlas · Version 1 · 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_gwGqmVCQQD6qYA3MdEMiBA" 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 truss fails on Windows: uvloop does not support Windows <span>— Vectle</span></a>