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

I install pysnmp 4.1.14a and I get the same error.
From the README file, I realize you also need to install the pyASN1 package below:
http://pypi.python.org/pypi/pyasn1/0.0.11a
I am able to import successfully after that.

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

D:\Python26>python
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysnmp.entity.rfc3413.oneliner import cmdgen
>>>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.