{"action":"created","issue":{"url":"https://api.github.com/repos/cvxgrp/cvxpy/issues/507","repository_url":"https://api.github.com/repos/cvxgrp/cvxpy","labels_url":"https://api.github.com/repos/cvxgrp/cvxpy/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/cvxgrp/cvxpy/issues/507/comments","events_url":"https://api.github.com/repos/cvxgrp/cvxpy/issues/507/events","html_url":"https://github.com/cvxgrp/cvxpy/issues/507","id":328767821,"node_id":"MDU6SXNzdWUzMjg3Njc4MjE=","number":507,"title":"Error when solving: TypeError: in method 'IntVector_push_back'","user":{"login":"wrossmorrow","id":22221609,"node_id":"MDQ6VXNlcjIyMjIxNjA5","avatar_url":"https://avatars0.githubusercontent.com/u/22221609?v=4","gravatar_id":"","url":"https://api.github.com/users/wrossmorrow","html_url":"https://github.com/wrossmorrow","followers_url":"https://api.github.com/users/wrossmorrow/followers","following_url":"https://api.github.com/users/wrossmorrow/following{/other_user}","gists_url":"https://api.github.com/users/wrossmorrow/gists{/gist_id}","starred_url":"https://api.github.com/users/wrossmorrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrossmorrow/subscriptions","organizations_url":"https://api.github.com/users/wrossmorrow/orgs","repos_url":"https://api.github.com/users/wrossmorrow/repos","events_url":"https://api.github.com/users/wrossmorrow/events{/privacy}","received_events_url":"https://api.github.com/users/wrossmorrow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-02T18:46:46Z","updated_at":"2018-06-02T21:08:23Z","closed_at":"2018-06-02T21:08:23Z","author_association":"NONE","body":"I am getting an error \r\n\r\n    TypeError: in method 'IntVector_push_back', argument 2 of type 'std::vector< int >::value_type'\r\n\r\nwhen trying to run `CVXPy` on a relatively simple problem. I saw at least one thread from the past about this error in the Google Group, but no information there about what it is or (really) how to fix it. \r\n\r\nI've installed with both `conda` and `pip`. Here is the result of `conda` list: \r\n\r\n    $conda list | sed -n '/cvx/p'\r\n    cvxcanon                  0.1.1            py36ha6ddfb2_0  \r\n    cvxpy                     0.4.9                    py36_0    cvxgrp\r\n    ecos                      2.0.5            py36hf9b3073_0    cvxgrp\r\n    ...\r\n\r\nMy problem is basically \r\n\r\n    def objective_fcn( A , YX , p , Lambda ):\r\n        return sum( cp.logistic( YX * p ) ) + Lambda * cp.norm( p[A:] , 1 )\r\n    p = cp.Variable( Nvars )\r\n    constraints = [ S * p == zeros ]\r\n    Lambda = cp.Parameter( sign=\"positive\" )\r\n    prob = cp.Problem( cp.Minimize( objective_fcn(A,YX,p,Lambda) ) , constraints )\r\n\r\nwhere `YX` and `S` are `scipy.sparse.coo_matrix` objects. \r\n\r\nThis has worked in the past. It actually worked right away a couple weeks ago. I am revisiting my problem after cleaning the data a bit and generalizing the \"wrapper\" code around my problem, and getting this error. \r\n\r\nHere is the full error: \r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"idLogit.py\", line 232, in <module>\r\n    actual_run( L )\r\n  File \"idLogit.py\", line 222, in actual_run\r\n    betas , delta , loglk , success = trace_idLogit( I , A , N , inds , LR , y )\r\n  File \"idLogit.py\", line 166, in trace_idLogit\r\n    prob.solve( warm_start = True )\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/cvxpy/problems/problem.py\", line 209, in solve\r\n    return self._solve(*args, **kwargs)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/cvxpy/problems/problem.py\", line 331, in _solve\r\n    kwargs)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/cvxpy/problems/solvers/ecos_intf.py\", line 118, in solve\r\n    data = self.get_problem_data(objective, constraints, cached_data)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/cvxpy/problems/solvers/solver.py\", line 246, in get_problem_data\r\n    cached_data)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/cvxpy/problems/solvers/solver.py\", line 224, in get_matrix_data\r\n    self.nonlin_constr())\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/cvxpy/problems/problem_data/matrix_data.py\", line 90, in __init__\r\n    self._lin_matrix(self.ineq_cache, caching=True)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/cvxpy/problems/problem_data/matrix_data.py\", line 181, in _lin_matrix\r\n    constr_offsets\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/canonInterface.py\", line 52, in get_problem_matrix\r\n    tree = build_lin_op_tree(lin, tmp)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/canonInterface.py\", line 229, in build_lin_op_tree\r\n    set_slice_data(linC, linPy)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/canonInterface.py\", line 151, in set_slice_data\r\n    vec.push_back(var)\r\n  File \"/Users/morrowwr/anaconda/lib/python3.6/site-packages/CVXcanon.py\", line 426, in push_back\r\n    return _CVXcanon.IntVector_push_back(self, x)\r\nTypeError: in method 'IntVector_push_back', argument 2 of type 'std::vector< int >::value_type'\r\n```"},"comment":{"url":"https://api.github.com/repos/cvxgrp/cvxpy/issues/comments/394117229","html_url":"https://github.com/cvxgrp/cvxpy/issues/507#issuecomment-394117229","issue_url":"https://api.github.com/repos/cvxgrp/cvxpy/issues/507","id":394117229,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDExNzIyOQ==","user":{"login":"SteveDiamond","id":520736,"node_id":"MDQ6VXNlcjUyMDczNg==","avatar_url":"https://avatars1.githubusercontent.com/u/520736?v=4","gravatar_id":"","url":"https://api.github.com/users/SteveDiamond","html_url":"https://github.com/SteveDiamond","followers_url":"https://api.github.com/users/SteveDiamond/followers","following_url":"https://api.github.com/users/SteveDiamond/following{/other_user}","gists_url":"https://api.github.com/users/SteveDiamond/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveDiamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveDiamond/subscriptions","organizations_url":"https://api.github.com/users/SteveDiamond/orgs","repos_url":"https://api.github.com/users/SteveDiamond/repos","events_url":"https://api.github.com/users/SteveDiamond/events{/privacy}","received_events_url":"https://api.github.com/users/SteveDiamond/received_events","type":"User","site_admin":false},"created_at":"2018-06-02T21:08:23Z","updated_at":"2018-06-02T21:08:23Z","author_association":"MEMBER","body":"We only support CVXPY 1.0 and later now. For any older version of CVXPY, you'll need to solve your own problems. Sorry to be harsh but I don't want a Python 2 vs 3 situation!"}}
{"actor":{"display_login":"SteveDiamond"}}