Package Details: python-osqp v0.7.9-3

Git Clone URL: (read-only, click to copy)
Package Base: python-osqp
Description: Python interface for OSQP (Operator Splitting QP Solver)
Upstream URL:
Keywords: QP solver
Licenses: Apache
Conflicts: python-osqp-git
Provides: python-osqp
Submitter: doublesack
Maintainer: doublesack
Last Packager: doublesack
Votes: 1
Popularity: 0.010520
First Submitted: 2019-06-29 10:36 (UTC)
Last Updated: 2022-03-21 20:44 (UTC)

Latest Comments

carlosal1015 commented on 2022-03-21 14:23 (UTC)

Hi @doublesack, please could you changes the sources from git:// to other one because

AchmadFathoni commented on 2022-03-21 14:14 (UTC) (edited on 2022-03-21 14:14 (UTC) by AchmadFathoni)

Cleaner compile-able PKGBUILD

pkgdesc="OSQP: The Operator Splitting QP Solver"
depends=(python python-numpy python-scipy python-qdldl) 
makedepends=(python-build python-installer python-wheel cmake)

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m build --wheel --no-isolation

package() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m installer --destdir="$pkgdir" dist/*.whl

carlosal1015 commented on 2022-03-14 12:52 (UTC)

Is fixed now.

pirofti commented on 2022-03-12 16:19 (UTC)

Fails to build currently:

[ 98%] Built target osqp_demo
/home/pirofti/aur/python-osqp/src/osqp-python/src/bindings.cpp: In function ‘void pybind11_init_ext_default(pybind11::module_&)’:
/home/pirofti/aur/python-osqp/src/osqp-python/src/bindings.cpp:289:15: error: ‘linsys_solver_type’ was not declared in this scope; did you mean ‘osqp_linsys_solver_type’?
  289 |     py::enum_<linsys_solver_type>(m, "linsys_solver_type", py::module_local())
      |               ^~~~~~~~~~~~~~~~~~
      |               osqp_linsys_solver_type
/home/pirofti/aur/python-osqp/src/osqp-python/src/bindings.cpp:289:33: error: template argument 1 is invalid
  289 |     py::enum_<linsys_solver_type>(m, "linsys_solver_type", py::module_local())
      |                                 ^
/home/pirofti/aur/python-osqp/src/osqp-python/src/bindings.cpp:290:29: error: ‘DIRECT_SOLVER’ was not declared in this scope; did you mean ‘OSQP_DIRECT_SOLVER’?
  290 |     .value("DIRECT_SOLVER", DIRECT_SOLVER)
      |                             ^~~~~~~~~~~~~
      |                             OSQP_DIRECT_SOLVER
/home/pirofti/aur/python-osqp/src/osqp-python/src/bindings.cpp:291:31: error: ‘INDIRECT_SOLVER’ was not declared in this scope; did you mean ‘OSQP_INDIRECT_SOLVER’?
      |                               ^~~~~~~~~~~~~~~
      |                               OSQP_INDIRECT_SOLVER
make[2]: *** [CMakeFiles/ext_default.dir/build.make:76: CMakeFiles/ext_default.dir/src/bindings.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:214: CMakeFiles/ext_default.dir/all] Error 2

doublesack commented on 2022-02-12 20:03 (UTC)

Added cmake as make dependency

Viech commented on 2022-01-29 10:45 (UTC)

I'm getting the following error with OSQP installed through this package but not with a pip installation:

File "/usr/lib/python3.10/site-packages/osqp/", line 3, in <module>
    from ._version import version as __version__
ModuleNotFoundError: No module named 'osqp._version'