Ubuntu 12.04 install NetSNMP Python Bindings

5,943

sudo apt-get install python-setuptools. (And while you're at it, why not install python-pynetsnmp?)

Share:
5,943

Related videos on Youtube

waynner
Author by

waynner

Updated on September 18, 2022

Comments

  • waynner
    waynner over 1 year

    I want to install NetSNMP Python Bindings in Ubuntu 12.04 LTS system.

    But I got some in install progress.

    First, I got the net-snmp-5.7.1 source tar, and did the following things:

    ./configure --with-python-modules

    apt-get install libperl-dev

    But when I used the command ''make'' to compile the Net-SNMP source.

    Facing the error like below:

    Traceback (most recent call last): 
    File "setup.py", line 2, in <module> 
    from setuptools import setup, Extension, find_packages 
    ImportError: No module named setuptools
    

    I search some solutions, and someone use 'python-updater –i' to solve this problem.

    But in my system, I don't have this command.

    And the python version I use is 2.7.3

    Can someone help me solve this problem?

    Thanks.

  • waynner
    waynner about 11 years
    Thanks for your replying.But I already install both python-setuptools and pynetsnmp, and I can't import netsnmp in python script.On the other hand, I also can't do 'python-updater –i.
  • waynner
    waynner about 11 years
    Just like below. >>> import netsnmp Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named netsnmp