Coder Social home page Coder Social logo

Comments (5)

Badr-MOUFAD avatar Badr-MOUFAD commented on June 10, 2024 1

Should it be closed after the merge of #562?

from benchopt.

mathurinm avatar mathurinm commented on June 10, 2024

Hi @UR4NVS, thanks for your feedback !
If the solver is not installed, you indeed need to tell benchopt which packages needs to be installed in order for the solver to work, by adding a requirements attribute as you did.

However I am surprised that you got a bug, because if the solver is not installed it should be skipped. Can you share the command that generated the error? And if your benchmark is public, can you share a link to the repo?

from benchopt.

albanPi avatar albanPi commented on June 10, 2024

Here is my repo and it wasn't a command written by myself, this occurred during a Github test for my PR. You can find here the error message and the details.

from benchopt.

tomMoral avatar tomMoral commented on June 10, 2024

I think the issue is with the benchopt install command, when collecting uninstalled solvers. If there is an import error in the safe_import_context, it expect to find a requirements attribute. If there is none, I would suggest we raise a more comprehensive error :)

@UR4NVS , do you think you could look into this? this involves changing the line here
to check if the requirements exists and raise an error asking to add a requirements attribute in the solver class if not.

from benchopt.

mathurinm avatar mathurinm commented on June 10, 2024

fixed by #562

from benchopt.

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.