You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have the Net-SNMP package installed for your system? You can find per-OS instructions at the EasySNMP documentation at ReadTheDocs. http://easysnmp.readthedocs.io/en/latest/
Hi Guys,
can you advise on the following issue?
$ pip install easysnmp
Collecting easysnmp
Using cached easysnmp-0.2.5.tar.gz
Building wheels for collected packages: easysnmp
Running setup.py bdist_wheel for easysnmp ... error
Complete output from command /home/gmckee/anaconda2/envs/ansible-dev/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-cxSoNe/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp3bwjNJpip-wheel- --python-tag cp27:
sh: net-snmp-config: command not found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/init.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/compat.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/easy.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/exceptions.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/helpers.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/session.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/utils.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/variables.py -> build/lib.linux-x86_64-2.7/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/easysnmp
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gmckee/anaconda2/envs/ansible-dev/include/python2.7 -c easysnmp/interface.c -o build/temp.linux-x86_64-2.7/easysnmp/interface.o -Wno-unused-function
easysnmp/interface.c:24:38: fatal error: net-snmp/net-snmp-config.h: No such file or directory
#include <net-snmp/net-snmp-config.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
Failed building wheel for easysnmp
Running setup.py clean for easysnmp
Failed to build easysnmp
Installing collected packages: easysnmp
Running setup.py install for easysnmp ... error
Complete output from command /home/gmckee/anaconda2/envs/ansible-dev/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-cxSoNe/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-6KJFlq-record/install-record.txt --single-version-externally-managed --compile:
sh: net-snmp-config: command not found
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/init.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/compat.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/easy.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/exceptions.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/helpers.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/session.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/utils.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/variables.py -> build/lib.linux-x86_64-2.7/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/easysnmp
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gmckee/anaconda2/envs/ansible-dev/include/python2.7 -c easysnmp/interface.c -o build/temp.linux-x86_64-2.7/easysnmp/interface.o -Wno-unused-function
easysnmp/interface.c:24:38: fatal error: net-snmp/net-snmp-config.h: No such file or directory
#include <net-snmp/net-snmp-config.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
Command "/home/gmckee/anaconda2/envs/ansible-dev/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-cxSoNe/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-6KJFlq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-cxSoNe/easysnmp/
The text was updated successfully, but these errors were encountered: