cvxgrp / dccp

A CVXPY extension for convex-concave programming
123 stars 31 forks source link

Install error: use_2to3 is invalid, and deprecation warning #88

Closed rebeccamccabe closed 1 year ago

rebeccamccabe commented 1 year ago

I have python 3.11.6 and setuptools 68.2.2 (what I got from doing conda install cvxpy in a fresh environment). I am on Windows. I cloned dccp and got the following error when running setup.py:

error in dccp setup command: use_2to3 is invalid.

Then I commented out the use_2to3 line in setup.py and ran it again. This time, it ran to completion, but produced the following deprecation warning:

running install
C:\Users\rgm222\Anaconda3\envs\cvxpy_env\Lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
C:\Users\rgm222\Anaconda3\envs\cvxpy_env\Lib\site-packages\setuptools\_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
running bdist_egg
running egg_info
writing dccp.egg-info\PKG-INFO
writing dependency_links to dccp.egg-info\dependency_links.txt
writing requirements to dccp.egg-info\requires.txt
writing top-level names to dccp.egg-info\top_level.txt
reading manifest file 'dccp.egg-info\SOURCES.txt'
writing manifest file 'dccp.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\dccp
copying build\lib\dccp\constraint.py -> build\bdist.win-amd64\egg\dccp
copying build\lib\dccp\linearize.py -> build\bdist.win-amd64\egg\dccp
copying build\lib\dccp\objective.py -> build\bdist.win-amd64\egg\dccp
copying build\lib\dccp\problem.py -> build\bdist.win-amd64\egg\dccp
copying build\lib\dccp\__init__.py -> build\bdist.win-amd64\egg\dccp
byte-compiling build\bdist.win-amd64\egg\dccp\constraint.py to constraint.cpython-311.pyc
byte-compiling build\bdist.win-amd64\egg\dccp\linearize.py to linearize.cpython-311.pyc
byte-compiling build\bdist.win-amd64\egg\dccp\objective.py to objective.cpython-311.pyc
byte-compiling build\bdist.win-amd64\egg\dccp\problem.py to problem.cpython-311.pyc
byte-compiling build\bdist.win-amd64\egg\dccp\__init__.py to __init__.cpython-311.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying dccp.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying dccp.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying dccp.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying dccp.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying dccp.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying dccp.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
creating 'dist\dccp-1.0.4-py3.11.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing dccp-1.0.4-py3.11.egg
removing 'c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages\dccp-1.0.4-py3.11.egg' (and everything under it)
creating c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages\dccp-1.0.4-py3.11.egg
Extracting dccp-1.0.4-py3.11.egg to c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Adding dccp 1.0.4 to easy-install.pth file

Installed c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages\dccp-1.0.4-py3.11.egg
Processing dependencies for dccp==1.0.4
Searching for pybind11
Reading https://pypi.org/simple/pybind11/
Downloading https://files.pythonhosted.org/packages/06/55/9f73c32dda93fa4f539fafa268f9504e83c489f460c380371d94296126cd/pybind11-2.11.1-py3-none-any.whl#sha256=33cdd02a6453380dd71cc70357ce388ad1ee8d32bd0e38fc22b273d050aa29b3
Best match: pybind11 2.11.1
Processing pybind11-2.11.1-py3-none-any.whl
Installing pybind11-2.11.1-py3-none-any.whl to c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Adding pybind11 2.11.1 to easy-install.pth file
Installing pybind11-config-script.py script to C:\Users\rgm222\Anaconda3\envs\cvxpy_env\Scripts
Installing pybind11-config.exe script to C:\Users\rgm222\Anaconda3\envs\cvxpy_env\Scripts

Installed c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages\pybind11-2.11.1-py3.11.egg
Searching for cvxpy==1.4.1
Best match: cvxpy 1.4.1
Adding cvxpy 1.4.1 to easy-install.pth file
detected new path './pybind11-2.11.1-py3.11.egg'

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Searching for scipy==1.11.4
Best match: scipy 1.11.4
Adding scipy 1.11.4 to easy-install.pth file

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Searching for numpy==1.26.2
Best match: numpy 1.26.2
Adding numpy 1.26.2 to easy-install.pth file
Installing f2py-script.py script to C:\Users\rgm222\Anaconda3\envs\cvxpy_env\Scripts
Installing f2py.exe script to C:\Users\rgm222\Anaconda3\envs\cvxpy_env\Scripts

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Searching for scs==3.2.3
Best match: scs 3.2.3
Adding scs 3.2.3 to easy-install.pth file

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Searching for clarabel==0.6.0
Best match: clarabel 0.6.0
Adding clarabel 0.6.0 to easy-install.pth file

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Searching for ecos==2.0.11
Best match: ecos 2.0.11
Adding ecos 2.0.11 to easy-install.pth file

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Searching for osqp==0.6.3
Best match: osqp 0.6.3
Adding osqp 0.6.3 to easy-install.pth file

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Searching for qdldl==0.1.5.post2
Best match: qdldl 0.1.5.post2
Adding qdldl 0.1.5.post2 to easy-install.pth file

Using c:\users\rgm222\anaconda3\envs\cvxpy_env\lib\site-packages
Finished processing dependencies for dccp==1.0.4
SteveDiamond commented 1 year ago

Resolved via #83