osqp-python icon indicating copy to clipboard operation
osqp-python copied to clipboard

Module 'osqp' has no attribute 'solve'.

Open mjstahlberg opened this issue 4 years ago • 1 comments

I installed version 0.6.2.post0 via pip under Python 3.6 and noticed that there is no stateless solve function in the osqp namespace as claimed in the documentation:

>>> import osqp
>>> osqp.solve
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'osqp' has no attribute 'solve'

mjstahlberg avatar Sep 13 '21 11:09 mjstahlberg

@bstellato - I checked commit 5445af2 from the master branch of osqp-python (i.e. before I did anything to the code), and don't see that this would have worked - there's no top-level solve function available from the osqp package. Do you remember if we used to support it sometime but later removed it? Perhaps we should update the documentation to remove mention of this stateless function?

vineetbansal avatar Apr 01 '22 19:04 vineetbansal