hi all..

am working with python 2.4.1 n have pysnmp 4.1.14a installed..
the statement
from pysnmp.entity.rfc3413.oneliner import cmdgen
gives me the following error:

ImportError: No module named pysnmp.entity.rfc3413.oneliner

can anyone pls give me the reason? eagerly awaiting any response.

Thanx in advance

Maybe you are installing the libraries to different version of python, check:

D:\Python26>easy_install pycrypto
Searching for pycrypto
Best match: pycrypto 2.3
Processing pycrypto-2.3-py2.6-win32.egg
pycrypto 2.3 is already the active version in easy-install.pth

Using d:\python26\lib\site-packages\pycrypto-2.3-py2.6-win32.egg
Processing dependencies for pycrypto
Finished processing dependencies for pycrypto

D:\Python26>easy_install pyasn1
Searching for pyasn1
Best match: pyasn1 0.0.11a0
Processing pyasn1-0.0.11a0-py2.6.egg
pyasn1 0.0.11a0 is already the active version in easy-install.pth

Using d:\python26\lib\site-packages\pyasn1-0.0.11a0-py2.6.egg
Processing dependencies for pyasn1
Finished processing dependencies for pyasn1

D:\Python26>easy_install pysnmp
Searching for pysnmp
Best match: pysnmp 4.1.14a
Processing pysnmp-4.1.14a-py2.6.egg
pysnmp 4.1.14a is already the active version in easy-install.pth
Installing build-pysnmp-mib script to D:\Python26\Scripts
Installing libsmi2pysnmp script to D:\Python26\Scripts

Using d:\python26\lib\site-packages\pysnmp-4.1.14a-py2.6.egg
Processing dependencies for pysnmp
Finished processing dependencies for pysnmp

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysnmp.entity.rfc3413.oneliner import cmdgen
This article has been dead for over six months. Start a new discussion instead.