jump-dev / Cbc.jl

A Julia interface to the Coin-OR Branch and Cut solver (CBC)
https://projects.coin-or.org/Cbc
Other
81 stars 35 forks source link

You have installed version 2.10.8 of Cbc, which is not supported by Cbc.jl #210

Closed sklink closed 1 year ago

sklink commented 1 year ago

I have added Cbc via add Cbc in Julia REPL. The build works fine on my Mac with M1 but on GitHub Actions and on my Windows PC I receive this error:

Failed to precompile MyPackage [e2d255a6-a9f0-4867-97a6-ac6706df2382] to /var/runtime/julia_depot/compiled/v1.8/MyPackage/jl_lkG0IL.
ERROR: LoadError: You have installed version 2.10.8 of Cbc, which is not supported by
Cbc.jl We require Cbc version 2.10. After installing Cbc 2.10, run:

    import Pkg
    Pkg.rm("Cbc")
    Pkg.add("Cbc")

If you have a newer version of Cbc installed, changes may need to be made
to the Julia code. Please open an issue at
https://github.com/jump-dev/Cbc.jl.

My understanding is that Cbc.jl is the one installing those binaries -- I don't have them pre-installed anywhere.

sklink commented 1 year ago

I attempted to remove it from the Manifest.toml through remove Cbc beforehand which seemed to help with the issue but ultimately ran into the same error.

odow commented 1 year ago

Please update your packages. This is fixed in v1.0.3 of Cbc.jl.

sklink commented 1 year ago

I only attempted to install Cbc.jl yesterday, so I believe it should've defaulted to the latest version. We've moved on to using HiGHs instead but I'll give this another shot if we need to switch back.

odow commented 1 year ago

We've moved on to using HiGHs

Great!

I'll give this another shot if we need to switch back.

Closing this issue because as far as I'm aware, this is fixed in the latest version. There may have been some other version incompatibilities going on. Hard to say without knowing the details. Please re-open if you can reproduce in future, and provide the output of import Pkg; Pkg.status().