Giter Site home page Giter Site logo

Comments (6)

paolodragone avatar paolodragone commented on June 8, 2024 1

Hi @Dekker1, thank you for the tip, I'll make use of it!

from pymzn.

paolodragone avatar paolodragone commented on June 8, 2024

Hi @ceandrade, thanks for reporting this. This happens because the error is raised at flattening time, so no error flag (=====ERROR=====) is printed on standard output (commonly printed at solving time), and so it's not caught during solution parsing. PyMzn looks for these errors before launching the full MiniZinc run by doing model checking and instance checking (i.e. running MiniZinc with --model-check-only and --instance-check-only). However, quite surprisingly, in your case MiniZinc does not fail during model nor instance checking, I'm not exactly sure why. I'll make a fix for this in PyMzn.

from pymzn.

ceandrade avatar ceandrade commented on June 8, 2024

Yes, this is weird, I agree. BTW, my minizinc version is

$ minizinc --version
MiniZinc to FlatZinc converter, version 2.3.1, build 70205949
Copyright (C) 2014-2019 Monash University, NICTA, Data61

@paolodragone I will doubt check this and may open a ticket on minizinc repo.

Thanks for your fast reply!

from pymzn.

ceandrade avatar ceandrade commented on June 8, 2024

FYI: MiniZinc/libminizinc#313

from pymzn.

paolodragone avatar paolodragone commented on June 8, 2024

Thanks. Anyway, now it is solved in the master branch. I'll make a release soon.

from pymzn.

Dekker1 avatar Dekker1 commented on June 8, 2024

@paolodragone The best way of ensuring the process finished successfully would be to check the exit code. When the exit code is non-zero then an error has occurred during execution.

from pymzn.

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.