This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: os.uname failing in windows
Type: behavior Stage:
Components: Library (Lib), Windows Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: brian.curtin, flox, stuaxo
Priority: normal Keywords:

Created on 2010-03-06 15:08 by stuaxo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg100531 - (view) Author: Stuart Axon (stuaxo) Date: 2010-03-06 15:08
I'm not sure why this is happening, but os.uname() is failing on my computer in XP Home 32bit.  Tested in the normal shell and MSys

The code in platform.py looks like it should work to me.


[C:\usr\Python26\Lib]python
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.uname()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'uname'
>>>
msg100532 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-03-06 15:14
As documented, this is not supported on Windows.

http://docs.python.org/dev/library/os#os.uname
os.uname is generated in Modules/posixmodule.c, not in platform.py
msg100533 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-06 15:15
Use platform.uname(), it is available on all platforms.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52327
2010-03-06 15:15:22floxsetpriority: normal
nosy: + flox
messages: + msg100533

2010-03-06 15:14:13brian.curtinsetstatus: open -> closed

nosy: + brian.curtin
messages: + msg100532

resolution: not a bug
2010-03-06 15:08:28stuaxocreate