Kiwi TCMS 的一个问题

An issue with Kiwi TCMS

我正在尝试使用 Kiwi TCMS RPC API(project page) with the newest version installed (3.49) and it fails miserably as below even though I follow the API documentation。我想知道是否有人可以指出正确的方向。

  File "api_test.py", line 18, in <module>
    print(testplan.author)
  File "/usr/local/lib/python3.4/dist-packages/tcms_api/base.py", line 63, in getter
    self._fetch()
  File "/usr/local/lib/python3.4/dist-packages/tcms_api/mutable.py", line 273, in _fetch
    inject = self._server.TestPlan.get(self.id)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1098, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1432, in __request
    verbose=self.__verbose
  File "/usr/local/lib/python3.4/dist-packages/tcms_api/xmlrpc.py", line 79, in request
    except http.client.RemoteDisconnected:
AttributeError: 'module' object has no attribute 'RemoteDisconnected'

看来原因是调用 Kiwi TCMS (tcms-api) 的 Python 库与 Kiwi 本身之间的错位。两者都更新;版本 1.50 和 1.51 分别帮助解决了这个问题。