python - 无法在 Mac OSX 中通过 Python 将 Skype4Py 连接到 Skype

标签 python macos segmentation-fault skype4py

我使用的是 Mac OSX (10.8.2),并尝试使用 Skype4py 通过 Python 连接到我当前正在运行的 Skype 实例。

我的困难在于,我已按照网站 ( http://pypi.python.org/pypi/Skype4Py/1.0.34#segfaults ) 上的说明进行操作,并使用 arch -i386 pip install Skype4Py 命令正确安装了 Skype4Py。正如说明所述,我已将代码编辑器的运行代码设置为使用 arch -i386 python 命令来运行,而不是典型的 python (以及尝试使用直接从终端运行文件)。

我的代码目前非常简单(我计划在连接正常后进一步工作),如下所示:

import Skype4Py
skype = Skype4Py.Skype()
skype.Attach()

这给了我一个 python 必须关闭的错误窗口以及以下错误: Run Command: line 1: 66888 Segmentation failure: 11 arch -i386 python "$1""${@:3}"

在这些论坛上进行一些搜索后,我发现了一些线程同意以下代码修订作为答案:

import Skype4Py
skype = Skype4Py.Skype(Transport='x11')
skype.Attach()

不幸的是,这个修复只是改变了我的错误的性质。新的错误消息更加复杂:

Traceback (most recent call last):
  File "skypeAttach.py", line 4, in <module>
    skype = Skype4Py.Skype(Transport='x11')
  File "build/bdist.macosx-10.8-intel/egg/Skype4Py/skype.py", line 250, in __init__
  File "build/bdist.macosx-10.8-intel/egg/Skype4Py/api/darwin.py", line 296, in __init__
  File "build/bdist.macosx-10.8-intel/egg/Skype4Py/api/__init__.py", line 214, in finalize_opts
TypeError: Unexpected option(s): Transport

在我有限的编程知识下,这似乎试图告诉我“Transport”是一个意想不到的参数。

最佳答案

从 Skype4Py PyPI 页面:

It works on Windows, OSX and Linux platforms with Python 2.x versions.

它与Python 3.3不兼容。尝试使用 Python 2.7 安装它。

关于python - 无法在 Mac OSX 中通过 Python 将 Skype4Py 连接到 Skype,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14707686/

相关文章:

html - SVG 在 Mac Safari 中不起作用?

android - Xamarin Android 上异步任务中的 SIGSEGV

c - 向 HashTable 插入时出错

带有任何参数的 C++ 函数会导致段错误

python - Django channel : Alternative of Redis for windows machine?

python - 在 Python 中使用反斜杠续行是否危险?

python - 试图匹配python中字符串中两个系列字符中的第一个

python - celery :删除超过 5 分钟的空队列?

objective-c - cocoa 脚本: Intercept any Object-first message calls

c - 在 C 中,如何从 MacOSX 应用程序包写入文件