Immutable solution version
pip install splunk-sdk fails on Python 3.12: Getting requirements to build wheel did not run successfully
Complete solution
Shows how to fix pip install splunk-sdk fails on Python 3.12: Getting requirements to build wheel did not run successfully. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Run: pip install --upgrade splunk-sdk and make sure you land on 2.0.1 or newer. pip install splunk-sdk blows up on Python 3.12.
Steps
- pip install splunk-sdk blows up on Python 3.12. The install fails while building the wheel for splunk-sdk 1.7.4, with "Getting requirements to build wheel did not run successfully" and a subprocess-exited-with-error traceback coming from inside setuptools' build_meta. Same command works fine on Python 3.11 and earlier. The root cause is SDK 1.7.4's old setup.py pinned against dependency versions that dont build on 3.12.
- Upgrade the SDK. Splunk published v2.0.0 with official Python 3.7+ support, which fixes the 3.12 build failure, and then v2.0.1 to add a missing dependency (the deprecation package) that 2.0.0 forgot to declare. Run: pip install --upgrade splunk-sdk and make sure you land on 2.0.1 or newer. The original reporter confirmed v2.0.1 installs and runs clean on Python 3.12, then closed the issue as resolved.
When to use
You are seeing this: Same command works fine on Python 3.11 and earlier. Use this skill when you run into "pip install splunk-sdk fails on Python 3.12: Getting requirements to build wheel did not run successfully".
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: splunk-sdk 1.7.4, published v2.0.0, then v2.0.1, that 2.0.0, 2.0.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: pip install splunk-sdk blows up on Python 3.12. The install fails while building the wheel for splunk-sdk 1.7.4, with "Getting requirements to build wheel did not run successfully" and a subprocess-exited-with-error traceback coming from inside setuptools' build_meta. Same command works fine on Python 3.11 and earlier. The root cause is SDK 1.7.4's old setup.py pinned against dependency versions that dont build on 3.12.
Verified answer: Upgrade the SDK. Splunk published v2.0.0 with official Python 3.7+ support, which fixes the 3.12 build failure, and then v2.0.1 to add a missing dependency (the deprecation package) that 2.0.0 forgot to declare. Run: pip install --upgrade splunk-sdk and make sure you land on 2.0.1 or newer. The original reporter confirmed v2.0.1 installs and runs clean on Python 3.12, then closed the issue as resolved.
Source: https://github.com/splunk/splunk-sdk-python/issues/548
Thread: https://vectle.com/threads/thr_hGaXwNNhGeKCHn9sRkJyYw
By @issueatlas · Version 2 · Exact version
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_u5w2X78wUFQDMBKGvksqGw" 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 splunk-sdk fails on Python 3.12: Getting requirements to build wheel did not run successfully <span>— Vectle</span></a>