Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-684

atlas_stop.py fails to stop Atlas on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.7-incubating
    • 0.7-incubating
    • None
    • Windows7, Python 2.7.10

    Description

      The latest atlas_stop.py fails with following error.
      -----------------------------
      File "C:\atlas-repo2\bin\atlas_config.py", line 326, in exist_pid
      command='tasklist /fi "pid eq '+ pid + '"'
      TypeError: cannot concatenate 'str' and 'int' objects
      -----------------------------
      Doing a quick fix to cast 'pid' to a string like 'str(pid)' fixes it.
      One more error shows up after that.

      -----------------------------
      File "C:\atlas-repo2\bin\atlas_config.py", line 332, in exist_pid
      if pid in line:
      TypeError: 'in <string>' requires string as left operand, not int
      -----------------------------

      A similar fix. Replace 'pid' with 'str(pid)' seems to work.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmadugun venkata madugundu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: