graphprotocol / allocation-optimizer

Agents and algorithms for optimizing Indexer decision problems.
MIT License
13 stars 14 forks source link

Error compiling AllocationOpt 2.4.0 #40

Closed edsonmarquezani closed 10 months ago

edsonmarquezani commented 1 year ago

I've been trying to compile the latest version (2.4.0) with no success. It fails with the following error:

#21 15.86 Precompiling project...
#21 16.24   ✓ Zlib_jll
#21 16.53   ✓ OrderedCollections
#21 16.74   ✓ Scratch
#21 16.95   ✓ MbedTLS_jll
#21 17.15   ✓ RelocatableFolders
#21 17.29   ✓ LibSSH2_jll
#21 17.92   ✓ PackageCompiler
#21 18.50   ✓ ExproniconLite
#21 20.38   ✓ Configurations
#21 22.37   ✓ Comonicon
#21 22.38   10 dependencies successfully precompiled in 7 seconds
#21 22.38    Resolving package versions...
#21 22.42     Updating `~/.julia/environments/v1.8/Project.toml`
#21 22.43   [8ba89e20] + Distributed
#21 22.43     Updating `~/.julia/environments/v1.8/Manifest.toml`
#21 22.44   [8ba89e20] + Distributed
#21 22.81      Cloning git-repo `/workspace/AllocationOpt.jl`
#21 22.86     Updating git-repo `/workspace/AllocationOpt.jl`
#21 22.87    Resolving package versions...
#21 23.43 ERROR: LoadError: Unsatisfiable requirements detected for package TheGraphData [871720c8]:
#21 24.65  TheGraphData [871720c8] log:
#21 24.65  ├─TheGraphData [871720c8] has no known versions!
#21 24.65  └─restricted to versions 0.2 by AllocationOpt [e2472b13] — no versions left
#21 24.65    └─AllocationOpt [e2472b13] log:
#21 24.65      ├─possible versions are: 2.4.0 or uninstalled
#21 24.65      └─AllocationOpt [e2472b13] is fixed to version 2.4.0

I'm using Julialang 1.8.5 but have tried many other versions with no success as well. The previous version (2.3.1) compiles out of the box.

Can I get some help? Thanks.

anirudh2 commented 1 year ago

It looks like it might be having some trouble finding some dependencies for you. Could you try manually adding TheGraphData and SemioticOpt?

From package mode in the Julia REPL:

pkg> add https://github.com/semiotic-ai/SemioticOpt.jl.git
pkg> add https://github.com/semiotic-ai/TheGraphData.jl.git

Then run through the compilation process.

Unsure why you're having issues as I wasn't able to reproduce on a clean VM, so I wasn't able to try this out myself. Hopefully this works though. Let me know if it does, and I'll add a note to the docs.

hopeyen commented 10 months ago

There hasn't been any response in a while so we will close for now. Feel free to re-open if anything occurs