From 8d544103d08b17a48dc9d424db4498184e10d8a3 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 17 May 2022 23:18:25 -0500 Subject: [PATCH] Check for async_lru when importing asynchronous subpackage --- tweepy/asynchronous/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/asynchronous/__init__.py b/tweepy/asynchronous/__init__.py index 22c79b1..ff28002 100644 --- a/tweepy/asynchronous/__init__.py +++ b/tweepy/asynchronous/__init__.py @@ -10,11 +10,13 @@ Asynchronous interfaces with the Twitter API try: import aiohttp + import async_lru import oauthlib except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException( - "tweepy.asynchronous requires aiohttp and oauthlib to be installed" + "tweepy.asynchronous requires aiohttp, async_lru, and oauthlib to be " + "installed" ) from tweepy.asynchronous.streaming import AsyncStream -- 2.25.1