Hi,
I installed NAV 3.8.2 and the error persist. I think I can find the culprit.
Service ipdevpoll won't start with the error below (the other service
start well) :
nav start ipdevpoll
2011-03-15 03:04:28,762 [ERROR plugins] Failed to import plugin
nav.ipdevpoll.plugins.arp.Arp
Traceback (most recent call last):
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/__init__.py",
line 57, in import_plugin
[module_name])
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/arp.py", line
44, in <module>
from nav.mibs.ip_mib import IpMib
File "/usr/local/nav/lib/python/nav/mibs/__init__.py", line 19, in
<module>
import mibretriever
File "/usr/local/nav/lib/python/nav/mibs/mibretriever.py", line 35,
in <module>
from pysnmp.asn1.oid import OID
ImportError: No module named oid
Traceback (most recent call last):
File "/usr/local/nav/bin/ipdevpolld", line 21, in <module>
main()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 187,
in main
processor.run()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 125,
in run
self.start_ipdevpoll()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 182,
in start_ipdevpoll
process.run()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 54, in run
plugins.import_plugins()
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/__init__.py",
line 40, in import_plugins
import_plugin(ipdevpoll_conf, alias)
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/__init__.py",
line 61, in import_plugin
raise PluginImportError(error)
nav.ipdevpoll.plugins.PluginImportError: Failed to import plugin: No
module named oid
Did I miss something here ?
If I remove the offending package ( I guess ) :
aptitude remove python-pysnmp2
It generate another error :
2011-03-15 04:15:44,443 [ERROR plugins] Failed to import plugin
nav.ipdevpoll.plugins.arp.Arp
Traceback (most recent call last):
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/__init__.py",
line 57, in import_plugin
[module_name])
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/arp.py", line
44, in <module>
from nav.mibs.ip_mib import IpMib
File "/usr/local/nav/lib/python/nav/mibs/__init__.py", line 19, in
<module>
import mibretriever
File "/usr/local/nav/lib/python/nav/mibs/mibretriever.py", line 35,
in <module>
from pysnmp.asn1.oid import OID
ImportError: No module named asn1.oid
Traceback (most recent call last):
File "/usr/local/nav/bin/ipdevpolld", line 21, in <module>
main()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 187,
in main
processor.run()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 125,
in run
self.start_ipdevpoll()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 182,
in start_ipdevpoll
process.run()
File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 54, in run
plugins.import_plugins()
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/__init__.py",
line 40, in import_plugins
import_plugin(ipdevpoll_conf, alias)
File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/__init__.py",
line 61, in import_plugin
raise PluginImportError(error)
nav.ipdevpoll.plugins.PluginImportError: Failed to import plugin: No
module named asn1.oid
Is that any relation to python-pyasn1 package ?
dpkg -l | grep asn
ii libtasn1-3
2.2-1 Manage ASN.1 structures (runtime)
ii libtasn1-3-dev
2.2-1 Manage ASN.1 structures (development)
ii python-pyasn1
0.0.8a-1 ASN.1 library for Python
The rest of python-pysnmp left :
dpkg -l | grep pysnmp
ii python-pysnmp-common
4.1.9a-1 Python SNMP library for agents and
managers
ii python-pysnmp-se
3.5.2-4 speed enhanced Python SNMP library for
agent
Thanks.
Regards
Royke
On 03/10/2011 04:16 PM, Morten Brekkevold wrote:
> On Thu, 10 Mar 2011 15:35:19 +0700 Royke<royke4k-Hlp6NBfSoRe8rHFcjEY/***@public.gmane.org> wrote:
>
>> Hi Morten,
>>
>> Still no luck .. same error message.
>>
>> This is left installed for package with snmp python related :
>>
>> ii python-pysnmp-se 3.5.2-4
>> speed enhanced Python SNMP library for agent
>> ii python-pysnmp2 2.0.9-2
>> Python SNMP library for agents and managers
> I don't usually work with NAV on Ubuntu, so I might remember this issue
> incorrectly. It could have been the python-pysnmp2 package that was to
> blame.
>
> Also, the damage caused by the offending package (since it overlaps with
> the other packages' files) might not be reparable without a reinstall.
>
> I'd try "aptitude remove python-pysnmp2", then "aptitude -R reinstall
> python-pysnmp-se". The `-R` option tells aptitude to not treat
> recommendations as dependencies.
>
> Also, don't forget to restart Apache after this, so all the modules are
> properly reloaded.
>