>>> from pysnmp.entity.rfc3413.oneliner import cmdgen
/usr/lib/pymodules/python2.6/pysnmp/v4/proto/secmod/rfc3414/auth/hmacmd5.py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import string, md5
/usr/lib/pymodules/python2.6/pysnmp/v4/proto/secmod/rfc3414/auth/hmacsha.py:1: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import string, sha
>>>
and for the rebuild issue (without the 2nd fix):
Preparing to replace python-pysnmp-common 4.1.9a-1 (using .../python-pysnmp-common_4.1.9a-1+rebuild_all.deb) ...
Unpacking replacement python-pysnmp-common ...
Preparing to replace python-pysnmp4 4.1.9a-1 (using .../python-pysnmp4_4.1.9a-1+rebuild_all.deb) ...
Unpacking replacement python-pysnmp4 ...
dpkg: error processing /var/cache/apt/archives/python-pysnmp4_4.1.9a-1+rebuild_all.deb (--unpack):
trying to overwrite '/usr/share/pyshared/pysnmp/__init__.py', which is also in package python-pysnmp-common 0:4.1.9a-1+rebuild
dpkg-deb: subprocess paste killed by signal (Broken pipe)
before:
>>> from pysnmp. entity. rfc3413. oneliner import cmdgen pymodules/ python2. 6/pysnmp/ v4/proto/ secmod/ rfc3414/ auth/hmacmd5. py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead pymodules/ python2. 6/pysnmp/ v4/proto/ secmod/ rfc3414/ auth/hmacsha. py:1: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
/usr/lib/
import string, md5
/usr/lib/
import string, sha
>>>
and for the rebuild issue (without the 2nd fix):
Preparing to replace python- pysnmp- common 4.1.9a-1 (using .../python- pysnmp- common_ 4.1.9a- 1+rebuild_ all.deb) ... pysnmp- common ... pysnmp4_ 4.1.9a- 1+rebuild_ all.deb) ... apt/archives/ python- pysnmp4_ 4.1.9a- 1+rebuild_ all.deb (--unpack): pyshared/ pysnmp/ __init_ _.py', which is also in package python- pysnmp- common 0:4.1.9a-1+rebuild
Unpacking replacement python-
Preparing to replace python-pysnmp4 4.1.9a-1 (using .../python-
Unpacking replacement python-pysnmp4 ...
dpkg: error processing /var/cache/
trying to overwrite '/usr/share/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
$ dpkg -c /var/cache/ apt/archives/ python- pysnmp4_ 4.1.9a- 1+rebuild_ all.deb | grep pysnmp/__init__.py pyshared/ pysnmp/ __init_ _.py apt/archives/ python- pysnmp- common_ 4.1.9a- 1+rebuild_ all.deb | grep pysnmp/__init__.py pyshared/ pysnmp/ __init_ _.py
-rw-r--r-- root/root 844 2006-12-13 21:23 ./usr/share/
$ dpkg -c /var/cache/
-rw-r--r-- root/root 844 2006-12-13 21:23 ./usr/share/
after, both issues are fixed