我试图在ironpython中使用skype4py并获得以下异常
An exception of type 'IronPython.Runtime.Exceptions.ImportException' occurred in Snippets.debug.scripting but was not handled in user code
Additional information: No module named dbus这个库在简单的python应用程序中运行良好,但是当我尝试将它添加到铁python中时,它给了我上面的例外,.Following是我的代码。
import wpf
import Skype4Py
from System.Windows import Application, Window
class MyWindow(Window):
def __init__(self):
wpf.LoadComponent(self, 'WpfApplication4.xaml')
# Create an instance of the Skype class.
skype = Skype4Py.Skype()
if __name__ == '__main__':
Application().Run(MyWindow())发布于 2014-12-11 14:57:29
Skype4Py似乎依赖于dbus,而IronPython现在无法使用它。
我们正在努力实现使用DBusSharp实现标准的dbus python模块
IronPython API用托管D总线实现当前的
但没有迹象表明是否或何时会发生这种情况。
您可以从IronPython + WPF应用程序转移到CPython +其他一些UI技术,或者查看一下在这个上下文中使用了什么dbus,看看您是否可以绕过它(可能不会因为dbus似乎是主要的API)。
https://stackoverflow.com/questions/27423488
复制相似问题