Skip to content

dependency issue with new bittensor version #131

@Shayansalesi

Description

@Shayansalesi
/template/base/neuron.py:91 in __init__  

 88 │   │   │   │   self.config.netuid, subtensor=self.subtensor                               │
│    89 │   │   │   )                                                                              │
│    90 │   │   else:                                                                              │
│ ❱  91 │   │   │   self.wallet = bt.wallet(config=self.config)                                    │
│    92 │   │   │   self.subtensor = bt.subtensor(config=self.config)                              │
│    93 │   │   │   self.metagraph = self.subtensor.metagraph(self.config.netuid)                  │
│    94                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: argument 'config': 'Config' object cannot be converted to 'Config'

This error happens with bittensor>8.0 - switching to 7.3.1 fixed the issue. The config passed through self.config is not the same object as is expected by bt.wallet().

Either version should be reverted or a conversion of the config made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions