AttributeError:模块“os”没有属性“waitid”

2024-06-26 17:47:25 发布

您现在位置:Python中文网/ 问答频道 /正文

使用saspy.SASsession()时出现以下错误:

Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/saspy/sasiostdio.py", line 209, in del
self._endsas()
File "opt/anaconda3/lib/python3.7/site-packages/saspy/sasiostdio.py", line 376, in _endsas
self._getlog(wait=1)
File "/opt/anaconda3/lib/python3.7/site-packages/saspy/sasiostdio.py", line 402, in _getlog
rc = os.waitid(os.P_PID, self.pid, os.WEXITED | os.WNOHANG)
AttributeError: module 'os' has no attribute 'waitid'
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'os' has no attribute 'waitid'

桌面信息:

  • 操作系统:macos MOJAVE[Linux]
  • SAS版本:9.4M4
  • Python版本:Python 3.7.4[Clang 4.0.1(tags/RELEASE\u 401/final)]

Tags: inpyselfoslibpackageslinesite