Hi. I’m running a Django app on PythonAnywhere.com. The raven runner raises
OSError: Load averages are unobtainable
when calling os.getloadavg()
in
def get_loadavg():
if hasattr(os, 'getloadavg'):
return os.getloadavg()
return None
These are the responses in the Python interpreter, and according to the PA team, it’s currently the expected behavior:
>>> import os
>>> hasattr(os, 'getloadavg')
True
>>> os.getloadavg()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: Load averages are unobtainable
>>>
Is there a way to disable this call to getloadavg
in the configuration somehow? Or is there another way to get raven running?