So this code was written on Linux and now I try to run it on Windows and I am getting such errors, what should I do?
It's only available on Unix. https://docs.python.org/3/library/os.html#os.uname
Not sure if sys.platform fits your needs.
sys.platform