Heya!
So it fails with unset API version and with correctly set API
version.
Regards
Christoph
/--
% python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.environ["PYSNMP_API_VERSION"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'PYSNMP_API_VERSION'
>>> from pysnmp.v4.entity.rfc3413.oneliner.cmdgen import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/lib/pymodules/python2.6/pysnmp/v4/entity/rfc3413/oneliner/cmdgen.py",
line 2, in <module>
from pysnmp.entity import engine, config
ImportError: No module named entity
\--
/--
% PYSNMP_API_VERSION=v4 python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.environ["PYSNMP_API_VERSION"]
v4
>>> from pysnmp.v4.entity.rfc3413.oneliner.cmdgen import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/lib/pymodules/python2.6/pysnmp/v4/entity/rfc3413/oneliner/cmdgen.py",
line 2, in <module>
from pysnmp.entity import engine, config
ImportError: No module named entity
\--
--
9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer
A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]