尝试运行一个使用 python 后端的外部程序并在安装了 canopy 包之后(也尝试了“手动”pyface 构建之后),我不断收到一个奇怪且看似非常基本的错误。任何建议都将受到欢迎!
Traceback (most recent call last):
File "/usr/local/bin/melview", line 9, in <module>
load_entry_point('melview==1.0', 'console_scripts', 'melview')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "build/bdist.linux-x86_64/egg/melview/melodic_traits.py", line 42, in <module>
File "/usr/local/lib/python2.7/dist-packages/pyface-4.4.0-py2.7.egg/pyface/api.py", line 19, in <module>
from clipboard import clipboard, Clipboard
File "/usr/local/lib/python2.7/dist-packages/pyface-4.4.0-py2.7.egg/pyface/clipboard.py", line 23, in <module>
clipboard = Clipboard()
File "/usr/local/lib/python2.7/dist-packages/pyface-4.4.0-py2.7.egg/pyface/toolkit.py", line 92, in __init__
raise NotImplementedError("the %s pyface backend doesn't implement %s" % (ETSConfig.toolkit, oname))
NotImplementedError: the qt4 pyface backend doesn't implement Clipboard