{"action":"closed","issue":{"url":"https://api.github.com/repos/logentries/le/issues/139","labels_url":"https://api.github.com/repos/logentries/le/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/logentries/le/issues/139/comments","events_url":"https://api.github.com/repos/logentries/le/issues/139/events","html_url":"https://github.com/logentries/le/issues/139","id":103924705,"number":139,"title":"AttributeError: 'module' object has no attribute 'NUM_CPUS'","user":{"login":"w4-sjcho","id":8187891,"avatar_url":"https://avatars.githubusercontent.com/u/8187891?v=3","gravatar_id":"","url":"https://api.github.com/users/w4-sjcho","html_url":"https://github.com/w4-sjcho","followers_url":"https://api.github.com/users/w4-sjcho/followers","following_url":"https://api.github.com/users/w4-sjcho/following{/other_user}","gists_url":"https://api.github.com/users/w4-sjcho/gists{/gist_id}","starred_url":"https://api.github.com/users/w4-sjcho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w4-sjcho/subscriptions","organizations_url":"https://api.github.com/users/w4-sjcho/orgs","repos_url":"https://api.github.com/users/w4-sjcho/repos","events_url":"https://api.github.com/users/w4-sjcho/events{/privacy}","received_events_url":"https://api.github.com/users/w4-sjcho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-30T13:53:36Z","updated_at":"2015-09-01T09:24:49Z","closed_at":"2015-09-01T09:24:49Z","body":"I'm getting this error.\r\n\r\nle version: 1.4.21\r\npython version: 2.7.9\r\npsutil version: 3.1.1\r\n\r\n```\r\n$ sudo le --debug --debug-events monitor\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/le\", line 9, in <module>\r\n    load_entry_point('logentries==1.4.21', 'console_scripts', 'le')()\r\n  File \"/usr/share/logentries/logentries/le.py\", line 3140, in main\r\n    return func(args[1:])\r\n  File \"/usr/share/logentries/logentries/le.py\", line 2806, in cmd_monitor\r\n    formatter, config.debug_metrics)\r\n  File \"/usr/share/logentries/logentries/metrics.py\", line 459, in __init__\r\n    self._items = self._instantiate(conf)\r\n  File \"/usr/share/logentries/logentries/metrics.py\", line 482, in _instantiate\r\n    items.append( CpuMetrics(conf.cpu == 'core', self._interval, self._transport, self._formatter))\r\n  File \"/usr/share/logentries/logentries/metrics.py\", line 57, in __init__\r\n    self._vcpus = _psutil_cpu_count()\r\n  File \"/usr/share/logentries/logentries/metrics.py\", line 45, in _psutil_cpu_count\r\n    return psutil.NUM_CPUS\r\nAttributeError: 'module' object has no attribute 'NUM_CPUS'\r\nException in thread Thread-1 (most likely raised during interpreter shutdown):\r\nTraceback (most recent call last):\r\n  File \"/usr/lib64/python2.7/threading.py\", line 813, in __bootstrap_inner\r\n  File \"/usr/lib64/python2.7/threading.py\", line 1085, in run\r\n  File \"/usr/share/logentries/logentries/le.py\", line 1220, in send_stats\r\n<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'time'\r\n```"}}