diff --git a/HISTORY.rst b/HISTORY.rst index 760f75d9..db14504d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -17,6 +17,7 @@ PlatformIO Core 5 - Better detecting of default PlatformIO project directory on Linux OS (`pull #4158 `_) - Respect disabling debugging server from "platformio.ini" passing an empty value to the `debug_server `__ option - Run library extra script only at a build process (`issue #3915 `_) +- Fixed a "module 'asyncio' has no attribute 'run'" error when launching PIO Home using Python 3.6 (`issue #4169 `_) 5.2.4 (2021-12-15) ~~~~~~~~~~~~~~~~~~ diff --git a/setup.py b/setup.py index 1b1cb8f8..6b645300 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import sys from setuptools import find_packages, setup from platformio import ( @@ -45,7 +46,7 @@ home_requirements = [ "aiofiles==0.8.*", "ajsonrpc==1.*", "starlette==0.18.*", - "uvicorn==0.17.*", + "uvicorn==%s" % ("0.17.*" if sys.version_info >= (3, 7) else "0.16.0"), "wsproto==1.0.*", ]