bittensor
bittensor copied to clipboard
Error with test_axon
Describe the bug
PR #2155 breaks test_axon e2e test.
Error log:
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /Users/bhimes/bittensor/tests/e2e_tests/multistep/neurons/templates │
│ repository/neurons/miner.py:166 in <module> │
│ │
│ 163 │
│ 164 # This is the main function, which runs the miner. │
│ 165 if __name__ == "__main__": │
│ ❱ 166 │ with Miner() as miner: │
│ 167 │ │ while True: │
│ 168 │ │ │ bt.logging.info(f"Miner running... {time.time()}") │
│ 169 │ │ │ time.sleep(5) │
│ │
│ /Users/bhimes/bittensor/tests/e2e_tests/multistep/neurons/templates │
│ repository/neurons/miner.py:41 in __init__ │
│ │
│ 38 │ """ │
│ 39 │ │
│ 40 │ def __init__(self, config=None): │
│ ❱ 41 │ │ super(Miner, self).__init__(config=config) │
│ 42 │ │ │
│ 43 │ │ # TODO(developer): Anything specific to your use case you can │
│ 44 │
│ │
│ /Users/bhimes/bittensor/venv/lib/python3.11/site-packages/template/base/mine │
│ r.py:44 in __init__ │
│ │
│ 41 │ │ add_miner_args(cls, parser) │
│ 42 │ │
│ 43 │ def __init__(self, config=None): │
│ ❱ 44 │ │ super().__init__(config=config) │
│ 45 │ │ │
│ 46 │ │ # Warn if allowing incoming requests from anyone. │
│ 47 │ │ if not self.config.blacklist.force_validator_permit: │
│ │
│ /Users/bhimes/bittensor/venv/lib/python3.11/site-packages/template/base/neur │
│ on.py:75 in __init__ │
│ │
│ 72 │ │ self.device = self.config.neuron.device │
│ 73 │ │ │
│ 74 │ │ # Log the configuration for reference. │
│ ❱ 75 │ │ bt.logging.info(self.config) │
│ 76 │ │ │
│ 77 │ │ # Build Bittensor objects │
│ 78 │ │ # These are core Bittensor classes to interact with the networ │
│ │
│ /Users/bhimes/bittensor/bittensor/btlogging/loggingmachine.py:379 in info │
│ │
│ 376 │ │
│ 377 │ def info(self, msg="", *args, prefix="", suffix="", **kwargs): │
│ 378 │ │ """Wraps info message with prefix and suffix.""" │
│ ❱ 379 │ │ msg = self._concat_msg(prefix, msg, suffix) │
│ 380 │ │ self._logger.info(msg, *args, **kwargs, stacklevel=2) │
│ 381 │ │
│ 382 │ def success(self, msg="", *args, prefix="", suffix="", **kwargs): │
│ │
│ /Users/bhimes/bittensor/bittensor/btlogging/loggingmachine.py:365 in │
│ _concat_msg │
│ │
│ 362 │ │
│ 363 │ @staticmethod │
│ 364 │ def _concat_msg(*args): │
│ ❱ 365 │ │ return " - ".join(el for el in args if el != "") │
│ 366 │ │
│ 367 │ def trace(self, msg="", *args, prefix="", suffix="", **kwargs): │
│ 368 │ │ """Wraps trace message with prefix and suffix.""" │
╰──────────────────────────────────────────────────────────────────────────────╯
TypeError: sequence item 0: expected str instance, config found
To Reproduce
Run test_axon.py
Expected behavior
Success
Screenshots
No response
Environment
macOS, staging
Additional context
No response