Forums

Couldn't read /proc/self/stat

import sys sys.path.append("/home/user/mymodule/") import mymodule Couldn't read /proc/self/stat Console closed.

Hi guys, can you advise what do I do here?

We don't provide a large part of the /proc file hierarchy on PythonAnywhere, so whatever is trying to use it probably won't work.

ok so what do I do?

Don't import that module or find a different way of doing what the module it trying to do.

Glen without that module I have no app. So maybe find another host? It could be one of it's dependencies...I won't know what to do otherwise. Any other suggestions or ideas?

Are you using the module in a web app, or a scheduled task, or trying to run it from a console? If it's one of the first two then unfortunately there's nothing we can do to provide a /proc for you right now. If it's in a console, we do have something in beta that might help.