Advertisement
Guest User

CVXPY Git Clone Error

a guest
Nov 11th, 2020
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.41 KB | None | 0 0
  1. (tutorial-env) [username]@CS:~$ git clone https://github.com/cvxgrp/cvxpy
  2. Cloning into 'cvxpy'...
  3. remote: Enumerating objects: 169, done.
  4. remote: Counting objects: 100% (169/169), done.
  5. remote: Compressing objects: 100% (124/124), done.
  6. remote: Total 58970 (delta 90), reused 75 (delta 41), pack-reused 58801
  7. Receiving objects: 100% (58970/58970), 168.74 MiB | 6.17 MiB/s, done.
  8. Resolving deltas: 100% (40842/40842), done.
  9. Checking connectivity... done.
  10. (tutorial-env) [username]@CS:~$ cd ~/cvxpy
  11. (tutorial-env) [username]@CS:~/cvxpy$ pip install -e .
  12. Obtaining file:///home/[username]/cvxpy
  13.   Installing build dependencies ... done
  14.   Getting requirements to build wheel ... done
  15.     Preparing wheel metadata ... done
  16. Requirement already satisfied: numpy>=1.15 in /home/[username]/tutorial-env/lib/python3.6/site-packages (from cvxpy==1.1.7) (1.19.4)
  17. Requirement already satisfied: osqp>=0.4.1 in /home/[username]/tutorial-env/lib/python3.6/site-packages (from cvxpy==1.1.7) (0.6.1)
  18. Requirement already satisfied: ecos>=2 in /home/[username]/tutorial-env/lib/python3.6/site-packages (from cvxpy==1.1.7) (2.0.7.post1)
  19. Collecting scs>=1.1.6
  20.   Using cached scs-2.1.2.tar.gz (3.5 MB)
  21. Requirement already satisfied: scipy>=1.1.0 in /home/[username]/tutorial-env/lib/python3.6/site-packages (from cvxpy==1.1.7) (1.5.4)
  22. Requirement already satisfied: future in /home/[username]/tutorial-env/lib/python3.6/site-packages (from osqp>=0.4.1->cvxpy==1.1.7) (0.18.2)
  23. Building wheels for collected packages: scs
  24.   Building wheel for scs (setup.py) ... error
  25.   ERROR: Command errored out with exit status 1:
  26.    command: /home/[username]/tutorial-env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2yhxymp8/scs/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2yhxymp8/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-xrktv9lx
  27.        cwd: /tmp/pip-install-2yhxymp8/scs/
  28.   Complete output (115 lines):
  29.   Namespace(blas64=False, extraverbose=False, float32=False, gpu=False, int32=False, scs=False)
  30.   running bdist_wheel
  31.   running build
  32.   running build_py
  33.   creating build
  34.   creating build/lib.linux-x86_64-3.6
  35.   creating build/lib.linux-x86_64-3.6/scs
  36.   copying src/__init__.py -> build/lib.linux-x86_64-3.6/scs
  37.   running build_ext
  38.   blas_mkl_info:
  39.     NOT AVAILABLE
  40.   blis_info:
  41.     NOT AVAILABLE
  42.   openblas_info:
  43.       libraries = ['openblas', 'openblas']
  44.       library_dirs = ['/usr/local/lib']
  45.       language = c
  46.       define_macros = [('HAVE_CBLAS', None)]
  47.   blas_opt_info:
  48.       libraries = ['openblas', 'openblas']
  49.       library_dirs = ['/usr/local/lib']
  50.       language = c
  51.       define_macros = [('HAVE_CBLAS', None)]
  52.   lapack_mkl_info:
  53.     NOT AVAILABLE
  54.   openblas_lapack_info:
  55.       libraries = ['openblas', 'openblas']
  56.       library_dirs = ['/usr/local/lib']
  57.       language = c
  58.       define_macros = [('HAVE_CBLAS', None)]
  59.   lapack_opt_info:
  60.       libraries = ['openblas', 'openblas']
  61.       library_dirs = ['/usr/local/lib']
  62.       language = c
  63.       define_macros = [('HAVE_CBLAS', None)]
  64.   {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  65.   {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  66.   src/scsmodule.c:1: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/include/linalg.h:9,
  70.                    from scs/src/linalg.c:1:
  71.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  72.   compilation terminated.
  73.   In file included from scs/include/cones.h:8:0,
  74.                    from scs/src/cones.c:1:
  75.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  76.   compilation terminated.
  77.   In file included from scs/linsys/amatrix.h:8:0,
  78.                    from scs/linsys/amatrix.c:2:
  79.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  80.   compilation terminated.
  81.   In file included from scs/include/aa.h:11:0,
  82.                    from scs/src/aa.c:1:
  83.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  84.   compilation terminated.
  85.   In file included from scs/include/scs.h:9:0,
  86.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  87.                    from scs/linsys/external/amd/amd.h:46,
  88.                    from scs/linsys/external/amd/amd_internal.h:154,
  89.                    from scs/linsys/external/amd/amd_valid.c:36:
  90.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  91.   compilation terminated.
  92.   In file included from scs/include/scs.h:9:0,
  93.                    from scs/src/scs.c:1:
  94.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  95.   compilation terminated.
  96.   In file included from scs/include/scs.h:9:0,
  97.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  98.                    from scs/linsys/external/amd/amd.h:46,
  99.                    from scs/linsys/external/amd/amd_internal.h:154,
  100.                    from scs/linsys/external/amd/amd_order.c:15:
  101.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  102.   compilation terminated.
  103.   In file included from scs/include/scs.h:9:0,
  104.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  105.                    from scs/linsys/external/amd/amd.h:46,
  106.                    from scs/linsys/external/amd/amd_internal.h:154,
  107.                    from scs/linsys/external/amd/amd_aat.c:18:
  108.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  109.   compilation terminated.
  110.   In file included from scs/include/scs.h:9:0,
  111.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  112.                    from scs/linsys/external/amd/amd.h:46,
  113.                    from scs/linsys/external/amd/amd_internal.h:154,
  114.                    from scs/linsys/external/amd/amd_dump.c:16:
  115.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  116.   compilation terminated.
  117.   In file included from scs/include/scs.h:9:0,
  118.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  119.                    from scs/linsys/external/amd/amd.h:46,
  120.                    from scs/linsys/external/amd/amd_internal.h:154,
  121.                    from scs/linsys/external/amd/amd_defaults.c:15:
  122.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  123.   compilation terminated.
  124.   In file included from scs/include/scs.h:9:0,
  125.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  126.                    from scs/linsys/external/amd/amd.h:46,
  127.                    from scs/linsys/external/amd/amd_internal.h:154,
  128.                    from scs/linsys/external/amd/amd_info.c:15:
  129.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  130.   compilation terminated.
  131.   In file included from scs/linsys/external/qdldl/qdldl_types.h:4:0,
  132.                    from scs/linsys/external/qdldl/qdldl.h:5,
  133.                    from scs/linsys/external/qdldl/qdldl.c:1:
  134.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  135.   compilation terminated.
  136.   In file included from scs/include/scs.h:9:0,
  137.                    from scs/linsys/external/amd/SuiteSparse_config.h:47,
  138.                    from scs/linsys/external/amd/amd.h:46,
  139.                    from scs/linsys/external/amd/amd_internal.h:154,
  140.                    from scs/linsys/external/amd/amd_postorder.c:13:
  141.   scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  142.   compilation terminated.
  143.   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
  144.   ----------------------------------------
  145.   ERROR: Failed building wheel for scs
  146.   Running setup.py clean for scs
  147. Failed to build scs
  148. Installing collected packages: scs, cvxpy
  149.     Running setup.py install for scs ... error
  150.     ERROR: Command errored out with exit status 1:
  151.      command: /home/[username]/tutorial-env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2yhxymp8/scs/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2yhxymp8/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-yr_7wj14/install-record.txt --single-version-externally-managed --compile --install-headers /home/[username]/tutorial-env/include/site/python3.6/scs
  152.          cwd: /tmp/pip-install-2yhxymp8/scs/
  153.     Complete output (115 lines):
  154.     Namespace(blas64=False, extraverbose=False, float32=False, gpu=False, int32=False, scs=False)
  155.     running install
  156.     running build
  157.     running build_py
  158.     creating build
  159.     creating build/lib.linux-x86_64-3.6
  160.     creating build/lib.linux-x86_64-3.6/scs
  161.     copying src/__init__.py -> build/lib.linux-x86_64-3.6/scs
  162.     running build_ext
  163.     blas_mkl_info:
  164.       NOT AVAILABLE
  165.     blis_info:
  166.       NOT AVAILABLE
  167.     openblas_info:
  168.         libraries = ['openblas', 'openblas']
  169.         library_dirs = ['/usr/local/lib']
  170.         language = c
  171.         define_macros = [('HAVE_CBLAS', None)]
  172.     blas_opt_info:
  173.         libraries = ['openblas', 'openblas']
  174.         library_dirs = ['/usr/local/lib']
  175.         language = c
  176.         define_macros = [('HAVE_CBLAS', None)]
  177.     lapack_mkl_info:
  178.       NOT AVAILABLE
  179.     openblas_lapack_info:
  180.         libraries = ['openblas', 'openblas']
  181.         library_dirs = ['/usr/local/lib']
  182.         language = c
  183.         define_macros = [('HAVE_CBLAS', None)]
  184.     lapack_opt_info:
  185.         libraries = ['openblas', 'openblas']
  186.         library_dirs = ['/usr/local/lib']
  187.         language = c
  188.         define_macros = [('HAVE_CBLAS', None)]
  189.     {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  190.     {'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  191.     src/scsmodule.c:1:20: fatal error: Python.h: No such file or directory
  192.     compilation terminated.
  193.     In file included from scs/include/cones.h:8:0,
  194.                      from scs/src/cones.c:1:
  195.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  196.     compilation terminated.
  197.     In file included from scs/include/scs.h:9:0,
  198.                      from scs/include/linalg.h:9,
  199.                      from scs/src/linalg.c:1:
  200.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  201.     compilation terminated.
  202.     In file included from scs/linsys/amatrix.h:8:0,
  203.                      from scs/linsys/amatrix.c:2:
  204.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  205.     compilation terminated.
  206.     In file included from scs/include/aa.h:11:0,
  207.                      from scs/src/aa.c:1:
  208.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  209.     compilation terminated.
  210.     In file included from scs/include/scs.h:9:0,
  211.                      from scs/src/scs.c:1:
  212.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  213.     compilation terminated.
  214.     In file included from scs/include/scs.h:9:0,
  215.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  216.                      from scs/linsys/external/amd/amd.h:46,
  217.                      from scs/linsys/external/amd/amd_internal.h:154,
  218.                      from scs/linsys/external/amd/amd_valid.c:36:
  219.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  220.     compilation terminated.
  221.     In file included from scs/include/scs.h:9:0,
  222.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  223.                      from scs/linsys/external/amd/amd.h:46,
  224.                      from scs/linsys/external/amd/amd_internal.h:154,
  225.                      from scs/linsys/external/amd/amd_aat.c:18:
  226.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  227.     compilation terminated.
  228.     In file included from scs/include/scs.h:9:0,
  229.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  230.                      from scs/linsys/external/amd/amd.h:46,
  231.                      from scs/linsys/external/amd/amd_internal.h:154,
  232.                      from scs/linsys/external/amd/amd_order.c:15:
  233.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  234.     compilation terminated.
  235.     In file included from scs/include/scs.h:9:0,
  236.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  237.                      from scs/linsys/external/amd/amd.h:46,
  238.                      from scs/linsys/external/amd/amd_internal.h:154,
  239.                      from scs/linsys/external/amd/amd_dump.c:16:
  240.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  241.     compilation terminated.
  242.     In file included from scs/include/scs.h:9:0,
  243.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  244.                      from scs/linsys/external/amd/amd.h:46,
  245.                      from scs/linsys/external/amd/amd_internal.h:154,
  246.                      from scs/linsys/external/amd/amd_defaults.c:15:
  247.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  248.     compilation terminated.
  249.     In file included from scs/include/scs.h:9:0,
  250.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  251.                      from scs/linsys/external/amd/amd.h:46,
  252.                      from scs/linsys/external/amd/amd_internal.h:154,
  253.                      from scs/linsys/external/amd/amd_postorder.c:13:
  254.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  255.     compilation terminated.
  256.     In file included from scs/linsys/external/qdldl/qdldl_types.h:4:0,
  257.                      from scs/linsys/external/qdldl/qdldl.h:5,
  258.                      from scs/linsys/external/qdldl/qdldl.c:1:
  259.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  260.     compilation terminated.
  261.     In file included from scs/include/scs.h:9:0,
  262.                      from scs/linsys/external/amd/SuiteSparse_config.h:47,
  263.                      from scs/linsys/external/amd/amd.h:46,
  264.                      from scs/linsys/external/amd/amd_internal.h:154,
  265.                      from scs/linsys/external/amd/amd_info.c:15:
  266.     scs/include/glbopts.h:52:20: fatal error: Python.h: No such file or directory
  267.     compilation terminated.
  268.     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
  269.     ----------------------------------------
  270. 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-2yhxymp8/scs/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2yhxymp8/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-yr_7wj14/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.
  271.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement