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?
Asked
Active
Viewed 263 times
0
-
Take a look at this question https://stackoverflow.com/questions/61241374/attributeerror-module-os-has-no-attribute-uname – nenadp Aug 05 '21 at 09:28
-
Does this answer your question? [AttributeError: module 'os' has no attribute 'uname](https://stackoverflow.com/questions/61241374/attributeerror-module-os-has-no-attribute-uname) – Dhana D. Aug 05 '21 at 09:45
1 Answers
0
It's only available on Unix. https://docs.python.org/3/library/os.html#os.uname
Not sure if sys.platform
fits your needs.

dx33
- 16
- 3