graphprotocol / allocation-optimizer

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

UndefVarError: `AllocationOpt` not defined #48

Open liuyangc3 opened 5 months ago

liuyangc3 commented 5 months ago

I followd the doc and built my own binary, but got error when run the binary:

bin/AllocationOpt ./config.toml
UndefVarError: `AllocationOpt` not defined

julia version 1.9.5

liuyangc3 commented 5 months ago

change to version 1.8.5, but got error: "Unsatisfiable requirements detected for package TheGraphData" when I add allocation-optimizer

(@v1.8) pkg> add https://github.com/graphprotocol/allocation-optimizer.git
     Cloning git-repo `https://github.com/graphprotocol/allocation-optimizer.git`
    Updating git-repo `https://github.com/graphprotocol/allocation-optimizer.git`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package TheGraphData [871720c8]:
 TheGraphData [871720c8] log:
 ├─TheGraphData [871720c8] has no known versions!
 └─restricted to versions 0.2 by AllocationOpt [e2472b13] — no versions left
   └─AllocationOpt [e2472b13] log:
     ├─possible versions are: 2.5.0 or uninstalled
     └─AllocationOpt [e2472b13] is fixed to version 2.5.0

I maually added TheGraphData fixed the issue. But the app stucked at Optimizing for hours... by running AllocationOpt.main("config.toml")

[ Info: Querying data from https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-mainnet
[ Info: Writing table to data/indexer.csv
[ Info: Writing table to data/allocation.csv
[ Info: Writing table to data/subgraph.csv
[ Info: Writing table to data/network.csv
[ Info: Optimizing

julia version 1.8.5, macOS

anirudh2 commented 4 months ago

What does your config look like?

liuyangc3 commented 2 months ago

I think the issue is not relate to config, becuase the TheGraphData is not included in package registery, see the issue I raised https://github.com/semiotic-ai/TheGraphData.jl/issues/20