过去几天,我无法在 Eclipse 和 RED 中验证任何自定义库。我正在使用 Robot 框架,我的库是用 Python 编写的。
它总是以这个错误结束:
RED was unable to find classes/modules inside
'C:\Users\PSaman\Desktop\python\robot_projects\matching\Libraries\MatchingLibrary.py' module
Unable to communicate with XML-RPC server
我使用的是 Eclipse 版本:
org.eclipse.platform=4.9.0.v20180906-0745
和红色版本:
org.robotframework.ide.eclipse.main.plugin (0.8.9.201811201254) "RED Robot Editor" [Active]
我尝试过:
1)将我的库简化为:
import numpy as np
import cv2
class MatchingLibrary(object):
def compare(self):
self.something = False
2)创建一个新项目。
3) 为我的项目创建一个新工作区。
4) 将 RED 更新到最新版本。
但是我遇到了同样的错误。这里的解决方案是什么? 谢谢
最佳答案
问题已在 RED 版本 0.8.11 中修复,请检查此 release note
关于python - eclipse 和红色 : unable to communicate with XML-RPC server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53468583/