Giter VIP home page Giter VIP logo

Comments (3)

aletelecom avatar aletelecom commented on June 11, 2024 1

I also have this very same problem in CentOS 7. I tried using venv with Python3.8 and 3.9 to no avail.

from easysnmp.

carlkidcrypto avatar carlkidcrypto commented on June 11, 2024

@aletelecom and @Gopalvenu Do you have gcc installed? I ask because part of the error says error: command '/bin/gcc' failed with exit code 1 which makes me think you don't have gcc installed? If you do have it installed what version do you have ?

from easysnmp.

denisbondar avatar denisbondar commented on June 11, 2024

I have a similar problem on CentOS 7.9

Using cached urllib3-2.1.0-py3-none-any.whl (104 kB)
Building wheels for collected packages: easysnmp
  Building wheel for easysnmp (setup.py): started
  Building wheel for easysnmp (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/__init__.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/compat.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/easy.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/exceptions.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/helpers.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/session.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/utils.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      copying easysnmp/variables.py -> build/lib.linux-x86_64-cpython-39/easysnmp
      running build_ext
      building 'easysnmp.interface' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/easysnmp
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/var/www/userside/microservice/poller/venv/include -I/usr/local/include/python3.9 -c easysnmp/interface.c -o build/temp.linux-x86_64-cpython-39/easysnmp/interface.o
      In file included from easysnmp/interface.c:51:0:
      easysnmp/interface.h:50:8: error: redefinition of ‘struct session_list’
       struct session_list
              ^
      In file included from /usr/include/net-snmp/types.h:421:0,
                       from /usr/include/net-snmp/definitions.h:22,
                       from /usr/include/net-snmp/net-snmp-includes.h:67,
                       from easysnmp/interface.c:27:
      /usr/include/net-snmp/library/snmp_api.h:703:12: note: originally defined here
           struct session_list {
                  ^
      easysnmp/interface.c: In function ‘__match_algo’:
      easysnmp/interface.c:130:23: error: ‘usmHMAC128SHA224AuthProtocol’ undeclared (first use in this function)
                   *output = usmHMAC128SHA224AuthProtocol;
                             ^
      easysnmp/interface.c:130:23: note: each undeclared identifier is reported only once for each function it appears in
      easysnmp/interface.c:137:23: error: ‘usmHMAC192SHA256AuthProtocol’ undeclared (first use in this function)
                   *output = usmHMAC192SHA256AuthProtocol;
                             ^
      easysnmp/interface.c:146:23: error: ‘usmHMAC256SHA384AuthProtocol’ undeclared (first use in this function)
                   *output = usmHMAC256SHA384AuthProtocol;
                             ^
      easysnmp/interface.c:153:23: error: ‘usmHMAC384SHA512AuthProtocol’ undeclared (first use in this function)
                   *output = usmHMAC384SHA512AuthProtocol;
                             ^
      In file included from easysnmp/interface.c:50:0:
      easysnmp/interface.c: At top level:
      easysnmp/simple_bitarray.h:57:22: warning: ‘bitarray_num_bits’ defined but not used [-Wunused-function]
       static inline size_t bitarray_num_bits(bitarray *ba)
                            ^
      easysnmp/simple_bitarray.h:72:20: warning: ‘bitarray_change_bit’ defined but not used [-Wunused-function]
       static inline void bitarray_change_bit(bitarray *ba, size_t n)
                          ^
      easysnmp/simple_bitarray.h:129:25: warning: ‘bitarray_alloc’ defined but not used [-Wunused-function]
       static inline bitarray *bitarray_alloc(size_t nbits)
                               ^
      easysnmp/simple_bitarray.h:216:20: warning: ‘bitarray_print_base16’ defined but not used [-Wunused-function]
       static inline void bitarray_print_base16(bitarray *ba)
                          ^
      error: command '/bin/gcc' failed with exit code 1
      [end of output]

Versions used:

  • CentOS 7.9.2009
  • gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
  • Python 3.9
  • python-devel-2.7.5-94.el7_9.x86_64
  • net-snmp-devel-5.7.2-49.el7_9.3.x86_64

from easysnmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.