Skip to content

community/salt: remove stale patch for python3.10 compatibility

vin 01 requested to merge vin01/aports:master into master

hi,

with python3.10, it is broken and does not really work with python3.10 as it does not use the import as name "importlib_metadata". It is also removed from salt: https://github.com/saltstack/salt/commit/8e008cfd1ebf124cac7ff3b8b01373827cf9f70f

Traceback (most recent call last):
  File "/usr/bin/salt-minion", line 33, in <module>
    sys.exit(load_entry_point('salt==3004.2', 'console_scripts', 'salt-minion')())
  File "/usr/lib/python3.10/site-packages/salt/scripts.py", line 167, in salt_minion
    import salt.cli.daemons
  File "/usr/lib/python3.10/site-packages/salt/cli/daemons.py", line 50, in <module>
    import salt.utils.parsers
  File "/usr/lib/python3.10/site-packages/salt/utils/parsers.py", line 24, in <module>
    import salt.config as config
  File "/usr/lib/python3.10/site-packages/salt/config/__init__.py", line 101, in <module>
    _DFLT_IPC_WBUFFER = _gather_buffer_space() * 0.5
  File "/usr/lib/python3.10/site-packages/salt/config/__init__.py", line 89, in _gather_buffer_space
    import salt.grains.core
  File "/usr/lib/python3.10/site-packages/salt/grains/core.py", line 32, in <module>
    import salt.modules.cmdmod
  File "/usr/lib/python3.10/site-packages/salt/modules/cmdmod.py", line 31, in <module>
    import salt.utils.templates
  File "/usr/lib/python3.10/site-packages/salt/utils/templates.py", line 19, in <module>
    import salt.utils.http
  File "/usr/lib/python3.10/site-packages/salt/utils/http.py", line 28, in <module>
    import salt.loader
  File "/usr/lib/python3.10/site-packages/salt/loader/__init__.py", line 32, in <module>
    from salt.utils import entrypoints
  File "/usr/lib/python3.10/site-packages/salt/utils/entrypoints.py", line 6, in <module>
    from salt._compat import importlib_metadata
ImportError: cannot import name 'importlib_metadata' from 'salt._compat' (/usr/lib/python3.10/site-packages/salt/_compat.py)
Edited by vin 01

Merge request reports

Loading