pynetwork / pypcap

pypcap - python libpcap module, forked from code.google.com/p/pypcap
Other
297 stars 74 forks source link

i taking this error #107

Open cvsqrd5 opened 2 years ago

cvsqrd5 commented 2 years ago
ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1526pj2j/pypcap_e88a0168c051472cb8df2a19e79f10a4/setup.py'"'"'; file='"'"'/tmp/pip-install-1526pj2j/pypcap_e88a0168c051472cb8df2a19e79f10a4/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-kfg1__at/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/pypcap
cwd: /tmp/pip-install-1526pj2j/pypcap_e88a0168c051472cb8df2a19e79f10a4/
Complete output (202 lines):
Found pcap headers in /usr/include/pcap.h
Found libraries in /usr/lib/x86_64-linux-gnu/libpcap.so
found pcap_get_tstamp_precision function
found pcap_setdirection
found pcap_setnonblock
found pcap_compile_nopcap function
/usr/local/lib/python3.10/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running install
running build
running build_ext
building 'pcap' extension
creating build
creating build/temp.linux-x86_64-3.10
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_PCAP_TSTAMP_PRECISION=1 -DHAVE_PCAP_SETDIRECTION=1 -DHAVE_PCAP_SETNONBLOCK=1 -DHAVE_PCAP_COMPILE_NOPCAP=1 -I/usr/include -I/usr/local/include/python3.10 -c pcap.c -o build/temp.linux-x86_64-3.10/pcap.o
pcap.c: In function ‘__pyx_pf_4pcap_3bpf_2filter’:
pcap.c:3065:3: warning: ‘PyObject_AsCharBuffer’ is deprecated [-Wdeprecated-declarations]
3065
__pyx_t_1 = ((PyObject_AsCharBuffer(pyx_v_buf, ((char const **)(&pyx_v_p)), (&__pyx_v_n)) < 0) != 0); ^~~~~
In file included from /usr/local/include/python3.10/genobject.h:12,
from /usr/local/include/python3.10/Python.h:122,
from pcap.c:4:
/usr/local/include/python3.10/abstract.h:326:17: note: declared here
326
PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj, ^~~~~
pcap.c: In function ‘__pyx_tp_dealloc_4pcap_bpf’:
pcap.c:20800:5: error: lvalue required as increment operand
20800
++Py_REFCNT(o); ^~
pcap.c:20802:5: error: lvalue required as decrement operand
20802
--Py_REFCNT(o); ^~
pcap.c: In function ‘__pyx_tp_dealloc_4pcap_pcap’:
pcap.c:20893:5: error: lvalue required as increment operand
20893
++Py_REFCNT(o); ^~
pcap.c:20895:5: error: lvalue required as decrement operand
20895
--Py_REFCNT(o); ^~
pcap.c: In function ‘__pyx_tp_dealloc_array’:
pcap.c:21052:5: error: lvalue required as increment operand
21052
++Py_REFCNT(o); ^~
pcap.c:21054:5: error: lvalue required as decrement operand
21054
--Py_REFCNT(o); ^~
pcap.c: In function ‘__pyx_tp_dealloc_memoryview’:
pcap.c:21341:5: error: lvalue required as increment operand
21341
++Py_REFCNT(o); ^~
pcap.c:21343:5: error: lvalue required as decrement operand
21343
--Py_REFCNT(o); ^~
pcap.c: In function ‘pyx_tp_deallocmemoryviewslice’:
pcap.c:21580:5: error: lvalue required as increment operand
21580
++Py_REFCNT(o); ^~
pcap.c:21582:5: error: lvalue required as decrement operand
21582
--Py_REFCNT(o); ^~
pcap.c: In function ‘__Pyx_modinit_type_init_code’:
pcap.c:22411:36: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
22411
__pyx_type_4pcap_pcap_handler_ctx.tp_print = 0; ^
pcap.c:22419:23: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
22419
__pyx_type_4pcap_bpf.tp_print = 0; ^
pcap.c:22427:24: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
22427
__pyx_type_4pcap_pcap.tp_print = 0; ^
pcap.c:22437:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
22437
pyxtypepyx_array.tp_print = 0; ^
pcap.c:22442:31: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
22442
pyxtypepyx_MemviewEnum.tp_print = 0; ^
pcap.c:22457:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
22457
pyxtypepyx_memoryview.tp_print = 0; ^
pcap.c:22470:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
22470
pyxtypepyx_memoryviewslice.tp_print = 0; ^
pcap.c: In function ‘__Pyx_ParseOptionalKeywords’:
pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24116
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c:24116:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24116
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24116
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24116
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c:24116:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24116
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24116
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24132
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c:24132:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24132
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24132
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24132
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c:24132:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
24132
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
24132
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
pcap.c: In function ‘__Pyx_decode_c_string’:
pcap.c:25062:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
25062
return PyUnicode_FromUnicode(NULL, 0); ^~
In file included from /usr/local/include/python3.10/unicodeobject.h:1046, from /usr/local/include/python3.10/Python.h:96,
from pcap.c:4:
/usr/local/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( ^~~~~
error: command '/usr/bin/gcc' failed with exit code 1

ERROR: Command errored out with exit status 1: /usr/local/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1526pj2j/pypcap_e88a0168c051472cb8df2a19e79f10a4/setup.py'"'"'; file='"'"'/tmp/pip-install-1526pj2j/pypcap_e88a0168c051472cb8df2a19e79f10a4/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-kfg1__at/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/pypcap Check the logs for full command output.