我尝试为 Skype4Py 运行一个简单的 python 代码,这是我的代码
import Skype4Py
import logging
logging.basicConfig(level=logging.DEBUG)
print 'OK'
# Create Skype instance
print 'CREATE'
skype = Skype4Py.Skype()
print 'CREATED'
# Connect Skype object to Skype client
print 'CONNECT'
skype.Attach()
print 'CONNECTED'
print 'Your full name:', skype.CurrentUser.FullName
print 'Your contacts:'
for user in skype.Friends:
print 'LOOP'
print ' ', user.FullName
print 'DONE'
我的输出是这个
OK
CREATE
INFO:Skype4Py.skype.Skype:object created
INFO:Skype4Py.api.posix_dbus.SkypeAPI:opened
CREATED
CONNECT
INFO:Skype4Py.api.posix_dbus.SkypeAPI:thread started
Segmentation fault
Segmentation in skype.Attach().
任何人都知道如何解决这个问题?谢谢