Comments (3)
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.
@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.
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)
- [BUG] macOS compilation fails due to improper setup.py logic
- [PROPOSAL] Drop Python 2 support HOT 1
- Cannot install MacOS 12.5 (M1 ARM64) HOT 12
- [BUG] SIGSEGV if type not set in snmp_set() HOT 3
- [BUG] Unable to set 64 bit integer on 32 bit ARM device HOT 10
- Possible Memory Leak Using Session API HOT 4
- [BUG] HOT 2
- [FEATURE] Support 16bitIDs in sessions
- failed to install/compile with pip on debian11 [BUG]
- How to install easysnmp with net-snmp installed in /opt/netsnmp HOT 1
- [BUG] Unsupported privacy protocol DES
- [FEATURE] Python 3.11 support
- [BUG] DeprecationWarning future library HOT 1
- [FEATURE] Read the Docs Action required - Add a configuration file to your project to prevent build failures
- [BUG] MacOS install fatal error: 'openssl/ossl_typ.h' file not found HOT 1
- Please support apple silicon[FEATURE] HOT 1
- [BUG] Empty string in second argument for `set` results in segmentation fault HOT 1
- [BUG] When installing easysnmp 0.2.6 using pip and wheel, current algos introduced with 0.2.6 are not working
- [BUG] Failing installation on M3 MacBook MacOS 14.4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easysnmp.