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

missing force_register_neuron in MockSubtensor - bittensor==8.0 #2325

Open
wjurkowlaniec opened this issue Sep 30, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@wjurkowlaniec
Copy link

wjurkowlaniec commented Sep 30, 2024

Describe the bug

In template, there is force_register_neuron in MockSubtensor which is not available in new bittensor library

│ /Users/wojtasy/dev/_cancer_ai/cancerai/cancer_ai/mock.py:29 in __init__                          │
│                                                                                                  │
│    26 │   │                                                                                      │
│    27 │   │   # Register n mock neurons who will be miners                                       │
│    28 │   │   for i in range(1, n + 1):                                                          │
│ ❱  29 │   │   │   self.force_register_neuron(                                                    │
│    30 │   │   │   │   netuid=netuid,                                                             │
│    31 │   │   │   │   hotkey=f"miner-hotkey-{i}",                                                │
│    32 │   │   │   │   coldkey="mock-coldkey",                                                    │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'MockSubtensor' object has no attribute 'force_register_neuron'

To Reproduce

  • Get bittensor-template
  • run it

Expected behavior

should work out of the box

Screenshots

No response

Environment

OSX / Ubuntu

Additional context

No response

@wjurkowlaniec wjurkowlaniec added the bug Something isn't working label Sep 30, 2024
@thewhaleking
Copy link
Contributor

Related: #2466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants