我只是尝试导入一些模块,但是遇到了这个问题?我不明白原因?谁能帮我吗?
这是发生错误的地方:
def assert_toolkit_import(names):
""" Raise an error if a toolkit with the given name should not be allowed
to be imported.
"""
if ETSConfig.toolkit and ETSConfig.toolkit not in names:
raise RuntimeError("Importing from %s backend after selecting %s "
"backend!" % (names[0], ETSConfig.toolkit))