Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7834

newinstall.sh python version test dies under py2.6

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: stack release
    • Labels:
      None
    • Templates:
    • Story Points:
      0.25
    • Team:
      SQuaRE

      Description

      The current python version test logic in newinstall.sh returns a non-zero exit status when run under python 2.6. This causes the script to exit with no information other than a python stack trace. Additionally, this prevents newinstall.sh from functioning on a el6.

      [master] ~ $ docker run -ti centos:6 bash
      [root@32ae96127e92 /]# python --version
      Python 2.6.6
      [root@32ae96127e92 /]# PYVEROK=$(python -c 'import sys
      > minver2=7
      > minver3=5
      > vmaj = sys.version_info.major
      > vmin = sys.version_info.minor
      > if (vmaj == 2 and vmin >= minver2) or (vmaj == 3 and vmin >= minver3):
      >     print(1)
      > else:
      >     print(0)')
      Traceback (most recent call last):
        File "<string>", line 4, in <module>
      AttributeError: 'tuple' object has no attribute 'major'
      

        Attachments

          Activity

            People

            • Assignee:
              jhoblitt Joshua Hoblitt
              Reporter:
              jhoblitt Joshua Hoblitt
              Reviewers:
              Tim Jenness
              Watchers:
              Frossie Economou, Joshua Hoblitt, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel