Skip to content

ecos can not support python=3.8.5 #22

@lianjiang-yulj

Description

@lianjiang-yulj

Building wheels for collected packages: ecos
Building wheel for ecos (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/anaconda3/envs/pythonProject/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/setup.py'"'"'; file='"'"'/private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/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 /private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-wheel-ddjze9jf
cwd: /private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/
Complete output (65 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/ecos
copying src/ecos/version.py -> build/lib.macosx-10.9-x86_64-3.8/ecos
copying src/ecos/init.py -> build/lib.macosx-10.9-x86_64-3.8/ecos
copying src/ecos/ecos.py -> build/lib.macosx-10.9-x86_64-3.8/ecos
running build_ext
building '_ecos' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/ldl
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/ldl/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/amd
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/amd/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos/ecos_bb
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c src/ecosmodule.c -o build/temp.macosx-10.9-x86_64-3.8/src/ecosmodule.o
In file included from src/ecosmodule.c:6:
ecos/include/ecos_bb.h:161:42: warning: this function declaration is not a prototype [-Wstrict-prototypes]
settings_bb* get_default_ECOS_BB_settings();
^
void
ecos/include/ecos_bb.h:164:14: warning: unused function 'get_bool_node_id' [-Wunused-function]
static char* get_bool_node_id(idxint idx, ecos_bb_pwork* prob){
^
ecos/include/ecos_bb.h:168:16: warning: unused function 'get_int_node_id' [-Wunused-function]
static pfloat* get_int_node_id(idxint idx, ecos_bb_pwork* prob){
^
ecos/include/ecos_bb.h:176:15: warning: unused function 'pfloat_round' [-Wunused-function]
static pfloat pfloat_round(pfloat number){
^
ecos/include/ecos_bb.h:180:15: warning: unused function 'pfloat_ceil' [-Wunused-function]
static pfloat pfloat_ceil(pfloat number, pfloat integer_tol){
^
ecos/include/ecos_bb.h:184:15: warning: unused function 'pfloat_floor' [-Wunused-function]
static pfloat pfloat_floor(pfloat number, pfloat integer_tol){
^
ecos/include/ecos_bb.h:188:15: warning: unused function 'float_eqls' [-Wunused-function]
static idxint float_eqls(pfloat a, pfloat b, pfloat integer_tol){
^
7 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/external/ldl/src/ldl.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/external/ldl/src/ldl.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/cone.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/cone.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/ctrlc.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/ctrlc.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/ecos.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/ecos.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/equil.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/equil.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/expcone.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/expcone.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/kkt.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/kkt.o
ecos/src/kkt.c:47:7: error: implicit declaration of function 'LDL_numeric2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
nd = LDL_numeric2(
^
ecos/src/kkt.c:47:7: note: did you mean 'ldl_numeric'?
/opt/anaconda3/envs/pythonProject/include/ldl.h:48:5: note: 'ldl_numeric' declared here
int ldl_numeric (int n, int Ap [ ], int Ai [ ], double Ax [ ],
^
ecos/src/kkt.c:120:2: error: implicit declaration of function 'LDL_lsolve2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
LDL_lsolve2(nK, Pb, KKT->L->jc, KKT->L->ir, KKT->L->pr, Px );
^
2 errors generated.
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for ecos
Running setup.py clean for ecos
Failed to build ecos
Installing collected packages: ecos, docopt, colorama, matplotlib, pyqlib
Running setup.py install for ecos ... error
ERROR: Command errored out with exit status 1:
command: /opt/anaconda3/envs/pythonProject/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/setup.py'"'"'; file='"'"'/private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-record-j96jtqvp/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/envs/pythonProject/include/python3.8/ecos
cwd: /private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/
Complete output (65 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/ecos
copying src/ecos/version.py -> build/lib.macosx-10.9-x86_64-3.8/ecos
copying src/ecos/init.py -> build/lib.macosx-10.9-x86_64-3.8/ecos
copying src/ecos/ecos.py -> build/lib.macosx-10.9-x86_64-3.8/ecos
running build_ext
building '_ecos' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/ldl
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/ldl/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/amd
creating build/temp.macosx-10.9-x86_64-3.8/ecos/external/amd/src
creating build/temp.macosx-10.9-x86_64-3.8/ecos/ecos_bb
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c src/ecosmodule.c -o build/temp.macosx-10.9-x86_64-3.8/src/ecosmodule.o
In file included from src/ecosmodule.c:6:
ecos/include/ecos_bb.h:161:42: warning: this function declaration is not a prototype [-Wstrict-prototypes]
settings_bb* get_default_ECOS_BB_settings();
^
void
ecos/include/ecos_bb.h:164:14: warning: unused function 'get_bool_node_id' [-Wunused-function]
static char* get_bool_node_id(idxint idx, ecos_bb_pwork* prob){
^
ecos/include/ecos_bb.h:168:16: warning: unused function 'get_int_node_id' [-Wunused-function]
static pfloat* get_int_node_id(idxint idx, ecos_bb_pwork* prob){
^
ecos/include/ecos_bb.h:176:15: warning: unused function 'pfloat_round' [-Wunused-function]
static pfloat pfloat_round(pfloat number){
^
ecos/include/ecos_bb.h:180:15: warning: unused function 'pfloat_ceil' [-Wunused-function]
static pfloat pfloat_ceil(pfloat number, pfloat integer_tol){
^
ecos/include/ecos_bb.h:184:15: warning: unused function 'pfloat_floor' [-Wunused-function]
static pfloat pfloat_floor(pfloat number, pfloat integer_tol){
^
ecos/include/ecos_bb.h:188:15: warning: unused function 'float_eqls' [-Wunused-function]
static idxint float_eqls(pfloat a, pfloat b, pfloat integer_tol){
^
7 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/external/ldl/src/ldl.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/external/ldl/src/ldl.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/cone.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/cone.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/ctrlc.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/ctrlc.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/ecos.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/ecos.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/equil.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/equil.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/expcone.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/expcone.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -I/opt/anaconda3/envs/pythonProject/include -arch x86_64 -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -I/opt/anaconda3/envs/pythonProject/include/python3.8 -I/opt/anaconda3/envs/pythonProject/lib/python3.8/site-packages/numpy/core/include -c ecos/src/kkt.c -o build/temp.macosx-10.9-x86_64-3.8/ecos/src/kkt.o
ecos/src/kkt.c:47:7: error: implicit declaration of function 'LDL_numeric2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
nd = LDL_numeric2(
^
ecos/src/kkt.c:47:7: note: did you mean 'ldl_numeric'?
/opt/anaconda3/envs/pythonProject/include/ldl.h:48:5: note: 'ldl_numeric' declared here
int ldl_numeric (int n, int Ap [ ], int Ai [ ], double Ax [ ],
^
ecos/src/kkt.c:120:2: error: implicit declaration of function 'LDL_lsolve2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
LDL_lsolve2(nK, Pb, KKT->L->jc, KKT->L->ir, KKT->L->pr, Px );
^
2 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/anaconda3/envs/pythonProject/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/setup.py'"'"'; file='"'"'/private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-install-ma18w0hh/ecos_7793a0b822cb4823b5d65b0143803850/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/0x/6zw4f8td6sg8s9kr2lz9p96r0000gp/T/pip-record-j96jtqvp/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/envs/pythonProject/include/python3.8/ecos Check the logs for full command output.
(pythonProject)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions