python - Windows 中的 PyBonjour 错误 - 无法加载库 libdns_sd.so.1

标签 python windows ironpython bonjour

在 IronPython 2.6 下运行 PyBonjour 时,出现错误:

OSError: IronPython.Runtime.Exception.OSException: cannot load library libdns_sd.so.1

这源于一行:

ctypes.cdll.LoadLibrary(_libdnssd)

其中 _libdnssd 是“libdns_sd.so.1” 我在系统上安装了 Apple 分发的所有 Bonjour 工具。

有人知道如何解决这个问题吗?

最佳答案

我的猜测是 PyBonjour 有一个类似于 sys.platform == 'win32' 的检查来确定加载哪个 DLL。可能应该将其更改为 os.name == 'nt' 才能正常工作。

不过,我还没有查看 PyBonjour 来判断我是否正确(如果有不安装 bzr 的方法,我可以看看)。

关于python - Windows 中的 PyBonjour 错误 - 无法加载库 libdns_sd.so.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10134183/

相关文章:

python - 使用 rootpy 和 matplotlib 绘制二维直方图

Windows SSH 要求输入密码

c++ - 是什么导致 WriteFile 返回 ERROR_ACCESS_DENIED?

c# - Iron Python 中自定义类型的智能感知

c# - 从字符串创建 IronPython(动态)对象

python - 在 Python 中,如何在不将实例传递给它的情况下使用类方法?

python - 在Python中,如何 "point"到类中的外部对象?

python - CPython、IronPython、Jython 脚本彼此兼容吗?

python - 蝗虫 : How to make locust run for a specific amount of time

windows - Git SSH 无法连接到自定义端口