ERROR:dbus.proxies:Introspect error on :1.2:/org/freedesktop/NetworkManager/Devices/0: dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0
Traceback (most recent call last):
File "./njit-RefreshIP", line 13, in <module>
szNetworkInterface = dbus.Interface(oDevice, 'org.freedesktop.Hal.Device').GetPropertyString('net.interface')
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0
ERROR:dbus.proxies:Introspect error on :1.2:/org/freedesktop/NetworkManager/Devices/0: dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0
Traceback (most recent call last):
File "./njit-RefreshIP", line 13, in <module>
szNetworkInterface = dbus.Interface(oDevice, 'org.freedesktop.Hal.Device').GetPropertyString('net.interface')
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0
解决办法是手动点击网络连接图标刷新你的IP地址。
11月19日的njit-RefreshIP脚本在某些机子上运行是会输出"Unable to find any NetworkManager configurations!“,但我在自己的Ubuntu 9.10笔记本上就没有这个错误。有谁能协助我们调试一下njit-RefreshIP这个Python脚本吗?
ERROR:dbus.proxies:Introspect error on :1.2:/org/freedesktop/NetworkManager/Devices/0: dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0
Traceback (most recent call last):
File "./njit-RefreshIP", line 13, in <module>
szNetworkInterface = dbus.Interface(oDevice, 'org.freedesktop.Hal.Device').GetPropertyString('net.interface')
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0
ERROR:dbus.proxies:Introspect error on :1.2:/org/freedesktop/NetworkManager/Devices/0: dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0
Traceback (most recent call last):
File "./njit-RefreshIP", line 13, in <module>
szNetworkInterface = dbus.Interface(oDevice, 'org.freedesktop.Hal.Device').GetPropertyString('net.interface')
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/NetworkManager/Devices/0