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
            landy Mike Stupalov made changes -
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            landy Mike Stupalov made changes -
            Resolution New: Not A Bug [ 6 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            imcdona Isaac McDonald made changes -
            Link New: This issue mentions OBS-1302 [ OBS-1302 ]
            imcdona Isaac McDonald created issue -

            People

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

              Dates

                Created:
                Updated:
                Resolved: