GenXProject / GenX.jl

GenX: a configurable power system capacity expansion model for studying low-carbon energy futures. More details at : https://genx.mit.edu
https://genxproject.github.io/GenX.jl/
GNU General Public License v2.0
278 stars 120 forks source link

ERROR: Unsatisfiable requirements detected for package OrdinaryDiffEq #274

Closed matteodefelice closed 1 year ago

matteodefelice commented 2 years ago

I have just tried to install GenX on my WSL (Ubuntu 20.04). I have cloned the repository and installed Julia with anaconda. Then I followed the steps specified in the Readme:

Then I receive this error:

(GenX) pkg> instantiate
ERROR: Unsatisfiable requirements detected for package OrdinaryDiffEq [1dea7af3]:
 OrdinaryDiffEq [1dea7af3] log:
 ├─possible versions are: 4.0.0-5.68.0 or uninstalled
 └─restricted to versions 6.20.0-6 by GenX [5d317b1e] — no versions left
   └─GenX [5d317b1e] log:
     ├─possible versions are: 0.3.1 or uninstalled
     └─GenX [5d317b1e] is fixed to version 0.3.1

If I type st I get:

(GenX) pkg> st
Project GenX v0.3.1
Status `/mnt/c/Users/matte/OneDrive/local/work/GenX/Project.toml`
  [6e4b80f9] BenchmarkTools
  [336ed68f] CSV
  [9961bab8] Cbc
  [e2554f3b] Clp
  [aaaa29a8] Clustering
  [861a8166] Combinatorics
  [a93c6f00] DataFrames
  [864edb3b] DataStructures
  [b4f34e82] Distances
  [87dc4568] HiGHS
  [4076af6c] JuMP
  [b8f27783] MathOptInterface
  [1dea7af3] OrdinaryDiffEq
  [731186ca] RecursiveArrayTools
  [82193955] SCIP
  [2913bbd2] StatsBase
  [ddb6d928] YAML
  [ade2ca70] Dates
  [37e2e46d] LinearAlgebra
  [9a3f8284] Random
  [10745b16] Statistics

I had the same issue with Julia 1.6, 1.7 and 1.8. Any ideas on how to fix this?

sambuddhac commented 2 years ago

@matteodefelice , thanks for flagging. I am currently testing it. Will circle back at you as soon as I fix.

GenXProject commented 2 years ago

@matteodefelice , can you once try to run GenX from the Develop branch and report to me what you get? If the problem still persists, I will resolve it on Develop first, and then merge into main with the next patch release and circle back at you.

matteodefelice commented 2 years ago

I get the same identical error.

cfe316 commented 2 years ago

Could you try deleting OrdinaryDiffEq entirely from the requirements in Project.toml? I'm fairly certain that we don't actually need it.

sambuddhac commented 2 years ago

You'll also have to delete the following line in GenX.jl

using OrdinaryDiffEq

And also delete the Manifest.toml and start the build from scratch again. I am testing a PR, should be putting in if it runs good without the OrdinaryDiffEq

matteodefelice commented 2 years ago

If I remove it the error becomes:

ERROR: Unsatisfiable requirements detected for package StatsBase [2913bbd2]:
sambuddhac commented 2 years ago

@matteodefelice did you do a fresh build (i.e. delete the old Manifest.toml) and also delete the using OrdinaryDiffEq line from GenX.jl before building? Also, when you're trying to run from either the main or the Develop branch, please do a git pull first to get all the recent changes, and then do a fresh build. Please let me know, if that works. If it doesn't, then I'll spend some more time to see where things might be going wrong.

matteodefelice commented 2 years ago

unfortunately, it doesn't. I have tried both in main and in Develop, editing both the files but nothing.

sambuddhac commented 2 years ago

PR # 282 will fix this issue, when merged

sambuddhac commented 1 year ago

This issue is now fixed.