GithubHelp home page GithubHelp logo

Comments (7)

ChemGuy88 avatar ChemGuy88 commented on July 28, 2024 1

Hi. I was installing scikit-survival, which has OSQP as one of its requirements (?), and it kept throwing some errors. I stumbled across this thread and did python3 -m pip install --user cmake and afterwards python3 -m pip install --user scikit-survival finally worked.

I'm on a 2016 MacBook Pro macOS 11.0.1 with python 3.8. I don't know if this will inform your development any.

from osqp-python.

goulart-paul avatar goulart-paul commented on July 28, 2024

from osqp-python.

bstellato avatar bstellato commented on July 28, 2024

Thanks! Added it in 4078327

from osqp-python.

krishnan-r avatar krishnan-r commented on July 28, 2024

I'm sorry this doesn't work as expected. The setup_requires option does not install the package in a full fledged way, it only downloads it temporarily into a local folder, making packages importable. It works for cases like numpy, where it can be imported from within a custom command in setup.py. But cmake is called in setup.py as a subprocess (also before the setup function), which requires it to be in the sys path. Perhaps cmake needs to be called as a python module.

I tried installing the master branch, but doesn't work.

from osqp-python.

bstellato avatar bstellato commented on July 28, 2024

The best option is to install cmake separately independently from the language. That's what we suggest in the instructions.

The fact that OSQP is not directly installed using a binary is probably because you are using pip and linux (see #3). Note that cmake is also needed for code generation.

from osqp-python.

krishnan-r avatar krishnan-r commented on July 28, 2024

Yes you are right. I guess then CMake is best installed separately.

from osqp-python.

bstellato avatar bstellato commented on July 28, 2024

I have reverted the commit in 8336546. I will close the issue since it looks like it will not appear again when we release the manylinux binaries.

from osqp-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.