{"action":"created","issue":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/386","labels_url":"https://api.github.com/repos/convexopt/gpkit/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/convexopt/gpkit/issues/386/comments","events_url":"https://api.github.com/repos/convexopt/gpkit/issues/386/events","html_url":"https://github.com/convexopt/gpkit/issues/386","id":104723894,"number":386,"title":"Tests fail on fresh install","user":{"login":"cfrontin","id":14077848,"avatar_url":"https://avatars.githubusercontent.com/u/14077848?v=3","gravatar_id":"","url":"https://api.github.com/users/cfrontin","html_url":"https://github.com/cfrontin","followers_url":"https://api.github.com/users/cfrontin/followers","following_url":"https://api.github.com/users/cfrontin/following{/other_user}","gists_url":"https://api.github.com/users/cfrontin/gists{/gist_id}","starred_url":"https://api.github.com/users/cfrontin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfrontin/subscriptions","organizations_url":"https://api.github.com/users/cfrontin/orgs","repos_url":"https://api.github.com/users/cfrontin/repos","events_url":"https://api.github.com/users/cfrontin/events{/privacy}","received_events_url":"https://api.github.com/users/cfrontin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-03T15:37:33Z","updated_at":"2015-09-03T17:42:10Z","closed_at":null,"body":"After following installation instructions, selected tests fail. Error traceback indicates on all errors a problem with operand assignments:\r\n\r\n'''\r\nCorys-MacBook-Pro:Graduate Research coryfrontin$ python -c \"import gpkit.tests; gpkit.tests.run()\"\r\ntest_composite_objective (gpkit.tests.t_tools.TestMathModels) ... ERROR\r\ntest_te_exp_minus1 (gpkit.tests.t_tools.TestMathModels)\r\nTest Taylor expansion of e^x - 1 ... ERROR\r\ntest_zero_lower_unbounded (gpkit.tests.t_tools.TestMathModels) ... ok\r\ntest_basic (gpkit.tests.t_sub.TestNomialSubs)\r\nBasic substitution, symbolic ... ok\r\ntest_dimensionless_units (gpkit.tests.t_sub.TestNomialSubs) ... ok\r\ntest_numeric (gpkit.tests.t_sub.TestNomialSubs)\r\nBasic substitution of numeric value ... ok\r\ntest_scalar_units (gpkit.tests.t_sub.TestNomialSubs) ... ok\r\ntest_string_mutation (gpkit.tests.t_sub.TestNomialSubs) ... ok\r\ntest_variable (gpkit.tests.t_sub.TestNomialSubs)\r\nTest special single-argument substitution for Variable ... ok\r\ntest_vector (gpkit.tests.t_sub.TestNomialSubs) ... ERROR\r\ntest_vector_init (gpkit.tests.t_sub.TestGPSubs) ... ok\r\ntest_vector_sweep (gpkit.tests.t_sub.TestGPSubs) ... ok\r\ntest_dict_key (gpkit.tests.t_vars.TestVarKey)\r\nmake sure variables are well-behaved dict keys ... ok\r\ntest_eq_neq (gpkit.tests.t_vars.TestVarKey)\r\nTest boolean equality operators ... ok\r\ntest_init (gpkit.tests.t_vars.TestVarKey)\r\nTest VarKey initialization ... ok\r\ntest_repr (gpkit.tests.t_vars.TestVarKey)\r\nTest __repr__ method ... ok\r\ntest_units_attr (gpkit.tests.t_vars.TestVarKey)\r\nMake sure VarKey objects have a units attribute ... ok\r\ntest_init (gpkit.tests.t_vars.TestVariable)\r\nTest Variable initialization ... ok\r\ntest_value (gpkit.tests.t_vars.TestVariable)\r\nDetailed tests for value kwarg of __init__ ... ok\r\ntest_init (gpkit.tests.t_vars.TestVectorVariable)\r\nTest VectorVariable initialization ... ERROR\r\ntest_is_vector_variable (gpkit.tests.t_vars.TestArrayVariable) ... ok\r\ntest_str (gpkit.tests.t_vars.TestArrayVariable)\r\nMake sure string looks something like a numpy array ... ok\r\ntest_constraint_gen (gpkit.tests.t_nomials.TestPosynomial)\r\nTest creation of Constraints via operator overloading ... ok\r\ntest_diff (gpkit.tests.t_nomials.TestPosynomial)\r\nTest differentiation (!!) ... ok\r\ntest_init (gpkit.tests.t_nomials.TestPosynomial)\r\nTest Posynomial construction ... ok\r\ntest_integer_division (gpkit.tests.t_nomials.TestPosynomial)\r\nMake sure division by integer doesn't use Python integer division ... ok\r\ntest_monoapprox (gpkit.tests.t_nomials.TestPosynomial)\r\nTest monomial approximation ... ok\r\ntest_posyposy_mult (gpkit.tests.t_nomials.TestPosynomial)\r\nTest multiplication of Posynomial with Posynomial ... ok\r\ntest_simplification (gpkit.tests.t_nomials.TestPosynomial)\r\nMake sure like monomial terms get automatically combined ... ok\r\ntest_div (gpkit.tests.t_nomials.TestMonomial)\r\nTest Monomial division ... ok\r\ntest_eq_ne (gpkit.tests.t_nomials.TestMonomial)\r\nTest equality and inequality comparators ... ok\r\ntest_init (gpkit.tests.t_nomials.TestMonomial)\r\nTest multiple ways to create a Monomial ... ok\r\ntest_latex (gpkit.tests.t_nomials.TestMonomial)\r\nTest latex string creation ... ok\r\ntest_mul (gpkit.tests.t_nomials.TestMonomial)\r\nTest monomial multiplication ... ok\r\ntest_numerical_precision (gpkit.tests.t_nomials.TestMonomial)\r\nnot sure what to test here, placeholder for now ... ok\r\ntest_pow (gpkit.tests.t_nomials.TestMonomial)\r\nTest Monomial exponentiation ... ok\r\ntest_repr (gpkit.tests.t_nomials.TestMonomial)\r\nSimple tests for __repr__, which prints more than str ... ok\r\ntest_str_with_units (gpkit.tests.t_nomials.TestMonomial)\r\nMake sure __str__() works when units are involved ... ok\r\ntest_init (gpkit.tests.t_nomials.TestSignomial)\r\nTest Signomial construction ... ok\r\ntest_additive_scalar (gpkit.tests.t_constraints.TestConstraint)\r\nMake sure additive scalars simplify properly ... ok\r\ntest_additive_scalar_gt1 (gpkit.tests.t_constraints.TestConstraint)\r\n1 can't be greater than (1 + something positive) ... ok\r\ntest_init (gpkit.tests.t_constraints.TestConstraint)\r\nTest Constraint __init__ ... ok\r\ntest_oper_overload (gpkit.tests.t_constraints.TestConstraint)\r\nTest Constraint initialization by operator overloading ... ok\r\ntest_inheritance (gpkit.tests.t_constraints.TestMonoEQConstraint)\r\nMake sure MonoEQConstraint inherits from the right things ... ok\r\ntest_init (gpkit.tests.t_constraints.TestMonoEQConstraint)\r\nTest initialization via both operator overloading and __init__ ... ok\r\ntest_non_monomial (gpkit.tests.t_constraints.TestMonoEQConstraint)\r\nTry to initialize a MonoEQConstraint with non-monomial args ... ok\r\ntest_array_mult (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_constraint_gen (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_elementwise_mult (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_empty (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_getitem (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_left_right (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_ndim (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_outer (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_prod (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_shape (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_substition (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_sum (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_units (gpkit.tests.t_posy_array.TestPosyArray) ... ok\r\ntest_additive_constants (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_constants_in_objective_1 (gpkit.tests.t_model.TestGP_cvxopt)\r\nIssue 296 ... ok\r\ntest_constants_in_objective_2 (gpkit.tests.t_model.TestGP_cvxopt)\r\nIssue 296 ... ok\r\ntest_feasibility_gp_ (gpkit.tests.t_model.TestGP_cvxopt) ... ERROR\r\ntest_mdd_example (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_simple_united_gp (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_simpleflight (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_singular (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_terminating_constant_ (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_trivial_gp (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_trivial_vector_gp (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_zeroing (gpkit.tests.t_model.TestGP_cvxopt) ... ok\r\ntest_issue180 (gpkit.tests.t_model.TestSP_cvxopt) ... ok\r\ntest_relaxation (gpkit.tests.t_model.TestSP_cvxopt) ... ok\r\ntest_signomials_not_allowed_in_objective (gpkit.tests.t_model.TestSP_cvxopt) ... ok\r\ntest_small_signomial (gpkit.tests.t_model.TestSP_cvxopt) ... ok\r\ntest_sp_initial_guess_sub (gpkit.tests.t_model.TestSP_cvxopt) ... ok\r\ntest_trivial_sp (gpkit.tests.t_model.TestSP_cvxopt) ... ok\r\ntest_trivial_sp2 (gpkit.tests.t_model.TestSP_cvxopt) ... ok\r\ntest_call (gpkit.tests.t_solution_array.TestSolutionArray) ... ok\r\ntest_call_time (gpkit.tests.t_solution_array.TestSolutionArray) ... ok\r\ntest_call_vector (gpkit.tests.t_solution_array.TestSolutionArray) ... ok\r\ntest_subinto_senssubinto (gpkit.tests.t_solution_array.TestSolutionArray) ... ok\r\ntest_table (gpkit.tests.t_solution_array.TestSolutionArray) ... ok\r\ntest_nan_printing (gpkit.tests.t_solution_array.TestResultsTable)\r\nTest that solution prints when it contains nans ... ok\r\ntest_init (gpkit.tests.t_small.TestHashVector)\r\nMake sure HashVector acts like a dict ... ok\r\ntest_mul_add (gpkit.tests.t_small.TestHashVector)\r\nTest multiplication and addition ... ok\r\ntest_neg (gpkit.tests.t_small.TestHashVector)\r\nTest negation ... ok\r\ntest_pow (gpkit.tests.t_small.TestHashVector)\r\nTest exponentiation ... ok\r\n\r\n======================================================================\r\nERROR: test_composite_objective (gpkit.tests.t_tools.TestMathModels)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_tools.py\", line 17, in test_composite_objective\r\n    obj = composite_objective(L+W, W**-1 * L**-3, sub={L: 1, W: 1})\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tools.py\", line 70, in composite_objective\r\n    w_s = normalization[-1]*PosyArray(w_s)*objectives[-1]\r\nTypeError: unsupported operand type(s) for *: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_te_exp_minus1 (gpkit.tests.t_tools.TestMathModels)\r\nTest Taylor expansion of e^x - 1\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_tools.py\", line 48, in test_te_exp_minus1\r\n    self.assertEqual(te_exp_minus1(y, 1), y)\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tools.py\", line 40, in te_exp_minus1\r\n    res += posy**i / factorial_denom\r\nTypeError: unsupported operand type(s) for +=: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_vector (gpkit.tests.t_sub.TestNomialSubs)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_sub.py\", line 72, in test_vector\r\n    self.assertTrue(all(p.sub({x: 1, \"y\": 2}) == 2*z))\r\nTypeError: unsupported operand type(s) for *: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_init (gpkit.tests.t_vars.TestVectorVariable)\r\nTest VectorVariable initialization\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_vars.py\", line 105, in test_init\r\n    v_mult = 3*v\r\nTypeError: unsupported operand type(s) for *: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_feasibility_gp_ (gpkit.tests.t_model.TestGP_cvxopt)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_model.py\", line 195, in test_feasibility_gp_\r\n    fgp = gp.feasibility_search(flavour=\"product\")\r\n  File \"/Library/Python/2.7/site-packages/gpkit/geometric_program.py\", line 290, in feasibility_search\r\n    (1/slackvars).tolist() +  # slackvars > 1\r\nTypeError: unsupported operand type(s) for /: 'int' and 'PosyArray'\r\n\r\n----------------------------------------------------------------------\r\nRan 88 tests in 1.886s\r\n\r\nFAILED (errors=5)\r\n\r\n######################################################################\r\nRunning with units disabled:\r\nEE.......E.........E..........................................E.........................\r\n======================================================================\r\nERROR: test_composite_objective (gpkit.tests.t_tools.TestMathModels)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_tools.py\", line 17, in test_composite_objective\r\n    obj = composite_objective(L+W, W**-1 * L**-3, sub={L: 1, W: 1})\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tools.py\", line 70, in composite_objective\r\n    w_s = normalization[-1]*PosyArray(w_s)*objectives[-1]\r\nTypeError: unsupported operand type(s) for *: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_te_exp_minus1 (gpkit.tests.t_tools.TestMathModels)\r\nTest Taylor expansion of e^x - 1\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_tools.py\", line 48, in test_te_exp_minus1\r\n    self.assertEqual(te_exp_minus1(y, 1), y)\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tools.py\", line 40, in te_exp_minus1\r\n    res += posy**i / factorial_denom\r\nTypeError: unsupported operand type(s) for +=: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_vector (gpkit.tests.t_sub.TestNomialSubs)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_sub.py\", line 72, in test_vector\r\n    self.assertTrue(all(p.sub({x: 1, \"y\": 2}) == 2*z))\r\nTypeError: unsupported operand type(s) for *: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_init (gpkit.tests.t_vars.TestVectorVariable)\r\nTest VectorVariable initialization\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_vars.py\", line 105, in test_init\r\n    v_mult = 3*v\r\nTypeError: unsupported operand type(s) for *: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR: test_feasibility_gp_ (gpkit.tests.t_model.TestGP_cvxopt)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/gpkit/tests/t_model.py\", line 195, in test_feasibility_gp_\r\n    fgp = gp.feasibility_search(flavour=\"product\")\r\n  File \"/Library/Python/2.7/site-packages/gpkit/geometric_program.py\", line 290, in feasibility_search\r\n    (1/slackvars).tolist() +  # slackvars > 1\r\nTypeError: unsupported operand type(s) for /: 'int' and 'PosyArray'\r\n\r\n----------------------------------------------------------------------\r\nRan 88 tests in 1.007s\r\n\r\nFAILED (errors=5)\r\n'''"},"comment":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/comments/137523833","html_url":"https://github.com/convexopt/gpkit/issues/386#issuecomment-137523833","issue_url":"https://api.github.com/repos/convexopt/gpkit/issues/386","id":137523833,"user":{"login":"cfrontin","id":14077848,"avatar_url":"https://avatars.githubusercontent.com/u/14077848?v=3","gravatar_id":"","url":"https://api.github.com/users/cfrontin","html_url":"https://github.com/cfrontin","followers_url":"https://api.github.com/users/cfrontin/followers","following_url":"https://api.github.com/users/cfrontin/following{/other_user}","gists_url":"https://api.github.com/users/cfrontin/gists{/gist_id}","starred_url":"https://api.github.com/users/cfrontin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfrontin/subscriptions","organizations_url":"https://api.github.com/users/cfrontin/orgs","repos_url":"https://api.github.com/users/cfrontin/repos","events_url":"https://api.github.com/users/cfrontin/events{/privacy}","received_events_url":"https://api.github.com/users/cfrontin/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T17:42:10Z","updated_at":"2015-09-03T17:42:10Z","body":"Yep. Exactly.\n\n> On Sep 3, 2015, at 1:37 PM, bqpd <notifications@github.com> wrote:\n> \n> No worries! (unless doing so would be useful for you)\n> \n> Was your manual install straight from the github repo?\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}