Advertisement
chattin

easysnmp Install Error

Sep 28th, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. (activator_env) [root@testhost bin]# pip3.6 install easysnmp
  2. Collecting easysnmp
  3. Using cached easysnmp-0.2.6.tar.gz (43 kB)
  4. Preparing metadata (setup.py) ... done
  5. Using legacy 'setup.py install' for easysnmp, since package 'wheel' is not installed.
  6. Installing collected packages: easysnmp
  7. Running setup.py install for easysnmp ... error
  8. ERROR: Command errored out with exit status 1:
  9. command: /environments/activator_env/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6gxyercm/easysnmp_162443664db54568985ad47046457e9c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6gxyercm/easysnmp_162443664db54568985ad47046457e9c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-jzdm17tp/install-record.txt --single-version-externally-managed --compile --install-headers /environments/activator_env/include/site/python3.6/easysnmp
  10. cwd: /tmp/pip-install-6gxyercm/easysnmp_162443664db54568985ad47046457e9c/
  11. Complete output (69 lines):
  12. running install
  13. running build
  14. running build_py
  15. creating build
  16. creating build/lib.linux-x86_64-3.6
  17. creating build/lib.linux-x86_64-3.6/easysnmp
  18. copying easysnmp/__init__.py -> build/lib.linux-x86_64-3.6/easysnmp
  19. copying easysnmp/compat.py -> build/lib.linux-x86_64-3.6/easysnmp
  20. copying easysnmp/easy.py -> build/lib.linux-x86_64-3.6/easysnmp
  21. copying easysnmp/exceptions.py -> build/lib.linux-x86_64-3.6/easysnmp
  22. copying easysnmp/helpers.py -> build/lib.linux-x86_64-3.6/easysnmp
  23. copying easysnmp/session.py -> build/lib.linux-x86_64-3.6/easysnmp
  24. copying easysnmp/utils.py -> build/lib.linux-x86_64-3.6/easysnmp
  25. copying easysnmp/variables.py -> build/lib.linux-x86_64-3.6/easysnmp
  26. running build_ext
  27. building 'easysnmp.interface' extension
  28. creating build/temp.linux-x86_64-3.6
  29. creating build/temp.linux-x86_64-3.6/easysnmp
  30. gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/environments/activator_env/include -I/usr/include/python3.6m -c easysnmp/interface.c -o build/temp.linux-x86_64-3.6/easysnmp/interface.o
  31. easysnmp/interface.c: In function ‘__match_algo’:
  32. easysnmp/interface.c:130:23: error: ‘usmHMAC128SHA224AuthProtocol’ undeclared (first use in this function)
  33. *output = usmHMAC128SHA224AuthProtocol;
  34. ^
  35. easysnmp/interface.c:130:23: note: each undeclared identifier is reported only once for each function it appears in
  36. easysnmp/interface.c:137:23: error: ‘usmHMAC192SHA256AuthProtocol’ undeclared (first use in this function)
  37. *output = usmHMAC192SHA256AuthProtocol;
  38. ^
  39. easysnmp/interface.c:146:23: error: ‘usmHMAC256SHA384AuthProtocol’ undeclared (first use in this function)
  40. *output = usmHMAC256SHA384AuthProtocol;
  41. ^
  42. easysnmp/interface.c:153:23: error: ‘usmHMAC384SHA512AuthProtocol’ undeclared (first use in this function)
  43. *output = usmHMAC384SHA512AuthProtocol;
  44. ^
  45. easysnmp/interface.c: In function ‘__snprint_value’:
  46. easysnmp/interface.c:507:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  47. if (len > buf_len)
  48. ^
  49. easysnmp/interface.c: In function ‘__send_sync_pdu’:
  50. easysnmp/interface.c:1267:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  51. else if (last_errindex > (*response)->errindex)
  52. ^
  53. easysnmp/interface.c: In function ‘netsnmp_getnext’:
  54. easysnmp/interface.c:2441:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  55. if (snmp_version == 1 && DEFAULT_NUM_BAD_OIDS < varlist_len)
  56. ^
  57. easysnmp/interface.c: In function ‘netsnmp_walk’:
  58. easysnmp/interface.c:2928:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  59. if ((vars->name_length < oid_arr_len[varlist_ind]) ||
  60. ^
  61. easysnmp/interface.c: In function ‘netsnmp_bulkwalk’:
  62. easysnmp/interface.c:3684:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  63. if ((vars->name_length < oid_arr_len[varlist_ind]) ||
  64. ^
  65. easysnmp/interface.c: In function ‘netsnmp_set’:
  66. easysnmp/interface.c:4009:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  67. if (tmplen >= sizeof(tmp_val_str))
  68. ^
  69. In file included from easysnmp/interface.c:50:0:
  70. easysnmp/interface.c: At top level:
  71. easysnmp/simple_bitarray.h:217:20: warning: ‘bitarray_print_base16’ defined but not used [-Wunused-function]
  72. static inline void bitarray_print_base16(bitarray *ba)
  73. ^
  74. easysnmp/simple_bitarray.h:247:13: warning: ‘wno_unused_function_simple_bitarray_h’ defined but not used [-Wunused-function]
  75. static void wno_unused_function_simple_bitarray_h(void)
  76. ^
  77. easysnmp/interface.c:1470:14: warning: ‘py_netsnmp_attr_void_ptr’ defined but not used [-Wunused-function]
  78. static void *py_netsnmp_attr_void_ptr(PyObject *obj, char *attr_name)
  79. ^
  80. error: command 'gcc' failed with exit status 1
  81. ----------------------------------------
  82. ERROR: Command errored out with exit status 1: /environments/activator_env/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6gxyercm/easysnmp_162443664db54568985ad47046457e9c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6gxyercm/easysnmp_162443664db54568985ad47046457e9c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-jzdm17tp/install-record.txt --single-version-externally-managed --compile --install-headers /environments/activator_env/include/site/python3.6/easysnmp Check the logs for full command output.
  83. (activator_env) [root@testhost bin]#
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement