我在将robotframework版本从3.2.2更新到4.1.1后看到此消息也许有人遇到过类似的问题,并有解决方案?我想这与另一个问题有关https://github.com/nokia/RED/issues/413
这里是Traceback:
File "kubeless.py", line 23, in <module>
from robot_hub import RobotHub
File "c:optrobotrobot_hub.py", line 9, in <module>
from rfhub import blueprints
File "C:Python37libsite-packagesrfhubblueprints__init__.py", line 1, in <module>
from rfhub.blueprints.api import blueprint as api
File "C:Python37libsite-packagesrfhubblueprintsapi__init__.py", line 9, in <module>
from . import keywords
File "C:Python37libsite-packagesrfhubblueprintsapikeywords.py", line 7, in <module>
from robot.libdocpkg.htmlwriter import DocToHtml
ImportError: cannot import name 'DocToHtml' from 'robot.libdocpkg.htmlwriter' (C:Python37libsite-packagesrobotlibdocpkghtmlwriter.py)
kubeless.py
...
from robot_hub import RobotHub
...
if __name__ == '__main__':
app.hub = RobotHub(app)
...
我发现包rfhub v 1.0.1 (https://pypi.org/project/robotframework-hub/)不t support robotframework version > 4.0. There isn
t所需的方法在htmlwriter.py