Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

btcli subnet list not working on bittensor==8.5.1rc6 & bittensor-cli==8.2.0rc10 #291

Open
tripathiarpan20 opened this issue Feb 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@tripathiarpan20
Copy link

Describe the bug

btcli subnet list outputs the following error:

https://pastebin.com/q211wNmy

Partial trace:

│ /usr/local/lib/python3.10/dist-packages/scalecodec/base.py:983 in process_type                                                                                                           │
│                                                                                                                                                                                          │
│    980 │   # TODO rename to decode_type (confusing when encoding is introduced)                 ╭─────────────────── locals ───────────────────╮                                         │
│    981 │   def process_type(self, type_string, **kwargs):                                       │      kwargs = {'metadata': None}             │                                         │
│    982 │   │   obj = self.runtime_config.create_scale_object(type_string, self.data, **kwargs)  │         obj = <Compact<u8>(value=None)>      │                                         │
│ ❱  983 │   │   obj.decode(check_remaining=False)                                                │        self = <Vec<Compact<u8>>(value=None)> │                                         │
│    984 │   │   return obj                                                                       │ type_string = 'Compact<u8>'                  │                                         │
│    985 │                                                                                        ╰──────────────────────────────────────────────╯                                         │
│    986 │   def serialize(self):                                                                                                                                                          │
│                                                                                                                                                                                          │
│ /usr/local/lib/python3.10/dist-packages/scalecodec/base.py:878 in decode                                                                                                                 │
│                                                                                                                                                                                          │
│    875 │   │   if not self.decoded:                                                             ╭────────────────── locals ───────────────────╮                                          │
│    876 │   │   │                                                                                │ check_remaining = False                     │                                          │
│    877 │   │   │   self.data_start_offset = self.data.offset                                    │            data = None                      │                                          │
│ ❱  878 │   │   │   self.value_serialized = self.process()                                       │            self = <Compact<u8>(value=None)> │                                          │
│    879 │   │   │   self.decoded = True                                                          ╰─────────────────────────────────────────────╯                                          │
│    880 │   │   │                                                                                                                                                                         │
│    881 │   │   │   if self.value_object is None:                                                                                                                                         │
│                                                                                                                                                                                          │
│ /usr/local/lib/python3.10/dist-packages/scalecodec/types.py:67 in process                                                                                                                │
│                                                                                                                                                                                          │
│     64 │   │   return self.compact_bytes                                                        ╭───────────── locals ─────────────╮                                                     │
│     65 │                                                                                        │ self = <Compact<u8>(value=None)> │                                                     │
│     66 │   def process(self):                                                                   ╰──────────────────────────────────╯                                                     │
│ ❱   67 │   │   self.process_compact_bytes()                                                                                                                                              │
│     68 │   │                                                                                                                                                                             │
│     69 │   │   if self.compact_length <= 4:                                                                                                                                              │
│     70 │   │   │   return int(int.from_bytes(self.compact_bytes, byteorder='little') / 4)                                                                                                │
│                                                                                                                                                                                          │
│ /usr/local/lib/python3.10/dist-packages/scalecodec/types.py:46 in process_compact_bytes                                                                                                  │
│                                                                                                                                                                                          │
│     43 │   │   try:                                                                             ╭───────────────── locals ─────────────────╮                                             │
│     44 │   │   │   byte_mod = compact_byte[0] % 4                                               │ compact_byte = bytearray(b'')            │                                             │
│     45 │   │   except IndexError:                                                               │         self = <Compact<u8>(value=None)> │                                             │
│ ❱   46 │   │   │   raise InvalidScaleTypeValueException("Invalid byte for Compact")             ╰──────────────────────────────────────────╯                                             │
│     47 │   │                                                                                                                                                                             │
│     48 │   │   if byte_mod == 0:                                                                                                                                                         │
│     49 │   │   │   self.compact_length = 1                                                                                                                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
InvalidScaleTypeValueException: Invalid byte for Compact

To Reproduce

  1. pip install bittensor==8.5.1rc6
  2. pip install bittensor-cli==8.2.0rc10
  3. btcli wallet list

Expected behavior

Should display list of subnets with alpha value as in https://docs.bittensor.com/dynamic-tao

Screenshots

Image

Environment

Linux 22.04 VM on Oblivus

Additional context

No response

@tripathiarpan20 tripathiarpan20 added the bug Something isn't working label Feb 4, 2025
@tripathiarpan20 tripathiarpan20 changed the title btcli subnet list not working bittensor==8.5.1rc6 & bittensor-cli==8.2.0rc10 btcli subnet list not working on bittensor==8.5.1rc6 & bittensor-cli==8.2.0rc10 Feb 4, 2025
@thewhaleking
Copy link
Contributor

Were you using this on testnet or finney? I can't see your config in the trace.

@thewhaleking thewhaleking transferred this issue from opentensor/bittensor Feb 5, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants