Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5138

Ambari deploy and unit test fails on Python 2.6.9

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      [INFO] --- exec-maven-plugin:1.2:exec (python-test) @ ambari-server ---
      Running tests for stack:1.3.2 service:GANGLIA
      Process Process-1:
      Traceback (most recent call last):
        File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 232, in _bootstrap
          self.run()
        File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/process.py", line 88, in run
          self._target(*self._args, **self._kwargs)
        File "unitTests.py", line 95, in stack_test_executor
          modules]
        File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 576, in loadTestsFromName
          module = __import__('.'.join(parts_copy))
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-server/src/test/python/stacks/1.3.2/GANGLIA/test_ganglia_monitor.py", line 21, in <module>
          from stacks.utils.RMFTestCase import *
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 29, in <module>
          from resource_management.core.environment import Environment
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/__init__.py", line 23, in <module>
          from resource_management.libraries import *
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/libraries/__init__.py", line 23, in <module>
          from resource_management.libraries.functions import *
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/libraries/functions/__init__.py", line 23, in <module>
          from resource_management.libraries.functions.default import *
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/libraries/functions/default.py", line 24, in <module>
          from resource_management.libraries.script import Script
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/libraries/script/__init__.py", line 23, in <module>
          from resource_management.libraries.script.script import *
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/libraries/script/script.py", line 27, in <module>
          from resource_management.core.environment import Environment
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/core/__init__.py", line 23, in <module>
          from resource_management.core.base import *
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/core/base.py", line 27, in <module>
          from resource_management.core.environment import Environment
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/core/environment.py", line 30, in <module>
          from resource_management.core import shell
        File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/main/python/resource_management/core/shell.py", line 27, in <module>
          from subprocess import TimeoutExpired
      ImportError: cannot import name TimeoutExpired
      

      Attachments

        Issue Links

          Activity

            No work has yet been logged on this issue.

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: