From 72c2dc4438facd5f8c5a8c8fbb00d1551911f4af Mon Sep 17 00:00:00 2001 From: Mirian Okradze Date: Fri, 1 May 2026 14:31:12 +0400 Subject: [PATCH 1/2] chore: update python version requirement to 3.11 in documentation and setup --- README.md | 4 ++-- docs/running_a_miner.md | 2 +- docs/running_a_validator.md | 4 ++-- setup.py | 6 ++---- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e45c2960..ed03205a 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ aggregated search results. Miners contribute search capacity and are rewarded based on result quality and volume. Expected setup steps: -- Prepare a server with Python ≥ 3.10, PM2, and a registered hotkey on netuid 22. +- Prepare a server with Python ≥ 3.11, PM2, and a registered hotkey on netuid 22. - Configure credentials for OpenAI, SerpAPI, and Apify. - Declare per-search-type concurrency in `neurons/miners/manifest.json`. - Run the axon with PM2. @@ -76,7 +76,7 @@ See the [Miner Setup Guide](./docs/running_a_miner.md) for full instructions. Validators verify miner outputs and write weights on-chain. Expected setup steps: -- Prepare a server with Python ≥ 3.10, PM2, Redis, `jq`, and a registered validator hotkey. +- Prepare a server with Python ≥ 3.11, PM2, Redis, `jq`, and a registered validator hotkey. - Configure credentials for OpenAI, Apify, ScrapingDog, and W&B. - Generate a public API access key and run the autoupdate script. diff --git a/docs/running_a_miner.md b/docs/running_a_miner.md index bb34d227..36684210 100644 --- a/docs/running_a_miner.md +++ b/docs/running_a_miner.md @@ -6,7 +6,7 @@ directly via dendrite. ## Prerequisites -- Python ≥ 3.10 +- Python ≥ 3.11 - [PM2](https://pm2.io/docs/runtime/guide/installation/) for process supervision - A registered hotkey on subnet 22 (mainnet) or 41 (testnet) diff --git a/docs/running_a_validator.md b/docs/running_a_validator.md index 3510dc1b..2482e522 100644 --- a/docs/running_a_validator.md +++ b/docs/running_a_validator.md @@ -12,7 +12,7 @@ A validator runs three PM2 processes (managed by `run.sh`): ## Prerequisites -- Python ≥ 3.10 (recommended: conda env) +- Python ≥ 3.11 (recommended: conda env) - [Redis](https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/) - [PM2](https://pm2.io/docs/runtime/guide/installation/) - `jq`, `npm` for the autoupdate loop @@ -30,7 +30,7 @@ directory is under the repo root and gitignored. Create a conda env, clone the repo, install deps: ```sh -conda create -n val python=3.10 -y +conda create -n val python=3.11 -y conda activate val git clone https://github.com/Desearch-ai/subnet-22.git diff --git a/setup.py b/setup.py index 18c46d6d..8bd6e6fa 100644 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ def read_requirements(path): include_package_data=True, author_discord="p383_54249", license="MIT", - python_requires=">=3.10", + python_requires=">=3.11", install_requires=requirements, classifiers=[ "Development Status :: 3 - Alpha", @@ -81,9 +81,7 @@ def read_requirements(path): "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Software Development", ], ) From 6a4524302d2c44f4295fdcca84b3f3dab4f54e5b Mon Sep 17 00:00:00 2001 From: Mirian Okradze Date: Fri, 1 May 2026 14:37:05 +0400 Subject: [PATCH 2/2] chore: replace asyncio.get_event_loop with get_running_loop --- neurons/validators/validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neurons/validators/validator.py b/neurons/validators/validator.py index ae93b70a..e5f8cc1b 100644 --- a/neurons/validators/validator.py +++ b/neurons/validators/validator.py @@ -382,7 +382,7 @@ async def start(self): await self.sync_available_uids() # Initial sync - self.loop = asyncio.get_event_loop() + self.loop = asyncio.get_running_loop() init_wandb(self)