cvxgrp / ncvx

GNU General Public License v3.0
74 stars 17 forks source link

Can't install SCSPROX #21

Open rodfloripa opened 3 years ago

rodfloripa commented 3 years ago

pip install scsprox doesn't work

I tried to install from source( https://github.com/bettbra/scsprox ) and it doesn't work too, I get the following error:

python setup.py install running install running bdist_egg running egg_info writing scsprox.egg-info/PKG-INFO writing dependency_links to scsprox.egg-info/dependency_links.txt writing requirements to scsprox.egg-info/requires.txt writing top-level names to scsprox.egg-info/top_level.txt reading manifest file 'scsprox.egg-info/SOURCES.txt' writing manifest file 'scsprox.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/scsprox copying build/lib/scsprox/scsprox.py -> build/bdist.linux-x86_64/egg/scsprox copying build/lib/scsprox/examples.py -> build/bdist.linux-x86_64/egg/scsprox copying build/lib/scsprox/verify.py -> build/bdist.linux-x86_64/egg/scsprox copying build/lib/scsprox/prox_obj.py -> build/bdist.linux-x86_64/egg/scsprox creating build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/test_top_level.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/test_location.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/test_prox_obj.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/test_memory.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/test_prox_info.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/test_sol_extract.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/init.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/test/test_settings.py -> build/bdist.linux-x86_64/egg/scsprox/test copying build/lib/scsprox/scs_mapping.py -> build/bdist.linux-x86_64/egg/scsprox copying build/lib/scsprox/init.py -> build/bdist.linux-x86_64/egg/scsprox copying build/lib/scsprox/timer.py -> build/bdist.linux-x86_64/egg/scsprox byte-compiling build/bdist.linux-x86_64/egg/scsprox/scsprox.py to scsprox.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/examples.py to examples.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/verify.py to verify.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/prox_obj.py to prox_obj.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/test_top_level.py to test_top_level.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/test_location.py to test_location.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/test_prox_obj.py to test_prox_obj.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/test_memory.py to test_memory.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/test_prox_info.py to test_prox_info.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/test_sol_extract.py to test_sol_extract.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/init.py to init.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/test/test_settings.py to test_settings.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/scs_mapping.py to scs_mapping.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/init.py to init.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/scsprox/timer.py to timer.cpython-37.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying scsprox.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying scsprox.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying scsprox.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying scsprox.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO copying scsprox.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying scsprox.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO creating 'dist/scsprox-0.2.0-py3.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing scsprox-0.2.0-py3.7.egg removing '/usr/local/lib/python3.7/site-packages/scsprox-0.2.0-py3.7.egg' (and everything under it) creating /usr/local/lib/python3.7/site-packages/scsprox-0.2.0-py3.7.egg Extracting scsprox-0.2.0-py3.7.egg to /usr/local/lib/python3.7/site-packages scsprox 0.2.0 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.7/site-packages/scsprox-0.2.0-py3.7.egg Processing dependencies for scsprox==0.2.0 Searching for cyscs Reading https://pypi.org/simple/cyscs/ Downloading https://files.pythonhosted.org/packages/58/46/01b1bdd38d94f418c85914c2d373c38b143f4271ad91c923256a2c336224/cyscs-0.1.tar.gz#sha256=a0aec7da3f8afaf92665b202fcd52ce7fb43ecf9e55b3fbe87f8ff5c002fa581 Best match: cyscs 0.1 Processing cyscs-0.1.tar.gz Writing /tmp/easy_install-dbpyas6b/cyscs-0.1/setup.cfg Running cyscs-0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dbpyas6b/cyscs-0.1/egg-dist-tmp-f5r8rwzm Trying 'lapack_opt' /usr/local/lib/python3.7/site-packages/numpy/distutils/system_info.py:1989: UserWarning: Optimized (vendor) Blas libraries are not found. Falls back to netlib Blas library which has worse performance. A better performance should be easily gained by switching Blas library. if self._calc_info(blas): the resulting info is: {'libraries': ['lapack', 'lapack', 'blas', 'blas'], 'library_dirs': ['/usr/lib/x86_64-linux-gnu'], 'language': 'c', 'define_macros': [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None), ('LAPACK_LIB_FOUND', None)], 'include_dirs': ['/usr/local/include', '/usr/include']} error: Setup script exited with error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYTHON -DDLONG -DCTRLC=1 -DCOPYAMATRIX -DNO_ATLAS_INFO=1 -DHAVE_CBLAS -DLAPACK_LIB_FOUND -Ic/scs/ -Ic/scs/include -Ic/scs/linsys -I/usr/local/include -I/usr/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -Ic/scs/linsys/direct/ -Ic/scs/linsys/direct/external/ -I/usr/local/include/python3.7m -c cyscs/_direct.c -o build/temp.linux-x86_64-3.7/cyscs/_direct.o -O3" failed with exit status 1

SteveDiamond commented 2 years ago

This is resolved. You cannot use pip install scsprox, and the readme now says to install from source.

ajfriend commented 7 months ago

Just saw this. If you guys want, I can hand over maintainer status on https://pypi.org/project/scsprox/ so that folks can pip install.

SteveDiamond commented 7 months ago

Just saw this. If you guys want, I can hand over maintainer status on https://pypi.org/project/scsprox/ so that folks can pip install.

Sure, could you make me a maintainer?

ajfriend commented 7 months ago

Done!