Comments (5)
Can you please post an example or CI where it fails?
CVXPY does not import OSQP unless you specify to use it. We use CVXPY to solve the test problems with ECOS and double check the results. It is not a problem on our CI.
from osqp-python.
@bstellato it's an issue in Nix (nixos.org), where you're building all python packages from source, so you can't rely on pre-compiled wheels like cibuildwheel
presumably does for cvxpy in your CI.
The dependency goes something like
- Build osqp -> requires cvxpy (for tests) -> requires osqp
- Build cvxpy -> requires osqp (b/c the setup.py has it as required install) -> requires cvxpy to complete tests
This problem could presumably be resolved by disabling tests on osqp, but that comes with its own problems.
from osqp-python.
We have the same problem in conda-forge. I now need to skip the whole test suite for the python 3.9 build to be able to unbreak the cycle.
CVXPY does not import OSQP unless you specify to use it
CVXPY specifies OSQP as a hard dependency. I agree with @drewrisinger that this is circular.
At a minimum (to fly a bit less blindly when having to break the cycle in conda-forge e.g. for a new python version), it would be good to have a way (e.g. a pytest-tag) to easily skip all tests that require cvxpy.
from osqp-python.
@h-vetinari @bstellato it may be possible to resolve the circular dependency by having OSQP's recipe require cvxpy-base (the version Michael Grant set up a while back) rather than cvxpy.
from osqp-python.
@rileyjmurray: @h-vetinari @bstellato it may be possible to resolve the circular dependency by having OSQP's recipe require cvxpy-base (the version Michael Grant set up a while back) rather than cvxpy.
Since cvxpy-base
is built concurrently with cvxpy
in the cvxpy-feedstock, that would unfortunately not make a difference for conda-forge.
from osqp-python.
Related Issues (20)
- Error in building wheel for osqp because "No module named cmake' " HOT 1
- No wheels for Python 3.11 HOT 1
- Cannot install osqp on MacOSX HOT 3
- Numpy 1.24 breaks builtin type aliases HOT 1
- symbol not found in flat namespace '_csc_matrix'
- Python solve is faster than C code-generated one HOT 4
- FLOAT codegen argument doesn't work as expected
- Install fails because of metadata version on Mac OS HOT 14
- Apparent non-determinism when using OSQP via CVXPY HOT 5
- Move Python-specific interface code from main library to Python interface repo HOT 3
- Support nonzero scaling for C derivatives HOT 1
- Print issue
- cmake as a build time requirement HOT 1
- Remove legacy code HOT 1
- Add derivatives parallelization
- Wrap generated C code with tiny python functionalities HOT 1
- Integrate new codegen with cvxpygen HOT 1
- Add CONTRIBUTING.md
- Support codegen in editable install HOT 1
- Add macOS arm64 wheel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osqp-python.