Skip to content

[Bug]: zsh autocompletion script still calls python2 #69419

@dandedrick

Description

@dandedrick

What happened?

The zsh autocompletion script at pkg/common/salt.zsh still calls python2 to try to find locate the salt python package. When attempting to utilize tab completion the following error is produced and tab completion is not successful:

(anon):7: command not found: python2
(anon):7: command not found: python2
(anon):7: command not found: python2
(anon):7: command not found: python2

With onedir even if python2 is present, which is unlikely at this point, it won't find salt in the standard python path.

Type of salt install

other (please specify in bug details)

Major version

3006.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

fedora-42

salt --versions-report output

Salt Version:
          Salt: 3006.25
 
Python Version:
        Python: 3.10.20 (main, Apr 22 2026, 05:54:37) [GCC 11.2.0]
 
Dependency Versions:
          cffi: 2.0.0
      cherrypy: unknown
  cryptography: 46.0.7
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: 4.0.12
     gitpython: 3.1.46
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.23.0
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.22.8
         smmap: 5.0.2
       timelib: 0.3.0
       Tornado: 6.5.5
           ZMQ: 4.3.4
 
System Versions:
          dist: fedora 42 
        locale: utf-8
       machine: x86_64
       release: 7.0.4-200.fc44.x86_64
        system: Linux
       version: Fedora Linux 42

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions