RuntimeError: No algebra backend available! #657
-
I am using OSQP in my code on Python 3.12.4 with Numpy 2.0.0. OSQP has been build on my computer using Numpy 2.0.0. My code runs fine in Python. When I create an .exe file using PyInstaller (single file or not), I get this error: File "osqp\interface.py", line 80, in init Any solution? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Module
|
Beta Was this translation helpful? Give feedback.
-
Please use the branch v0.6.x for OSQP if you are cloning/building yourself (https://github.com/osqp/osqp-python/tree/v0.6.x). The master branch is currently a beta/unstable version based on the new v1.0 C code, so it is not meant for general use. We are working on getting new wheels built and pushed to PyPi that will support NumPy 2.0, and hope to have that done in a day or so. That said, I don't think we have ever tried with the future 1.0 on Pyinstaller before (and I have actually never heard of it before). Is there something we can do in our packaging to make this usecase better or work with no problems? |
Beta Was this translation helpful? Give feedback.
Module
osqp.ext_builtin
,osqp_cuda
orosqp_mkl
should be added to PyInstaller as a hidden import in the command line, e.g.:--hidden-import=osqp.ext_builtin