Advertisement
Guest User

cant install pop pycap

a guest
Mar 10th, 2021
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.96 KB | None | 0 0
  1. ┌──(root💀kali)-[/home/…/Desktop/Hacking/MITMf/MITMf]
  2. └─# pip install pypcap
  3. Collecting pypcap
  4. Using cached pypcap-1.2.3.tar.gz (136 kB)
  5. Building wheels for collected packages: pypcap
  6. Building wheel for pypcap (setup.py) ... error
  7. ERROR: Command errored out with exit status 1:
  8. command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l66bg8ky/pypcap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l66bg8ky/pypcap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7mebfb4t
  9. cwd: /tmp/pip-install-l66bg8ky/pypcap/
  10. Complete output (164 lines):
  11. Found pcap headers in /usr/include/pcap.h
  12. Found libraries in /usr/lib/x86_64-linux-gnu/libpcap.so
  13. found pcap_get_tstamp_precision function
  14. found pcap_setdirection
  15. found pcap_setnonblock
  16. found pcap_compile_nopcap function
  17. running bdist_wheel
  18. running build
  19. running build_ext
  20. building 'pcap' extension
  21. creating build
  22. creating build/temp.linux-x86_64-3.9
  23. x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-euU3fN/python3.9-3.9.1=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-euU3fN/python3.9-3.9.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_PCAP_TSTAMP_PRECISION=1 -DHAVE_PCAP_SETDIRECTION=1 -DHAVE_PCAP_SETNONBLOCK=1 -DHAVE_PCAP_COMPILE_NOPCAP=1 -I/usr/include -I/usr/include/python3.9 -c pcap.c -o build/temp.linux-x86_64-3.9/pcap.o
  24. pcap.c: In function ‘__pyx_pf_4pcap_3bpf_2filter’:
  25. pcap.c:3065:3: warning: ‘PyObject_AsCharBuffer’ is deprecated [-Wdeprecated-declarations]
  26. 3065 | __pyx_t_1 = ((PyObject_AsCharBuffer(__pyx_v_buf, ((char const **)(&__pyx_v_p)), (&__pyx_v_n)) < 0) != 0);
  27. | ^~~~~~~~~
  28. In file included from /usr/include/python3.9/Python.h:151,
  29. from pcap.c:4:
  30. /usr/include/python3.9/abstract.h:326:17: note: declared here
  31. 326 | PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,
  32. | ^~~~~~~~~~~~~~~~~~~~~
  33. pcap.c: In function ‘__Pyx_modinit_type_init_code’:
  34. pcap.c:22411:36: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  35. 22411 | __pyx_type_4pcap_pcap_handler_ctx.tp_print = 0;
  36. | ^
  37. pcap.c:22419:23: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  38. 22419 | __pyx_type_4pcap_bpf.tp_print = 0;
  39. | ^
  40. pcap.c:22427:24: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  41. 22427 | __pyx_type_4pcap_pcap.tp_print = 0;
  42. | ^
  43. pcap.c:22437:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  44. 22437 | __pyx_type___pyx_array.tp_print = 0;
  45. | ^
  46. pcap.c:22442:31: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  47. 22442 | __pyx_type___pyx_MemviewEnum.tp_print = 0;
  48. | ^
  49. pcap.c:22457:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  50. 22457 | __pyx_type___pyx_memoryview.tp_print = 0;
  51. | ^
  52. pcap.c:22470:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  53. 22470 | __pyx_type___pyx_memoryviewslice.tp_print = 0;
  54. | ^
  55. pcap.c: In function ‘__Pyx_ParseOptionalKeywords’:
  56. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  57. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  58. | ^
  59. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  60. from /usr/include/python3.9/Python.h:97,
  61. from pcap.c:4:
  62. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  63. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  64. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  65. pcap.c:24116:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  66. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  67. | ^
  68. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  69. from /usr/include/python3.9/Python.h:97,
  70. from pcap.c:4:
  71. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  72. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  73. | ^~~~~~~~~~~~~~~~~~~
  74. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  75. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  76. | ^
  77. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  78. from /usr/include/python3.9/Python.h:97,
  79. from pcap.c:4:
  80. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  81. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  82. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  83. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  84. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  85. | ^
  86. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  87. from /usr/include/python3.9/Python.h:97,
  88. from pcap.c:4:
  89. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  90. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  91. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  92. pcap.c:24116:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  93. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  94. | ^
  95. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  96. from /usr/include/python3.9/Python.h:97,
  97. from pcap.c:4:
  98. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  99. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  100. | ^~~~~~~~~~~~~~~~~~~
  101. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  102. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  103. | ^
  104. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  105. from /usr/include/python3.9/Python.h:97,
  106. from pcap.c:4:
  107. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  108. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  109. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  110. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  111. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  112. | ^
  113. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  114. from /usr/include/python3.9/Python.h:97,
  115. from pcap.c:4:
  116. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  117. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  118. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  119. pcap.c:24132:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  120. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  121. | ^
  122. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  123. from /usr/include/python3.9/Python.h:97,
  124. from pcap.c:4:
  125. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  126. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  127. | ^~~~~~~~~~~~~~~~~~~
  128. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  129. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  130. | ^
  131. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  132. from /usr/include/python3.9/Python.h:97,
  133. from pcap.c:4:
  134. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  135. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  136. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  137. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  138. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  139. | ^
  140. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  141. from /usr/include/python3.9/Python.h:97,
  142. from pcap.c:4:
  143. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  144. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  145. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  146. pcap.c:24132:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  147. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  148. | ^
  149. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  150. from /usr/include/python3.9/Python.h:97,
  151. from pcap.c:4:
  152. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  153. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  154. | ^~~~~~~~~~~~~~~~~~~
  155. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  156. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  157. | ^
  158. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  159. from /usr/include/python3.9/Python.h:97,
  160. from pcap.c:4:
  161. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  162. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  163. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  164. pcap.c: In function ‘__Pyx_decode_c_string’:
  165. pcap.c:25062:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
  166. 25062 | return PyUnicode_FromUnicode(NULL, 0);
  167. | ^~~~~~
  168. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  169. from /usr/include/python3.9/Python.h:97,
  170. from pcap.c:4:
  171. /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here
  172. 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
  173. | ^~~~~~~~~~~~~~~~~~~~~
  174. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  175. ----------------------------------------
  176. ERROR: Failed building wheel for pypcap
  177. Running setup.py clean for pypcap
  178. Failed to build pypcap
  179. Installing collected packages: pypcap
  180. Running setup.py install for pypcap ... error
  181. ERROR: Command errored out with exit status 1:
  182. command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l66bg8ky/pypcap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l66bg8ky/pypcap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-f9q95av8/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pypcap
  183. cwd: /tmp/pip-install-l66bg8ky/pypcap/
  184. Complete output (164 lines):
  185. Found pcap headers in /usr/include/pcap.h
  186. Found libraries in /usr/lib/x86_64-linux-gnu/libpcap.so
  187. found pcap_get_tstamp_precision function
  188. found pcap_setdirection
  189. found pcap_setnonblock
  190. found pcap_compile_nopcap function
  191. running install
  192. running build
  193. running build_ext
  194. building 'pcap' extension
  195. creating build
  196. creating build/temp.linux-x86_64-3.9
  197. x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-euU3fN/python3.9-3.9.1=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-euU3fN/python3.9-3.9.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_PCAP_TSTAMP_PRECISION=1 -DHAVE_PCAP_SETDIRECTION=1 -DHAVE_PCAP_SETNONBLOCK=1 -DHAVE_PCAP_COMPILE_NOPCAP=1 -I/usr/include -I/usr/include/python3.9 -c pcap.c -o build/temp.linux-x86_64-3.9/pcap.o
  198. pcap.c: In function ‘__pyx_pf_4pcap_3bpf_2filter’:
  199. pcap.c:3065:3: warning: ‘PyObject_AsCharBuffer’ is deprecated [-Wdeprecated-declarations]
  200. 3065 | __pyx_t_1 = ((PyObject_AsCharBuffer(__pyx_v_buf, ((char const **)(&__pyx_v_p)), (&__pyx_v_n)) < 0) != 0);
  201. | ^~~~~~~~~
  202. In file included from /usr/include/python3.9/Python.h:151,
  203. from pcap.c:4:
  204. /usr/include/python3.9/abstract.h:326:17: note: declared here
  205. 326 | PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,
  206. | ^~~~~~~~~~~~~~~~~~~~~
  207. pcap.c: In function ‘__Pyx_modinit_type_init_code’:
  208. pcap.c:22411:36: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  209. 22411 | __pyx_type_4pcap_pcap_handler_ctx.tp_print = 0;
  210. | ^
  211. pcap.c:22419:23: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  212. 22419 | __pyx_type_4pcap_bpf.tp_print = 0;
  213. | ^
  214. pcap.c:22427:24: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  215. 22427 | __pyx_type_4pcap_pcap.tp_print = 0;
  216. | ^
  217. pcap.c:22437:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  218. 22437 | __pyx_type___pyx_array.tp_print = 0;
  219. | ^
  220. pcap.c:22442:31: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  221. 22442 | __pyx_type___pyx_MemviewEnum.tp_print = 0;
  222. | ^
  223. pcap.c:22457:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  224. 22457 | __pyx_type___pyx_memoryview.tp_print = 0;
  225. | ^
  226. pcap.c:22470:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
  227. 22470 | __pyx_type___pyx_memoryviewslice.tp_print = 0;
  228. | ^
  229. pcap.c: In function ‘__Pyx_ParseOptionalKeywords’:
  230. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  231. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  232. | ^
  233. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  234. from /usr/include/python3.9/Python.h:97,
  235. from pcap.c:4:
  236. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  237. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  238. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  239. pcap.c:24116:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  240. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  241. | ^
  242. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  243. from /usr/include/python3.9/Python.h:97,
  244. from pcap.c:4:
  245. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  246. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  247. | ^~~~~~~~~~~~~~~~~~~
  248. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  249. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  250. | ^
  251. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  252. from /usr/include/python3.9/Python.h:97,
  253. from pcap.c:4:
  254. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  255. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  256. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  257. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  258. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  259. | ^
  260. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  261. from /usr/include/python3.9/Python.h:97,
  262. from pcap.c:4:
  263. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  264. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  265. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  266. pcap.c:24116:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  267. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  268. | ^
  269. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  270. from /usr/include/python3.9/Python.h:97,
  271. from pcap.c:4:
  272. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  273. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  274. | ^~~~~~~~~~~~~~~~~~~
  275. pcap.c:24116:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  276. 24116 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
  277. | ^
  278. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  279. from /usr/include/python3.9/Python.h:97,
  280. from pcap.c:4:
  281. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  282. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  283. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  284. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  285. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  286. | ^
  287. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  288. from /usr/include/python3.9/Python.h:97,
  289. from pcap.c:4:
  290. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  291. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  292. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  293. pcap.c:24132:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  294. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  295. | ^
  296. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  297. from /usr/include/python3.9/Python.h:97,
  298. from pcap.c:4:
  299. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  300. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  301. | ^~~~~~~~~~~~~~~~~~~
  302. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  303. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  304. | ^
  305. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  306. from /usr/include/python3.9/Python.h:97,
  307. from pcap.c:4:
  308. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  309. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  310. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  311. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  312. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  313. | ^
  314. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  315. from /usr/include/python3.9/Python.h:97,
  316. from pcap.c:4:
  317. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  318. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  319. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  320. pcap.c:24132:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
  321. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  322. | ^
  323. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  324. from /usr/include/python3.9/Python.h:97,
  325. from pcap.c:4:
  326. /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
  327. 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
  328. | ^~~~~~~~~~~~~~~~~~~
  329. pcap.c:24132:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
  330. 24132 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
  331. | ^
  332. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  333. from /usr/include/python3.9/Python.h:97,
  334. from pcap.c:4:
  335. /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
  336. 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
  337. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  338. pcap.c: In function ‘__Pyx_decode_c_string’:
  339. pcap.c:25062:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
  340. 25062 | return PyUnicode_FromUnicode(NULL, 0);
  341. | ^~~~~~
  342. In file included from /usr/include/python3.9/unicodeobject.h:1026,
  343. from /usr/include/python3.9/Python.h:97,
  344. from pcap.c:4:
  345. /usr/include/python3.9/cpython/unicodeobject.h:551:42: note: declared here
  346. 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
  347. | ^~~~~~~~~~~~~~~~~~~~~
  348. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  349. ----------------------------------------
  350. ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l66bg8ky/pypcap/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l66bg8ky/pypcap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-f9q95av8/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pypcap Check the logs for full command output.
  351.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement