2014-05-28, 00:43
(2014-05-27, 09:49)Ayla Wrote:(2014-05-26, 20:38)hellow Wrote:(2014-05-26, 16:47)Ayla Wrote: I'm using 10.9.3 - how do I import it manually?
Thanks
open terminal
write python and press enter
import psutil
do you get any error?
No errors, with 'import psutil'.
'psutil' gives:
Code:>>> psutil
<module 'psutil' from '/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil-2.1.1-py2.7-macosx-10.9-x86_64.egg/psutil/__init__.pyc'>
(2014-05-27, 04:05)MadClicker Wrote: Look, since it's obvious you installed a valid version. Just comment out the sanity check:
PHP Code:@cherrypy.expose()
def index(self):
#Since many linux repos still have psutil version 0.5
if psutil.version_info >= (0, 7):
pass
else:
self.logger.error("Psutil is outdated, needs atleast version 0,7")
return htpc.LOOKUP.get_template('stats.html').render(scriptname='stats')
To look like this:
PHP Code:@cherrypy.expose()
def index(self):
#Since many linux repos still have psutil version 0.5
#if psutil.version_info >= (0, 7):
# pass
# else:
# self.logger.error("Psutil is outdated, needs atleast version 0,7")
return htpc.LOOKUP.get_template('stats.html').render(scriptname='stats')
And let us know how it works. I have an interest.
Thanks for helping out,
I saw that check when I browsed the code, but I wasn't too keen on commenting it out, because then I would have to do it every time I update HTPC-Manager.
I'll try it and see if it works.
EDIT: It doesn't work, I just get this error now:
Code:2014-05-27 10:01:21 modules.stats ERROR Could't import psutil. See http://psutil.googlecode.com/hg/INSTALL
I just tested psutil 2.1.1 on osx 10.9.3 and it works as it should.