Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error gptkit and mosek #1579

Open
knar974 opened this issue Jun 17, 2024 · 0 comments
Open

error gptkit and mosek #1579

knar974 opened this issue Jun 17, 2024 · 0 comments

Comments

@knar974
Copy link

knar974 commented Jun 17, 2024

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']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant