opentensor / bittensor

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

Update Error Message for Nominate #2160

Closed thewhaleking closed 3 weeks ago

thewhaleking commented 3 months ago

User getting error:

Failed: Subtensor returned `HotKeyAccountNotExists (Module)` error. This means: `The hotkey does not exists`

when running btcli r nominate --subtensor.network=test without first having registered to a network to have their hotkey associate.

btcli r nominate  --subtensor.network=test
Enter wallet name (default): 
Enter hotkey name (default): 
Enter password to unlock key: 
❌ Failed: error:Subtensor returned `HotKeyAccountNotExists (Module)` error. This means: `The hotkey does not exists`
Could not became a delegate on test
2024-07-23 16:37:37.393 |     WARNING      | Set weights -  - Failed: Subtensor returned `HotKeyAccountNotExists (Module)` error. This means: `The hotkey does not exists`
bittensor.logging.warning(
    prefix="Set weights", suffix="<red>Failed: </red>" + str(e)
)

This message is coming from delegation.py nominate_extrinsic function.

Discord: https://discord.com/channels/799672011265015819/1265285303334076457/1265285303334076457

roman-opentensor commented 3 months ago

I have implemented formatter function for subtensor errors. It should be used the same way as here.

thewhaleking commented 3 months ago

I have implemented formatter function for subtensor errors. It should be used the same way as here.

This appears to already be using that function. The issue is with the message itself.

roman-opentensor commented 3 months ago

I have implemented formatter function for subtensor errors. It should be used the same way as here.

This appears to already be using that function. The issue is with the message itself.

Yeah, yeah, you're right. I missed this and confused it with another topic. But the name of the card is a little confusing. nvm

ibraheem-opentensor commented 2 months ago

Proposed error message - this is done by checking the participation of the neuron in any network before making the nomination call

Image