splunk-sdk-python: Failed installing with `pip install splunk-sdk` for Python 3.12
Describe the bug
Install this with Python 3.12.0 via pip failed.
To Reproduce Steps to reproduce the behavior:
- Execute
python -m pip install splunk-sdk, wherepythonis Python 3.12.0
Expected behavior
It installs successfully.
Logs or Screenshots
(.venv) [jfcherng@3bc-f19 test]$ pip install splunk-sdk
Collecting splunk-sdk
Using cached splunk-sdk-1.7.4.tar.gz (108 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Traceback (most recent call last):
File "D:\jfcherng\Desktop\test\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "D:\jfcherng\Desktop\test\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\jfcherng\Desktop\test\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jfcherng\AppData\Local\Temp\pip-build-env-cu0raqgr\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jfcherng\AppData\Local\Temp\pip-build-env-cu0raqgr\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "C:\Users\jfcherng\AppData\Local\Temp\pip-build-env-cu0raqgr\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\jfcherng\AppData\Local\Temp\pip-build-env-cu0raqgr\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 22, in <module>
File "C:\Users\jfcherng\AppData\Local\Temp\pip-install-lhx3336b\splunk-sdk_51a09a02018f4642aae48e2c7342d0c6\splunklib\__init__.py", line 18, in <module>
from splunklib.six.moves import map
ModuleNotFoundError: No module named 'splunklib.six.moves'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
SDK (please complete the following information):
- Version: 1.7.4
- Language Runtime Version: Python 3.12.0 amd64
- OS: Win10 x64 21H2 19044.3448
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 9
- Comments: 20 (5 by maintainers)
Commits related to this issue
- ci: splunk-sdk does not support python 3.12 https://github.com/splunk/splunk-sdk-python/issues/548 — committed to curbengh/splunk-scripts by deleted user 8 months ago
- ci: splunk-sdk does not support python 3.12 https://github.com/splunk/splunk-sdk-python/issues/548 — committed to curbengh/splunk-malware-filter by deleted user 8 months ago
Hi all, the library currently supports Python 2 and Python 3 runtimes and contains certain dependencies which are not working well with Python 3.9+ versions. This quarter, we are planning on a new beta release for the Python SDK with updated support for Python 3.9 and hope to resolve these issues. Please watch for updates here.
I can confirm this is still an issue
Thanks @jfcherng for the fix PR. We will make sure to include the missing dependency in the next release.
only 3.12 suffers.
Q4 2023 is over. Is the support for 3.9+ version support still on the roadmap?