Advertisement
Guest User

CVXPY SCS Error

a guest
Nov 11th, 2020
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 15.28 KB | None | 0 0
  1. (tutorial-env) [username]@CS:~$ pip install scs
  2. Collecting scs
  3.   Using cached scs-2.1.2.tar.gz (3.5 MB)
  4. Requirement already satisfied: numpy>=1.7 in ./tutorial-env/lib/python3.6/site-packages (from scs) (1.19.4)
  5. Requirement already satisfied: scipy>=0.13.2 in ./tutorial-env/lib/python3.6/site-packages (from scs) (1.5.4)
  6. Building wheels for collected packages: scs
  7.   Building wheel for scs (setup.py) ... error
  8.   ERROR: Command errored out with exit status 1:
  9.    command: /home/[username]/tutorial-env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bems4zxm/scs/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bems4zxm/scs/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-z8p3dl2w
  10.        cwd: /tmp/pip-install-bems4zxm/scs/
  11.   Complete output (115 lines):
  12.   Namespace(blas64=False, extraverbose=False, float32=False, gpu=False, int32=False, scs=False)
  13.   running bdist_wheel
  14.   running build
  15.   running build_py
  16.   creating build
  17.   creating build/lib.linux-x86_64-3.6
  18.   creating build/lib.linux-x86_64-3.6/scs
  19.   copying src/__init__.py -> build/lib.linux-x86_64-3.6/scs
  20.   running build_ext
  21.   blas_mkl_info:
  22.     NOT AVAILABLE
  23.   blis_info:
  24.     NOT AVAILABLE
  25.   openblas_info:
  26.       libraries = ['openblas', 'openblas']
  27.       library_dirs = ['/usr/local/lib']
  28.       language = c
  29.       define_macros = [('HAVE_CBLAS', None)]
  30.   blas_opt_info:
  31.       libraries = ['openblas', 'openblas']
  32.       library_dirs = ['/usr/local/lib']
  33.       language = c
  34.       define_macros = [('HAVE_CBLAS', None)]
  35.   lapack_mkl_info:
  36.     NOT AVAILABLE
  37.   openblas_lapack_info:
  38.       libraries = ['openblas', 'openblas']
  39.       library_dirs = ['/usr/local/lib']
  40.       language = c
  41.       define_macros = [('HAVE_CBLAS', None)]
  42.   lapack_opt_info:
  43.       libraries = ['openblas', 'openblas']
  44.       library_dirs = ['/usr/local/lib']
  45.       language = c
  46.       define_macros = [('HAVE_CBLAS', None)]
  47.   {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  48.   {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  49.   src/scsmodule.c:1:20: fatal error: Python.h: No such file or directory
  50.   compilation terminated.
  51.   In file included from scs/include/cones.h:8:0,
  52.                    from scs/src/cones.c:1:
  53.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  54.   compilation terminated.
  55.   In file included from scs/include/scs.h:9:0,
  56.                    from scs/include/linalg.h:9,
  57.                    from scs/src/linalg.c:1:
  58.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  59.   compilation terminated.
  60.   In file included from scs/linsys/amatrix.h:8:0,
  61.                    from scs/linsys/amatrix.c:2:
  62.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  63.   compilation terminated.
  64.   In file included from scs/include/aa.h:11:0,
  65.                    from scs/src/aa.c:1:
  66.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  67.   compilation terminated.
  68.   In file included from scs/include/scs.h:9:0,
  69.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  70.                    from scs/linsys/external/amd/amd.h:46,
  71.                    from scs/linsys/external/amd/amd_internal.h:154,
  72.                    from scs/linsys/external/amd/amd_valid.c:36:
  73.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  74.   compilation terminated.
  75.   In file included from scs/include/scs.h:9:0,
  76.                    from scs/src/scs.c:1:
  77.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  78.   compilation terminated.
  79.   In file included from scs/include/scs.h:9:0,
  80.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  81.                    from scs/linsys/external/amd/amd.h:46,
  82.                    from scs/linsys/external/amd/amd_internal.h:154,
  83.                    from scs/linsys/external/amd/amd_aat.c:18:
  84.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  85.   compilation terminated.
  86.   In file included from scs/include/scs.h:9:0,
  87.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  88.                    from scs/linsys/external/amd/amd.h:46,
  89.                    from scs/linsys/external/amd/amd_internal.h:154,
  90.                    from scs/linsys/external/amd/amd_order.c:15:
  91.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  92.   compilation terminated.
  93.   In file included from scs/include/scs.h:9:0,
  94.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  95.                    from scs/linsys/external/amd/amd.h:46,
  96.                    from scs/linsys/external/amd/amd_internal.h:154,
  97.                    from scs/linsys/external/amd/amd_defaults.c:15:
  98.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  99.   compilation terminated.
  100.   In file included from scs/include/scs.h:9:0,
  101.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  102.                    from scs/linsys/external/amd/amd.h:46,
  103.                    from scs/linsys/external/amd/amd_internal.h:154,
  104.                    from scs/linsys/external/amd/amd_dump.c:16:
  105.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  106.   compilation terminated.
  107.   In file included from scs/include/scs.h:9:0,
  108.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  109.                    from scs/linsys/external/amd/amd.h:46,
  110.                    from scs/linsys/external/amd/amd_internal.h:154,
  111.                    from scs/linsys/external/amd/amd_postorder.c:13:
  112.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  113.   compilation terminated.
  114.   In file included from scs/include/scs.h:9:0,
  115.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  116.                    from scs/linsys/external/amd/amd.h:46,
  117.                    from scs/linsys/external/amd/amd_internal.h:154,
  118.                    from scs/linsys/external/amd/amd_info.c:15:
  119.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  120.   compilation terminated.
  121.   In file included from scs/linsys/external/qdldl/qdldl_types.h:4:0,
  122.                    from scs/linsys/external/qdldl/qdldl.h:5,
  123.                    from scs/linsys/external/qdldl/qdldl.c:1:
  124.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  125.   compilation terminated.
  126.   error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYTHON -DCTRLC=1 -DDLONG=1 -DCOPYAMATRIX -DUSE_LAPACK -DHAVE_CBLAS -DHAVE_CBLAS -Iscs/include -Iscs/linsys -Iscs/linsys/cpu/direct/ -Iscs/linsys/external/amd -Iscs/linsys/external/dqlql -I/home/[username]/tutorial-env/lib/python3.6/site-packages/numpy/core/include -I/home/[username]/tutorial-env/include -I/usr/include/python3.6m -c src/scsmodule.c -o build/temp.linux-x86_64-3.6/src/scsmodule.o -O3" failed with exit status 1
  127.   ----------------------------------------
  128.   ERROR: Failed building wheel for scs
  129.   Running setup.py clean for scs
  130. Failed to build scs
  131. Installing collected packages: scs
  132.     Running setup.py install for scs ... error
  133.     ERROR: Command errored out with exit status 1:
  134.      command: /home/[username]/tutorial-env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bems4zxm/scs/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bems4zxm/scs/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-5v948k2e/install-record.txt --single-version-externally-managed --compile --install-headers /home/[username]/tutorial-env/include/site/python3.6/scs
  135.          cwd: /tmp/pip-install-bems4zxm/scs/
  136.     Complete output (115 lines):
  137.     Namespace(blas64=False, extraverbose=False, float32=False, gpu=False, int32=False, scs=False)
  138.     running install
  139.     running build
  140.     running build_py
  141.     creating build
  142.     creating build/lib.linux-x86_64-3.6
  143.     creating build/lib.linux-x86_64-3.6/scs
  144.     copying src/__init__.py -> build/lib.linux-x86_64-3.6/scs
  145.     running build_ext
  146.     blas_mkl_info:
  147.       NOT AVAILABLE
  148.     blis_info:
  149.       NOT AVAILABLE
  150.     openblas_info:
  151.         libraries = ['openblas', 'openblas']
  152.         library_dirs = ['/usr/local/lib']
  153.         language = c
  154.         define_macros = [('HAVE_CBLAS', None)]
  155.     blas_opt_info:
  156.         libraries = ['openblas', 'openblas']
  157.         library_dirs = ['/usr/local/lib']
  158.         language = c
  159.         define_macros = [('HAVE_CBLAS', None)]
  160.     lapack_mkl_info:
  161.       NOT AVAILABLE
  162.     openblas_lapack_info:
  163.         libraries = ['openblas', 'openblas']
  164.         library_dirs = ['/usr/local/lib']
  165.         language = c
  166.         define_macros = [('HAVE_CBLAS', None)]
  167.     lapack_opt_info:
  168.         libraries = ['openblas', 'openblas']
  169.         library_dirs = ['/usr/local/lib']
  170.         language = c
  171.         define_macros = [('HAVE_CBLAS', None)]
  172.     {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  173.     {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  174.     src/scsmodule.c:1:20: fatal error: Python.h: No such file or directory
  175.     compilation terminated.
  176.     In file included from scs/include/scs.h:9:0,
  177.                      from scs/include/linalg.h:9,
  178.                      from scs/src/linalg.c:1:
  179.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  180.     compilation terminated.
  181.     In file included from scs/include/cones.h:8:0,
  182.                      from scs/src/cones.c:1:
  183.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  184.     compilation terminated.
  185.     In file included from scs/linsys/amatrix.h:8:0,
  186.                      from scs/linsys/amatrix.c:2:
  187.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  188.     compilation terminated.
  189.     In file included from scs/include/aa.h:11:0,
  190.                      from scs/src/aa.c:1:
  191.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  192.     compilation terminated.
  193.     In file included from scs/include/scs.h:9:0,
  194.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  195.                      from scs/linsys/external/amd/amd.h:46,
  196.                      from scs/linsys/external/amd/amd_internal.h:154,
  197.                      from scs/linsys/external/amd/amd_valid.c:36:
  198.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  199.     compilation terminated.
  200.     In file included from scs/include/scs.h:9:0,
  201.                      from scs/src/scs.c:1:
  202.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  203.     compilation terminated.
  204.     In file included from scs/include/scs.h:9:0,
  205.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  206.                      from scs/linsys/external/amd/amd.h:46,
  207.                      from scs/linsys/external/amd/amd_internal.h:154,
  208.                      from scs/linsys/external/amd/amd_aat.c:18:
  209.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  210.     compilation terminated.
  211.     In file included from scs/include/scs.h:9:0,
  212.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  213.                      from scs/linsys/external/amd/amd.h:46,
  214.                      from scs/linsys/external/amd/amd_internal.h:154,
  215.                      from scs/linsys/external/amd/amd_order.c:15:
  216.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  217.     compilation terminated.
  218.     In file included from scs/include/scs.h:9:0,
  219.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  220.                      from scs/linsys/external/amd/amd.h:46,
  221.                      from scs/linsys/external/amd/amd_internal.h:154,
  222.                      from scs/linsys/external/amd/amd_dump.c:16:
  223.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  224.     compilation terminated.
  225.     In file included from scs/include/scs.h:9:0,
  226.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  227.                      from scs/linsys/external/amd/amd.h:46,
  228.                      from scs/linsys/external/amd/amd_internal.h:154,
  229.                      from scs/linsys/external/amd/amd_defaults.c:15:
  230.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  231.     compilation terminated.
  232.     In file included from scs/include/scs.h:9:0,
  233.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  234.                      from scs/linsys/external/amd/amd.h:46,
  235.                      from scs/linsys/external/amd/amd_internal.h:154,
  236.                      from scs/linsys/external/amd/amd_postorder.c:13:
  237.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  238.     compilation terminated.
  239.     In file included from scs/linsys/external/qdldl/qdldl_types.h:4:0,
  240.                      from scs/linsys/external/qdldl/qdldl.h:5,
  241.                      from scs/linsys/external/qdldl/qdldl.c:1:
  242.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  243.     compilation terminated.
  244.     In file included from scs/include/scs.h:9:0,
  245.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  246.                      from scs/linsys/external/amd/amd.h:46,
  247.                      from scs/linsys/external/amd/amd_internal.h:154,
  248.                      from scs/linsys/external/amd/amd_info.c:15:
  249.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  250.     compilation terminated.
  251.     error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYTHON -DCTRLC=1 -DDLONG=1 -DCOPYAMATRIX -DUSE_LAPACK -DHAVE_CBLAS -DHAVE_CBLAS -Iscs/include -Iscs/linsys -Iscs/linsys/cpu/direct/ -Iscs/linsys/external/amd -Iscs/linsys/external/dqlql -I/home/[username]/tutorial-env/lib/python3.6/site-packages/numpy/core/include -I/home/[username]/tutorial-env/include -I/usr/include/python3.6m -c src/scsmodule.c -o build/temp.linux-x86_64-3.6/src/scsmodule.o -O3" failed with exit status 1
  252.     ----------------------------------------
  253. ERROR: Command errored out with exit status 1: /home/[username]/tutorial-env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bems4zxm/scs/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bems4zxm/scs/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-5v948k2e/install-record.txt --single-version-externally-managed --compile --install-headers /home/[username]/tutorial-env/include/site/python3.6/scs Check the logs for full command output.
  254.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement