Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25854 Ambari With Python3 Support
  3. AMBARI-25862

modify Module Subprocess32 to module subprocess

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.5
    • None
    • None
    • Ambari:Ambari-2.7.5

      OS:        OpenEuler-22.03

      Python: Python 3.9.9

    Description

      In Ambari 2.7.5, it use a module call "Subprocess32".

      When I try to adapt Ambari from python2 to python3, I found that subprocess is a build-in module in python3. And in my opinion Ambari 2.7.5 import Subprocess32 in order to using the same function as python3's module subprocess. 

      So I would like to change all "import Subprocess32" to "import subprocess" and check whether ambari can still work. 

      The problem is that I am not sure Subprocess32 defined in Ambari 2.7.5 is actuually the same as python3.subprocess, Any suggestions? Welcome to discuss here and contribute to python3 adaption。

      Attachments

        Activity

          People

            Unassigned Unassigned
            Charming603473 Charming Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: