opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
862 stars 301 forks source link

Error when registering with Cuda #1598

Closed GreyDGL closed 9 months ago

GreyDGL commented 9 months ago

Describe the bug

Tried to register a new wallet using the latest version of build installed from pip3 install bittensor. Encounter the following errors: TypeError: create_pow() got an unexpected keyword argument 'TPB'

To Reproduce

btcli subnet pow_register --netuid 2 --wallet.name my_coldkey --wallet.hotkey my_first_hotkey --cuda 

nter subtensor network [local/finney/test/archive] (finney): 
Continue Registration?
  hotkey:     5EM55w
  coldkey:    5HeEPP
  network:    finney [y/n]: y
📡 Registering...(1/3)

│ /home/miniconda3/envs/bittensor/bin/btcli:9 in <module>                                    │
│                                                                                                  │
│    6                                                                                             │
│    7 if __name__ == '__main__':                                                                  │
│    8 │   args = sys.argv[1:]                                                                     │
│ ❱  9 │   bittensor.cli(args=args).run()                                                          │
│   10                                                                                             │
│   11 # The MIT License (MIT)                                                                     │
│   12 # Copyright © 2021 Yuma Rao                                                                 │
│                                                                                                  │
│ /home/miniconda3/envs/bittensor/lib/python3.10/site-packages/bittensor/cli.py:275 in run   │
│                                                                                                  │
│   272 │   │   │   command_data = COMMANDS[command]                                               │
│   273 │   │   │                                                                                  │
│   274 │   │   │   if isinstance(command_data, dict):                                             │
│ ❱ 275 │   │   │   │   command_data["commands"][self.config["subcommand"]].run(self)              │
│   276 │   │   │   else:                                                                          │
│   277 │   │   │   │   command_data.run(self)                                                     │
│   278 │   │   else:                                                                              │
│                                                                                                  │
│ /home/miniconda3/envs/bittensor/lib/python3.10/site-packages/bittensor/commands/register.p │
│ y:187 in run                                                                                     │
│                                                                                                  │
│   184 │   │   │   )                                                                              │
│   185 │   │   │   sys.exit(1)                                                                    │
│   186 │   │                                                                                      │
│ ❱ 187 │   │   subtensor.register(                                                                │
│   188 │   │   │   wallet=wallet,                                                                 │
│   189 │   │   │   netuid=cli.config.netuid,                                                      │
│   190 │   │   │   prompt=not cli.config.no_prompt,                                               │
│                                                                                                  │
│ /home/miniconda3/envs/bittensor/lib/python3.10/site-packages/bittensor/subtensor.py:452 in │
│ register                                                                                         │
│                                                                                                  │
│    449 │   │   log_verbose: bool = False,                                                        │
│    450 │   ) -> bool:                                                                            │
│    451 │   │   """Registers the wallet to chain."""                                              │
│ ❱  452 │   │   return register_extrinsic(                                                        │
│    453 │   │   │   subtensor=self,                                                               │
│    454 │   │   │   wallet=wallet,                                                                │
│    455 │   │   │   netuid=netuid,                                                                │
│                                                                                                  │
│ /home/miniconda3/envs/bittensor/lib/python3.10/site-packages/bittensor/extrinsics/registra │
│ tion.py:119 in register_extrinsic                                                                │
│                                                                                                  │
│   116 │   │   │   │   if prompt:                                                                 │
│   117 │   │   │   │   │   bittensor.__console__.error("CUDA is not available.")                  │
│   118 │   │   │   │   return False                                                               │
│ ❱ 119 │   │   │   pow_result: Optional[POWSolution] = create_pow(                                │
│   120 │   │   │   │   subtensor,                                                                 │
│   121 │   │   │   │   wallet,                                                                    │
│   122 │   │   │   │   netuid,         

TypeError: create_pow() got an unexpected keyword argument 'TPB'

Expected behavior

Should register with pow.

Screenshots

No response

Environment

Ubuntu 20.04

Additional context

No response

ifrit98 commented 9 months ago

This will be addressed in the latest release. See: https://github.com/opentensor/bittensor/pull/1595