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

UndefVarError: AllocationOpt not defined #48

Open
liuyangc3 opened this issue Jan 17, 2024 · 3 comments
Open

UndefVarError: AllocationOpt not defined #48

liuyangc3 opened this issue Jan 17, 2024 · 3 comments

Comments

@liuyangc3
Copy link

liuyangc3 commented Jan 17, 2024

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
Copy link
Author

liuyangc3 commented Jan 18, 2024

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
Copy link
Member

What does your config look like?

@liuyangc3
Copy link
Author

liuyangc3 commented May 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants