【发布时间】:2011-11-19 21:18:14
【问题描述】:
我已经在我的 Mac 上安装了 PyObjC,但我根本无法让它工作。即使尝试导入 AddressBook 类也会立即失败。
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import AddressBook
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "AddressBook.py", line 17, in <module>
('Last Name', AddressBook.kABLastNameProperty),
AttributeError: 'module' object has no attribute 'kABLastNameProperty'
有人对如何解决这个问题有任何想法吗?谢谢。
【问题讨论】: