Giter VIP home page Giter VIP logo

Comments (2)

carlkidcrypto avatar carlkidcrypto commented on June 11, 2024

I am trying to replicate your issue @ozmusic .
For reference here is my setup:
MacOS: 12.6.1
Python: 3.9.15
net-snmp: 5.9.3
gcc: 12.2.0

Okay, here is my first attempt.

easysnmp % python3.9 setup.py install
running install
/usr/local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/local/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
creating easysnmp.egg-info
writing easysnmp.egg-info/PKG-INFO
writing dependency_links to easysnmp.egg-info/dependency_links.txt
writing top-level names to easysnmp.egg-info/top_level.txt
writing manifest file 'easysnmp.egg-info/SOURCES.txt'
reading manifest file 'easysnmp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'easysnmp.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-12-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-12-x86_64-cpython-39
creating build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/compat.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/variables.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/session.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/__init__.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/easy.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/utils.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/exceptions.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
copying easysnmp/helpers.py -> build/lib.macosx-12-x86_64-cpython-39/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.macosx-12-x86_64-cpython-39
creating build/temp.macosx-12-x86_64-cpython-39/easysnmp
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/opt/net-snmp/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c easysnmp/interface.c -o build/temp.macosx-12-x86_64-cpython-39/easysnmp/interface.o
In file included from easysnmp/interface.c:50:
easysnmp/simple_bitarray.h:116:29: warning: variable 'nbytes' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized]
            for (i = nbits; i > (nbits - remaining_bits); i--)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/simple_bitarray.h:122:27: note: uninitialized use occurs here
        memset(&ba[1], 0, nbytes);
                          ^~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:77:33: note: expanded from macro 'memset'
                __builtin___memset_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
                                              ^~~~~~~~~~~
easysnmp/simple_bitarray.h:116:29: note: remove the condition if it is always true
            for (i = nbits; i > (nbits - remaining_bits); i--)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/simple_bitarray.h:98:22: note: initialize the variable 'nbytes' to silence this warning
        size_t nbytes;
                     ^
                      = 0
easysnmp/interface.c:507:21: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            if (len > buf_len)
                ~~~ ^ ~~~~~~~
easysnmp/interface.c:1267:40: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
                else if (last_errindex > (*response)->errindex)
                         ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:2441:55: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
        if (snmp_version == 1 && DEFAULT_NUM_BAD_OIDS < varlist_len)
                                 ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
easysnmp/interface.c:2928:44: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
                    if ((vars->name_length < oid_arr_len[varlist_ind]) ||
                         ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:3684:48: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
                        if ((vars->name_length < oid_arr_len[varlist_ind]) ||
                             ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:4009:28: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'unsigned long' [-Wsign-compare]
                if (tmplen >= sizeof(tmp_val_str))
                    ~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:4186:5: warning: variable 'pval' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
    default:
    ^~~~~~~
easysnmp/interface.c:4192:16: note: uninitialized use occurs here
    Py_XDECREF(pval);
               ^~~~
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/object.h:501:51: note: expanded from macro 'Py_XDECREF'
#define Py_XDECREF(op) _Py_XDECREF(_PyObject_CAST(op))
                                                  ^~
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/object.h:112:41: note: expanded from macro '_PyObject_CAST'
#define _PyObject_CAST(op) ((PyObject*)(op))
                                        ^~
easysnmp/interface.c:4148:36: note: initialize the variable 'pval' to silence this warning
    PyObject *log_msg = NULL, *pval;
                                   ^
                                    = NULL
In file included from easysnmp/interface.c:50:
easysnmp/simple_bitarray.h:247:13: warning: unused function 'wno_unused_function_simple_bitarray_h' [-Wunused-function]
static void wno_unused_function_simple_bitarray_h(void)
            ^
easysnmp/interface.c:1470:14: warning: unused function 'py_netsnmp_attr_void_ptr' [-Wunused-function]
static void *py_netsnmp_attr_void_ptr(PyObject *obj, char *attr_name)
             ^
10 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk build/temp.macosx-12-x86_64-cpython-39/easysnmp/interface.o -L/usr/local/opt/net-snmp/lib -L/usr/local/opt/[email protected]/lib -lnetsnmp -o build/lib.macosx-12-x86_64-cpython-39/easysnmp/interface.cpython-39-darwin.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
creating build/bdist.macosx-12-x86_64
creating build/bdist.macosx-12-x86_64/egg
creating build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/compat.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/variables.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/interface.cpython-39-darwin.so -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/session.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/__init__.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/easy.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/utils.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/exceptions.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-39/easysnmp/helpers.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/compat.py to compat.cpython-39.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/variables.py to variables.cpython-39.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/session.py to session.cpython-39.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/easy.py to easy.cpython-39.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/utils.py to utils.cpython-39.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/exceptions.py to exceptions.cpython-39.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/helpers.py to helpers.cpython-39.pyc
creating stub loader for easysnmp/interface.cpython-39-darwin.so
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/interface.py to interface.cpython-39.pyc
creating build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/PKG-INFO -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/SOURCES.txt -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/dependency_links.txt -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/top_level.txt -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
writing build/bdist.macosx-12-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
easysnmp.__pycache__.interface.cpython-39: module references __file__
creating dist
creating 'dist/easysnmp-0.2.6-py3.9-macosx-12-x86_64.egg' and adding 'build/bdist.macosx-12-x86_64/egg' to it
removing 'build/bdist.macosx-12-x86_64/egg' (and everything under it)
Processing easysnmp-0.2.6-py3.9-macosx-12-x86_64.egg
creating /usr/local/lib/python3.9/site-packages/easysnmp-0.2.6-py3.9-macosx-12-x86_64.egg
Extracting easysnmp-0.2.6-py3.9-macosx-12-x86_64.egg to /usr/local/lib/python3.9/site-packages
Adding easysnmp 0.2.6 to easy-install.pth file

Installed /usr/local/lib/python3.9/site-packages/easysnmp-0.2.6-py3.9-macosx-12-x86_64.egg
Processing dependencies for easysnmp==0.2.6
Finished processing dependencies for easysnmp==0.2.6

Looks like it worked on Python 3.9.15. Next, let me try Python 3.10.8.

Okay, here is my second attempt.

easysnmp % python3.10 setup.py install
running install
/usr/local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/local/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing easysnmp.egg-info/PKG-INFO
writing dependency_links to easysnmp.egg-info/dependency_links.txt
writing top-level names to easysnmp.egg-info/top_level.txt
reading manifest file 'easysnmp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'easysnmp.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-12-x86_64/egg
running install_lib
running build_py
creating build/lib.macosx-12-x86_64-cpython-310
creating build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/compat.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/variables.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/session.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/__init__.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/easy.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/utils.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/exceptions.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
copying easysnmp/helpers.py -> build/lib.macosx-12-x86_64-cpython-310/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.macosx-12-x86_64-cpython-310
creating build/temp.macosx-12-x86_64-cpython-310/easysnmp
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/opt/net-snmp/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c easysnmp/interface.c -o build/temp.macosx-12-x86_64-cpython-310/easysnmp/interface.o
In file included from easysnmp/interface.c:50:
easysnmp/simple_bitarray.h:116:29: warning: variable 'nbytes' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized]
            for (i = nbits; i > (nbits - remaining_bits); i--)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/simple_bitarray.h:122:27: note: uninitialized use occurs here
        memset(&ba[1], 0, nbytes);
                          ^~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:77:33: note: expanded from macro 'memset'
                __builtin___memset_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
                                              ^~~~~~~~~~~
easysnmp/simple_bitarray.h:116:29: note: remove the condition if it is always true
            for (i = nbits; i > (nbits - remaining_bits); i--)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/simple_bitarray.h:98:22: note: initialize the variable 'nbytes' to silence this warning
        size_t nbytes;
                     ^
                      = 0
easysnmp/interface.c:507:21: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            if (len > buf_len)
                ~~~ ^ ~~~~~~~
easysnmp/interface.c:1267:40: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
                else if (last_errindex > (*response)->errindex)
                         ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:2441:55: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
        if (snmp_version == 1 && DEFAULT_NUM_BAD_OIDS < varlist_len)
                                 ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
easysnmp/interface.c:2928:44: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
                    if ((vars->name_length < oid_arr_len[varlist_ind]) ||
                         ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:3684:48: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
                        if ((vars->name_length < oid_arr_len[varlist_ind]) ||
                             ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:4009:28: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'unsigned long' [-Wsign-compare]
                if (tmplen >= sizeof(tmp_val_str))
                    ~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~
easysnmp/interface.c:4186:5: warning: variable 'pval' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
    default:
    ^~~~~~~
easysnmp/interface.c:4192:16: note: uninitialized use occurs here
    Py_XDECREF(pval);
               ^~~~
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/include/python3.10/object.h:571:51: note: expanded from macro 'Py_XDECREF'
#define Py_XDECREF(op) _Py_XDECREF(_PyObject_CAST(op))
                                                  ^~
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/include/python3.10/object.h:112:41: note: expanded from macro '_PyObject_CAST'
#define _PyObject_CAST(op) ((PyObject*)(op))
                                        ^~
easysnmp/interface.c:4148:36: note: initialize the variable 'pval' to silence this warning
    PyObject *log_msg = NULL, *pval;
                                   ^
                                    = NULL
In file included from easysnmp/interface.c:50:
easysnmp/simple_bitarray.h:247:13: warning: unused function 'wno_unused_function_simple_bitarray_h' [-Wunused-function]
static void wno_unused_function_simple_bitarray_h(void)
            ^
easysnmp/interface.c:1470:14: warning: unused function 'py_netsnmp_attr_void_ptr' [-Wunused-function]
static void *py_netsnmp_attr_void_ptr(PyObject *obj, char *attr_name)
             ^
10 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk build/temp.macosx-12-x86_64-cpython-310/easysnmp/interface.o -L/usr/local/opt/net-snmp/lib -L/usr/local/opt/[email protected]/lib -lnetsnmp -o build/lib.macosx-12-x86_64-cpython-310/easysnmp/interface.cpython-310-darwin.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
creating build/bdist.macosx-12-x86_64/egg
creating build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/compat.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/variables.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/interface.cpython-310-darwin.so -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/session.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/__init__.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/easy.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/utils.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/exceptions.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
copying build/lib.macosx-12-x86_64-cpython-310/easysnmp/helpers.py -> build/bdist.macosx-12-x86_64/egg/easysnmp
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/compat.py to compat.cpython-310.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/variables.py to variables.cpython-310.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/session.py to session.cpython-310.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/easy.py to easy.cpython-310.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/utils.py to utils.cpython-310.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/exceptions.py to exceptions.cpython-310.pyc
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/helpers.py to helpers.cpython-310.pyc
creating stub loader for easysnmp/interface.cpython-310-darwin.so
byte-compiling build/bdist.macosx-12-x86_64/egg/easysnmp/interface.py to interface.cpython-310.pyc
creating build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/PKG-INFO -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/SOURCES.txt -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/dependency_links.txt -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
copying easysnmp.egg-info/top_level.txt -> build/bdist.macosx-12-x86_64/egg/EGG-INFO
writing build/bdist.macosx-12-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
easysnmp.__pycache__.interface.cpython-310: module references __file__
creating 'dist/easysnmp-0.2.6-py3.10-macosx-12-x86_64.egg' and adding 'build/bdist.macosx-12-x86_64/egg' to it
removing 'build/bdist.macosx-12-x86_64/egg' (and everything under it)
Processing easysnmp-0.2.6-py3.10-macosx-12-x86_64.egg
creating /usr/local/lib/python3.10/site-packages/easysnmp-0.2.6-py3.10-macosx-12-x86_64.egg
Extracting easysnmp-0.2.6-py3.10-macosx-12-x86_64.egg to /usr/local/lib/python3.10/site-packages
Adding easysnmp 0.2.6 to easy-install.pth file

Installed /usr/local/lib/python3.10/site-packages/easysnmp-0.2.6-py3.10-macosx-12-x86_64.egg
Processing dependencies for easysnmp==0.2.6
Finished processing dependencies for easysnmp==0.2.6

@ozmusic it works for me on my end on both Python 3.9 and 3.10. Are you still having the same issue? I should add that I am using the most up-to-date master branch (as of today) in my testing.

from easysnmp.

ozmusic avatar ozmusic commented on June 11, 2024

I was able to install easysnmp2, but then moved what I was doing to an x86-64 VM to make life easier.

The main issue with the install for me, is that the linked variable in setup.py returned blank

>>> linked = (
...     check_output(
...         (
...             "otool -L {0}/easysnmp/interface{1} | "
...             r"egrep 'libnetsnmp\.' | "
...             "tr -s '\t' ' ' | "
...             "cut -d' ' -f2"
...         ).format(b.build_platlib, ext),
...         shell=True,
...     )
...     .decode()
...     .strip()
... )
>>> print(linked)

>>>
easysnmp % otool -L build/lib.macosx-12-arm64-cpython-310/easysnmp/interface.cpython-310-darwin.so
build/lib.macosx-12-arm64-cpython-310/easysnmp/interface.cpython-310-darwin.so:


        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1858.112.0)

        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1141.1.0)

        /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)

        /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)
easysnmp %

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.