m2005 untar error on msys2 (tar01 directory)

Anders Montonen Anders.Montonen at iki.fi
Tue May 5 07:34:46 UTC 2020


Hi,

> On 5 May 2020, at 8:44, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
> On 05/05/2020 07:41, Chris Johns wrote:
> 
>> On 5/5/20 3:34 pm, Sebastian Huber wrote:
>> 
>> What does `os.uname()` return?
> 
> In the msys shell:
> 
> $ python
> Python 3.7.4 (default, Jul 11 2019, 09:35:14)
> [GCC 9.1.0] on msys
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>> os.uname()
> posix.uname_result(sysname='MSYS_NT-6.1-7601', nodename='Blub', release='3.0.7-338.x86_64', version='2019-07-11 10:58 UTC', machine='x86_64')
> 
> In the mingw64 shell:
> 
> $ python
> Python 3.8.2 (default, Feb 27 2020, 05:27:33)  [GCC 9.2.0 64 bit (AMD64)] 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 'os' has no attribute ‘uname'

Python’s own documentation only says “recent flavors of Unix” under availability for the os.uname() method. platform.uname() or sys,platform might be more portable?
<https://docs.python.org/3/library/os.html#os.uname>

Regards,
Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200505/8fe5d163/attachment-0001.html>


More information about the devel mailing list