Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-3266

Explicitly use python version for poller-wrapper.py

Details

    • Bug
    • Resolution: Not A Bug
    • Major
    • None
    • Community Edition
    • Poller
    • None

    Description

      This is a followup to OBS-1302 Running poller-wrapper.py on CentOS 8 results in the following error:

      /usr/bin/env: ‘python’: No such file or directory

       

      CentOS 8 no longer honors shebang lines written as #!/usr/bin/env python

      As a workaround users can specify a default python version by running the command

      alternatives --set python /usr/bin/python3
      alternatives --set python /usr/bin/python2{{}}

       

      According to PEP 0394 "Some Linux distributions will not provide a {{python command at all by default, but will provide a python3 command by default."}}

      {{}}

      Attachments

        Issue Links

          Activity

            [OBS-3266] Explicitly use python version for poller-wrapper.py

            Since this is not related to this script issue, I not know what you want.
            poller-wrapper written as multi versioned (can work with python2 and python3 at same time).

            There are no other recommendations besides what you have already written (use alternatives).

            landy Mike Stupalov added a comment - Since this is not related to this script issue, I not know what you want. poller-wrapper written as multi versioned (can work with python2 and python3 at same time). There are no other recommendations besides what you have already written (use alternatives).

            People

              landy Mike Stupalov
              imcdona Isaac McDonald
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: