This link teaches you how to adjust the versions of the packages in your anchor workspace.
After this, you should be able to compile the program using cargo-build-sbf.
You might get more errors from IDL generation when running anchor build, this is because IDL generation uses the most recent nightly version of rust in your machine, and the current versions are not compatible with anchor v0.30.1.
You can override the nightly version used for IDL generation with the env variable RUSTUP_TOOLCHAIN. Try:
ahh dude thanks for that pivotal piece. Granted i’m a novice, but the pyth integration was not a smooth journey for me! Will post here in case others find it helpful, but it’s a bit of a dependency jigsaw puzzle.
My Cargo.toml ended up as:
[workspace]
members = [“programs/*”]
resolver = “2”