Support Questions
Find answers, ask questions, and share your expertise

Error Starting Ambari Metrics ImportError: No module named ambari_commons.subprocess32

Highlighted

Error Starting Ambari Metrics ImportError: No module named ambari_commons.subprocess32

New Contributor

Getting this error while starting through UI


building '_psutil_posix' extension
psutil binaries need to be built by running, psutil/build.py manually or by running a, mvn clean package, command.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_monitoring/main.py", line 28, in <module>
    from core.controller import Controller
  File "/usr/lib/python2.6/site-packages/resource_monitoring/core/controller.py", line 27, in <module>
    from metric_collector import MetricsCollector
  File "/usr/lib/python2.6/site-packages/resource_monitoring/core/metric_collector.py", line 23, in <module>
    from host_info import HostInfo
  File "/usr/lib/python2.6/site-packages/resource_monitoring/core/host_info.py", line 25, in <module>
    import psutil
  File "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.7/psutil/__init__.py", line 89, in <module>
    import psutil._pslinux as _psplatform
  File "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.7/psutil/_pslinux.py", line 20, in <module>
    from psutil import _common
ImportError: cannot import name _common


Tried this ERROR:"ImportError: cannot import name _common" when starting Ambari Metrics Monitor after installin...

Getting this error while doing that

python psutil/build.py
Traceback (most recent call last):
  File "psutil/build.py", line 21, in <module>
    from ambari_commons.subprocess32 import call
ImportError: No module named ambari_commons.subprocess32

Please suggest