繁体   English   中英

Python在AIX上为posix grp函数提供NotImplementedError

[英]Python gives NotImplementedError for posix grp functions on AIX

我在使用python通过tarfile.extractall提取tar文件时发现了这个问题。 该功能可在其他OS上使用,但是在AIX上,我收到了源自getgrnam的错误。

这是仅调用getgrnam的非常简单的测试:

Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06)
[IBM J9 VM (IBM Corporation)] on java1.5.0
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import grp
>>>
>>> file = "test.txt"
>>>
>>> grp.getgrnam(file)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/jython.jar/Lib/grp.py", line 67, in getgrnam
NotImplementedError: getgrnam unimplemented

知道为什么会发生这种情况以及可能会有什么解决方案吗?

对于Jython,AIX不会显示为POSIX。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM