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

Incompatible with cvxpy 1.6 #57

Open
im-keiran opened this issue Nov 15, 2024 · 2 comments
Open

Incompatible with cvxpy 1.6 #57

im-keiran opened this issue Nov 15, 2024 · 2 comments

Comments

@im-keiran
Copy link

im-keiran commented Nov 15, 2024

cvxpygen is great, please update it! We upgraded our cvxpy version to 1.6 and there are clearly breaking changes. This is from the portfolio example notebook:

     30 from cvxpy.problems.objective import Maximize
     31 from cvxpy.cvxcore.python import canonInterface as cI
---> 32 from cvxpy.expressions.variable import upper_tri_to_full
     35 def generate_code(problem, code_dir='CPG_code', solver=None, solver_opts=None,
     36                   enable_settings=[], unroll=False, prefix='', wrapper=True):
     37     \"\"\"
     38     Generate C code to solve a CVXPY problem
     39     \"\"\"

ImportError: cannot import name 'upper_tri_to_full' from 'cvxpy.expressions.variable' ```

It looks like the method `upper_tri_to_full` was removed from `cvxpy.expressions.variable`
@maxschaller
Copy link
Collaborator

There will be a release that restores compatibility in the next couple of days. Until then, please install with cvxpy 1.5.

@im-keiran
Copy link
Author

Thank you for the prompt response!

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

No branches or pull requests

2 participants