fix: pin async-substrate-interface==1.6.4 + bump bt-decode to 0.8.0#153
Merged
Conversation
async-substrate-interface>=1.4.2 was unpinned, allowing pip to resolve to 2.x which breaks bittensor 9.12.2 with two hard import errors: 1. scalecodec/cyscale namespace conflict (RuntimeError on import) 2. ScaleObj removed from async_substrate_interface.types (ImportError) Pin to 1.6.4 (latest compatible 1.x). This requires bt-decode==0.8.0 (1.6.4 depends on it); bt-decode==0.6.0 is incompatible. Same fix already applied to bitcast-x in commit 3cb60e2. Tested: pip install -r requirements.txt + import bittensor passes clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
async-substrate-interface>=1.4.2was an open-ended floor pin. pip resolves this to 2.2.0 (latest), which has two breaking changes that crashimport bittensor:RuntimeErroron importScaleObjremoved fromasync_substrate_interface.types— bittensor 9.12.2 imports it directly →ImportErrorThis was reported by a miner/validator hitting the error on fresh install.
Fix
async-substrate-interface==1.6.4(latest compatible 1.x, same as bitcast-x)bt-decode==0.6.0→0.8.0(required by async-substrate-interface 1.6.4)Verification
Reproduced the crash with 2.2.0, then verified the fix:
Context
Same fix already applied to bitcast-x in commit 3cb60e2 (4 May 2026). This PR brings the main neuron repo in line.