Skip to content

error gptkit and mosek #1579

@knar974

Description

@knar974

Found the following solvers: mosek_conif, cvxopt

Replacing directory env

..........................E......................................................................................................................................................................................

ERROR: test_vector_sweep (gpkit.tests.t_sub.TestModelSubs.test_vector_sweep)
Test sweep involving VectorVariables

Traceback (most recent call last):
File "/home/knar74/micromamba/envs/mojo_uni/lib/python3.12/site-packages/gpkit/tests/t_sub.py", line 205, in test_vector_sweep
sol = m.solve(verbosity=0)
^^^^^^^^^^^^^^^^^^^^
File "/home/knar74/micromamba/envs/mojo_uni/lib/python3.12/site-packages/gpkit/constraints/prog_factories.py", line 123, in solvefn
constants, sweep, linked = parse_subs(self.varkeys, self.substitutions)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/knar74/micromamba/envs/mojo_uni/lib/python3.12/site-packages/gpkit/nomials/substitution.py", line 25, in parse_subs
append_sub(sub, keys, constants, sweep, linkedsweep)
File "/home/knar74/micromamba/envs/mojo_uni/lib/python3.12/site-packages/gpkit/nomials/substitution.py", line 47, in append_sub
sub = np.array(sub) if not hasattr(sub, "shape") else sub
^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.


Ran 209 tests in 7.949s

FAILED (errors=1)

GPkit is now installed with solver(s) ['mosek_conif', 'cvxopt']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions