diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b8c5e88..9a3377fa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,23 @@ All notable changes to **Pipecat** will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - ## [Unreleased] +### Changed + +- Pipecat 0.0.69 forced `uvloop` event loop on Linux on macOS. Unfortunately, + this is causing issue in some systems. So, `uvloop` is not enabled by default + anymore. If you want to use `uvloop` you can just set the `asyncio` event + policy before starting your agent with: + +```python +asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) +``` + ### Fixed -- Fixed an issue where `OutputAudioRawFrame.transport_destination` was being - reset to `None` instead of retaining its intended value before sending the +- Fixed an issue where `OutputAudioRawFrame.transport_destination` was being + reset to `None` instead of retaining its intended value before sending the audio frame to `write_audio_frame`. - Fixed a typo in Livekit transport that prevented initialization. diff --git a/pyproject.toml b/pyproject.toml index 8f9ff9f9d..06c924d12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,8 +31,7 @@ dependencies = [ "pyloudnorm~=0.1.1", "resampy~=0.4.3", "soxr~=0.5.0", - "openai~=1.70.0", - "uvloop~=0.21.0; sys_platform!='win32'" + "openai~=1.70.0" ] [project.urls] diff --git a/src/pipecat/__init__.py b/src/pipecat/__init__.py index fe1bc421e..de89130cc 100644 --- a/src/pipecat/__init__.py +++ b/src/pipecat/__init__.py @@ -4,7 +4,6 @@ # SPDX-License-Identifier: BSD 2-Clause License # -import asyncio import sys from importlib.metadata import version @@ -12,18 +11,4 @@ from loguru import logger __version__ = version("pipecat-ai") -event_loop = "asyncio" - -if sys.platform in ("linux", "darwin"): - try: - import asyncio - - import uvloop - - event_loop = f"uvloop {uvloop.__version__}" - asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) - except ImportError: - logger.debug(f"Couldn't find `uvloop`") - pass - -logger.info(f"ᓚᘏᗢ Pipecat {__version__} ({event_loop}; Python {sys.version}) ᓚᘏᗢ") +logger.info(f"ᓚᘏᗢ Pipecat {__version__} (Python {sys.version}) ᓚᘏᗢ")