Re: [Pysnmp-dev] Pavckacge problem in Ubuntu Karmic
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2010-01-20 17:00:36
|
Since pysnmp 4.1.12a there is no v4 directory in the package. I suspect an error somewhere in your pysnmp distribution. Please, report this issue to your pysnmp distribution supplier. Meanwhile, I suggest using pysnmp (and pyasn1) source distributions from SourceForge. In any case, the right way to import pysnmp modules, regardless of pysnmp version, is like: from pysnmp.entity.rfc3413.oneliner import cmdgen, ntforg -ilya > there seems to be a problem in the pysnmp package coming with karmic > koala. The ..../pymodules/pysnmp/ has to sub directorys v3 and v4. The > Problem ist that the import module path of the scripts doesnt include > this v4. So the import fails anytime. > > If i try to import pysnmp.v4.* then it fails with sub scripts > > >>> import pysnmp; print pysnmp.__file__ > /usr/lib/pymodules/python2.6/pysnmp/__init__.pyc > >>> quit() > > from pysnmp.entity.rfc3413.oneliner import cmdgen, ntforg > > leads to > > Traceback (most recent call last): > File "check_apc.py", line 6, in <module> > from pysnmp.entity.rfc3413.oneliner import cmdgen, ntforg > ImportError: No module named entity.rfc3413.oneliner |