On only two boxes I manage, I had problems updating net-snmp to net-snmp-5.4.2.1. 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
Manifying ../blib/man3/NetSNMP::TrapReceiver.3pm
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1/work/net-snmp-5.4.2.1/perl/TrapReceiver'
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1/work/net-snmp-5.4.2.1/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
On only two boxes I manage, I had problems updating net-snmp to net-snmp-5.4.2.1. 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
Manifying ../blib/man3/NetSNMP::TrapReceiver.3pm
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1/work/net-snmp-5.4.2.1/perl/TrapReceiver'
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1/work/net-snmp-5.4.2.1/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:
python-updater -i