Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is the error that shows up when I type command-"pip3 install elastalert" in "Ubuntu"

Building wheel for blist (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [35 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/blist
copying blist/_sorteddict.py -> build/lib.linux-x86_64-cpython-310/blist
copying blist/_btuple.py -> build/lib.linux-x86_64-cpython-310/blist
copying blist/_sortedlist.py -> build/lib.linux-x86_64-cpython-310/blist
copying blist/__init__.py -> build/lib.linux-x86_64-cpython-310/blist
running build_ext
building 'blist._blist' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/blist
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DBLIST_FLOAT_RADIX_SORT=1 -I/usr/include/python3.10 -c blist/_blist.c -o build/temp.linux-x86_64-cpython-310/blist/_blist.o
blist/_blist.c: In function ‘unwrap_leaf_array’:
blist/_blist.c:4583:37: warning: implicit declaration of function ‘_PyObject_GC_IS_TRACKED’; did you mean ‘PyObject_GC_IsTracked’? [-Wimplicit-function-declaration]
4583 | if (leafs_n > 1 && !_PyObject_GC_IS_TRACKED(leafs[i]))
| ^~~~~~~~~~~~~~~~~~~~~~~
| PyObject_GC_IsTracked
blist/_blist.c: In function ‘sort_ulong’:
blist/_blist.c:5387:31: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
5387 | for (j = 0; j < NUM_PASSES; j++) {
| ^
blist/_blist.c:5393:31: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
5393 | for (j = 0; j < NUM_PASSES; j++) {
| ^
blist/_blist.c:5403:23: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
5403 | for (j = 0; j < NUM_PASSES; j++) {
| ^
blist/_blist.c: In function ‘py_blist_sort’:
blist/_blist.c:6592:27: error: lvalue required as left operand of assignment
6592 | Py_REFCNT(&saved) = 1;
| ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for blist
Running setup.py clean for blist
Failed to build blist
ERROR: Could not build wheels for blist, which is required to install pyproject.toml-based projects

What I have tried:

I have tried-"pip install wheel", and following link task but the problem did not resolve.

https://bobbyhadz.com/blog/python-setup-py-bdist-wheel-did-not-run-successfully
Posted
Updated 11-May-23 6:28am

1 solution

It looks like the code for this package has a number of errors in it. So you need to contact the package owners for help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900