Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cbc 2.10.8 #212

Closed
Wikunia opened this issue Dec 28, 2022 · 5 comments
Closed

Cbc 2.10.8 #212

Wikunia opened this issue Dec 28, 2022 · 5 comments

Comments

@Wikunia
Copy link

Wikunia commented Dec 28, 2022

I'm currently getting an error that the Cbc version installed is too new.

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.

Is there anything I can do to still use Cbc.jl without an updated version?

@odow
Copy link
Member

odow commented Dec 30, 2022

What is import Pkg; Pkg.status()?

I don't understand this error. It should work fine. If version = v"2.10.8", I don't see how this error is triggered:

Cbc.jl/src/Cbc.jl

Lines 22 to 25 in 8455156

if !(v"2.10.0" <= version < v"2.11")
error("""
You have installed version $version of Cbc, which is not supported by
Cbc.jl We require Cbc version 2.10. After installing Cbc 2.10, run:

@lucapizzimbone
Copy link

lucapizzimbone commented Jan 2, 2023

I am getting similar error:
JuliaError: Exception '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.

This is my Pkg.status():

[6e4b80f9] BenchmarkTools v1.3.2
[336ed68f] CSV v0.10.8
[052768ef] CUDA v3.12.0
⌅ [9961bab8] Cbc v0.8.1
[a93c6f00] DataFrames v1.4.4
⌃ [587475ba] Flux v0.13.9
⌃ [7073ff75] IJulia v1.23.3
[2dbab86a] PandaModels v0.7.1
[438e738f] PyCall v1.94.1
[fce5fe82] Turing v0.23.3
[10745b16] Statistics

Surprisingly, the Cbc version seems v0.8.1, but when running the code, shows 2.10.8

@odow
Copy link
Member

odow commented Jan 2, 2023

You have installed an old version of Cbc.jl (the Julia package). You need to install at least [email protected]. The installation issue was fixed here: #206

Try

import Pkg
Pkg.pkg"add [email protected]"

@odow
Copy link
Member

odow commented Jan 3, 2023

Ah. Your issue is that PandaModels requires an old version of Cbc: https://github.com/e2nIEE/PandaModels.jl/blob/b8cb4e438525e6c128d832f7aa7bf70afda9b9b9/Project.toml#L18-L26

PandaModels.jl should be updated, but I'll also fix the compat bounds in the registry:

JuliaRegistries/General#75017

@odow
Copy link
Member

odow commented Feb 4, 2023

Fixed in general, so we shouldn't get this issue again.

@odow odow closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants