diff --git a/.github/workflows/flake8-and-mypy.yml b/.github/workflows/flake8-and-mypy.yml index 1fbe094728..fe9d10159f 100644 --- a/.github/workflows/flake8-and-mypy.yml +++ b/.github/workflows/flake8-and-mypy.yml @@ -42,7 +42,8 @@ jobs: python -m venv venv source venv/bin/activate python -m pip install --upgrade pip - python -m pip install uv + # uv==0.8.6 is the last version that supports python 3.9 + python -m pip install uv==0.8.6 python -m uv sync --extra dev --active - name: Flake8 diff --git a/.github/workflows/unit-and-integration-tests.yml b/.github/workflows/unit-and-integration-tests.yml index 7bc70ae030..492b1277db 100644 --- a/.github/workflows/unit-and-integration-tests.yml +++ b/.github/workflows/unit-and-integration-tests.yml @@ -39,7 +39,8 @@ jobs: python -m venv venv source venv/bin/activate python -m pip install --upgrade pip - python -m pip install uv + # uv==0.8.6 is the last version that supports python 3.9 + python -m pip install uv==0.8.6 python -m uv sync --extra dev --active - name: Unit tests diff --git a/bittensor/utils/btlogging/loggingmachine.py b/bittensor/utils/btlogging/loggingmachine.py index a8803e70fd..32ea7315e0 100644 --- a/bittensor/utils/btlogging/loggingmachine.py +++ b/bittensor/utils/btlogging/loggingmachine.py @@ -137,7 +137,8 @@ class LoggingMachine(StateMachine, Logger): def __init__(self, config: "Config", name: str = BITTENSOR_LOGGER_NAME): # basics - super(LoggingMachine, self).__init__() + StateMachine.__init__(self) + stdlogging.Logger.__init__(self, name) self._queue = mp.Queue(-1) self._primary_loggers = {name} self._config = self._extract_logging_config(config)