我正在尝试使用EasyDialogs python模块为OSX上的python脚本生成一些简单的对话框。每当尝试导入EasyDialogs模块时,都会出现以下错误:
>>> import EasyDialogs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/plat-mac/EasyDialogs.py", line 24, in <module>
from Carbon.Dlg import GetNewDialog, SetDialogItemText, GetDialogItemText, ModalDialog
File "/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/plat-mac/Carbon/Dlg.py", line 1, in <module>
from _Dlg import *
ImportError: No module named _Dlg
我试过了
easy_install Carbon
,正如我所想的,这可能是因为python的Carbon包有一些问题,但这并没有帮助。有什么想法吗?