On 03/10/2011 02:43 PM, Morten Brekkevold wrote:
On Thu, 10 Mar 2011 04:04:37 +0100 (CET) rk4kroyke4k@cbn.net.id wrote:
I can see the frontpage Welcome Page. But when I click on login link , it generated error like this :
Exception Type: ImportError Exception Value:
No module named oid
Exception Location: /usr/local/nav/lib/python/nav/Snmp/pysnmp_se.py in <module>, line 22 Python Executable: /usr/bin/python
[snip]
Maybe I missed something here about OID, but can't figure it out where ... Any help/hint is much appreciated.
Try "aptitude remove python-pysnmp4".
Ubuntu has a bug in its pysnmp packages. You've likely installed the package python-pysnmp-se, which depends on python-pysnmp-common, which recommends python-pysnmp4, so all of these get installed.
The python-pysnmp4 Ubuntu package conflicts with the other pysnmp packages, causing it to overwrite parts of python-pysnmp-se, rendering it unavailable for use.
Let me know how it goes :-)
Hi Morten,
Still no luck .. same error message.
This is left installed for package with snmp python related :
dpkg -l | grep snmp ii libsnmp-base 5.4.1~dfsg-12ubuntu7 SNMP (Simple Network Management Protocol) MI ii libsnmp-perl 5.4.1~dfsg-12ubuntu7 SNMP (Simple Network Management Protocol) Pe ii libsnmp-python 5.4.1~dfsg-12ubuntu7 SNMP (Simple Network Management Protocol) Py ii libsnmp-session-perl 1.12-1 Perl support for accessing SNMP-aware device ii libsnmp1.4-java 1.4.2-2 Open Source implementation of the SNMP proto ii libsnmp15 5.4.1~dfsg-12ubuntu7 SNMP (Simple Network Management Protocol) li ii php5-snmp 5.2.10.dfsg.1-2ubuntu6.5 SNMP module for php5 ii python-pynetsnmp 0.28.13-1 Python ctypes bindings for NET-SNMP with Twi 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 ii python-pysnmp2 2.0.9-2 Python SNMP library for agents and managers ii python-twisted-snmp 0.3.13-3 SNMP implementation for the Twisted networki ii snmp 5.4.1~dfsg-12ubuntu7 SNMP (Simple Network Management Protocol) ap ii snmpd 5.4.1~dfsg-12ubuntu7 SNMP (Simple Network Management Protocol) ag ii snmptrapfmt 1.14ubuntu1 A configurable snmp trap handler daemon for ii snmptt 1.2-3 SNMP trap handler for use with snmptrapd
I can navigate back to the Welcome Page and the admin status link showed "Admin Logout" but the Preference menu gave me same error message. Any hint ?
Thks for the reply.
Regards