monitoring icon indicating copy to clipboard operation
monitoring copied to clipboard

error when running on OSX

Open johnmontero opened this issue 13 years ago • 3 comments

(env) : monitoring Traceback (most recent call last): File "/Users/john/.virtualenvs/env/bin/monitoring", line 2, in import sys, monitoring File "/Users/john/.virtualenvs/env/lib/python2.7/site-packages/monitoring.py", line 1637, in System.CPUStats() File "/Users/john/.virtualenvs/env/lib/python2.7/site-packages/monitoring.py", line 471, in CPUStats time_list = cat("/proc/stat").split("\n")[0].split(" ")[2:6]

johnmontero avatar Jan 23 '13 23:01 johnmontero

Hi John. I'n not sure you have the full traceback... I'd need the exception, but my guess is that OSX doesn't have the /proc filesystem. Can you confirm?

sebastien avatar Jan 25 '13 17:01 sebastien

Not exists this filesystem.

Maybe help you https://github.com/Captainkrtek/OpenRelay/issues/7

johnmontero avatar Jan 25 '13 17:01 johnmontero

I believe this solves this problem https://github.com/sebastien/monitoring/commit/ad4f761835627f9fe61e68c13e760509f4a30db2

rantav avatar Jun 01 '14 21:06 rantav