Hey List,
I upgraded to 3.6.0 and now to 3.6.3 but still no luck - the seed-db page is not working :(
I always end up with this error:
MOD_PYTHON ERROR
ProcessId: 13793 Interpreter: '<server-name>'
ServerName: '<server-name>' DocumentRoot: '/usr/local/nav/apache/webroot'
URI: '/seeddb/' Location: None Directory: '/usr/local/nav/apache/webroot/seeddb/' Filename: '/usr/local/nav/apache/webroot/seeddb/' PathInfo: ''
Phase: 'PythonHandler' Handler: 'seeddb'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1202, in _process_target module = import_module(module_name, path=path)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 296, in import_module log, import_path)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 680, in import_module execfile(file, module.__dict__)
File "/usr/local/nav/apache/webroot/seeddb/seeddb.py", line 25, in <module> import nav.Snmp
File "/usr/local/nav/lib/python/nav/Snmp/__init__.py", line 27, in <module> import pysnmp
File "/var/lib/python-support/python2.6/pysnmp/__init__.py", line 23, in <module> switchApiVersion(v) # do not load any API
File "/var/lib/python-support/python2.6/pysnmp/__init__.py", line 8, in switchApiVersion newMod = __import__(subPkg, globals(), locals())
ImportError: No module named v3
MODULE CACHE DETAILS
Accessed: Fri Nov 5 16:49:26 2010 Generation: 0
_mp_862e26f832bb2b4505445d3c09f3d1be { FileName: '/usr/local/nav/apache/webroot/seeddb/seeddb.py' Instance: 1 [IMPORT] Generation: 0 [ERROR] Modified: Fri Nov 5 16:32:33 2010 }
====
Any hints? I executed all the database update scripts, restarted apache etc.
On Fri, Nov 05, 2010 at 05:15:06PM +0100, Rudolph Bott wrote:
I upgraded to 3.6.0 and now to 3.6.3 but still no luck - the seed-db page is not working :(
I always end up with this error:
MOD_PYTHON ERROR
[snip]
File "/var/lib/python-support/python2.6/pysnmp/__init__.py", line 8, in switchApiVersion newMod = __import__(subPkg, globals(), locals())
ImportError: No module named v3
What linux distro are you using? Did you install via Werner's deb-package or from source?
To me, it looks like you haven't installed pysnmp-se. There's also a known problem with multiple pysnmp versions in Ubuntu, if that's what you're using.
Hey Morten,
sorry - I forgot to add the relevant information:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.04 DISTRIB_CODENAME=jaunty DISTRIB_DESCRIPTION="Ubuntu 9.04"
The following pysnmp packets are installed:
ii python-pysnmp-common 4.1.9a-1 ii python-pysnmp2 2.0.9-1 ii python-pysnmp4 4.1.9a-1 ii python-pysnmp4-apps 0.2.6a-1 ii python-pysnmp4-mibs 0.0.5a-3
I installed from source (at some point I installed from source because the deb's weren't available yet and kept upgrading the source version since then).
Any hints? :)
Am 08.11.2010 09:51, schrieb Morten Brekkevold:
On Fri, Nov 05, 2010 at 05:15:06PM +0100, Rudolph Bott wrote:
I upgraded to 3.6.0 and now to 3.6.3 but still no luck - the seed-db page is not working :(
I always end up with this error:
MOD_PYTHON ERROR
[snip]
File "/var/lib/python-support/python2.6/pysnmp/__init__.py", line 8, in switchApiVersion newMod = __import__(subPkg, globals(), locals())
ImportError: No module named v3
What linux distro are you using? Did you install via Werner's deb-package or from source?
To me, it looks like you haven't installed pysnmp-se. There's also a known problem with multiple pysnmp versions in Ubuntu, if that's what you're using.
On Mon, Nov 08, 2010 at 09:55:45AM +0100, Rudolph Bott wrote:
The following pysnmp packets are installed:
ii python-pysnmp-common 4.1.9a-1 ii python-pysnmp2 2.0.9-1 ii python-pysnmp4 4.1.9a-1 ii python-pysnmp4-apps 0.2.6a-1 ii python-pysnmp4-mibs 0.0.5a-3
I installed from source (at some point I installed from source because the deb's weren't available yet and kept upgrading the source version since then).
Any hints? :)
Yes. Install python-pysnmp-se, then uninstall python-pysnmp2 and python-pysnmp4.
NAV 3.6 uses pysnmp-se, but Ubuntu has a bug where pysnmp2 will always be loaded if it is installed - which is why I recommend uninstalling the other versions.