On only two boxes I manage, I had problems updating net-snmp to net-snmp-220.127.116.11. During the compile I would receive the following failure message:
chmod 755 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
cp TrapReceiver.bs ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
chmod 644 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
make: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-18.104.22.168/work/net-snmp-22.214.171.124/perl/TrapReceiver'
make: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-126.96.36.199/work/net-snmp-188.8.131.52/perl'
Traceback (most recent call last):
File "setup.py", line 2, in <module>
from setuptools import setup, Extension, find_packages
ImportError: No module named setuptools
make: *** [pythonmodules] Error 1
The issue (as stated in the error message) was related to python's setuptools. The problem was the I did not run python-updater on those boxes after a recent python update. To fix the problem, simply execute the following: