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

License file not found #52

Open
KevinLikesDringCoffe opened this issue Sep 24, 2024 · 3 comments
Open

License file not found #52

KevinLikesDringCoffe opened this issue Sep 24, 2024 · 3 comments

Comments

@KevinLikesDringCoffe
Copy link

I was trying to run the example/main.py but came across this error. How can I fix it?

UserWarning: conda builds of osqp are built on shared libraries; by the design of osqp, these have a different Application Binary Interface (ABI) than those required for codegen, and this is therefore not supported. warn( Traceback (most recent call last): File "/vol/datastore/zhenyu/opt/cvxpygen/examples/main.py", line 31, in <module> cpg.generate_code(problem, code_dir='nonneg_LS') File "/home/zhenyu/miniconda3/lib/python3.10/site-packages/cvxpygen/cpg.py", line 78, in generate_code solver_interface.generate_code(code_dir, solver_code_dir, cvxpygen_directory, parameter_canon) File "/home/zhenyu/miniconda3/lib/python3.10/site-packages/cvxpygen/solvers.py", line 305, in generate_code shutil.copyfile(os.path.join(cvxpygen_directory, 'solvers', 'osqp-python', 'LICENSE'), File "/home/zhenyu/miniconda3/lib/python3.10/shutil.py", line 256, in copyfile with open(dst, 'wb') as fdst: FileNotFoundError: [Errno 2] No such file or directory: 'nonneg_LS/c/solver_code/LICENSE'

@maxschaller
Copy link
Collaborator

This is related to your osqp installation. Please use a pip build of osqp for now: pip install osqp

@KevinLikesDringCoffe
Copy link
Author

I have already installed the OSQP. And this problem still happened even I used another solver.

@maxschaller
Copy link
Collaborator

Please provide a reproducible example.

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