Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application.make_handler(...) is deprecated, use AppRunner API instead #24

Open
christianhorton opened this issue Jan 19, 2020 · 5 comments

Comments

@christianhorton
Copy link

christianhorton commented Jan 19, 2020

I am trying to run using python3.8 but I keep running into this

telegramircd.py:135: DeprecationWarning: Application.make_handler(...) is deprecated, use AppRunner API instead self.handler = self.app.make_handler() telegramircd.py:111: RuntimeWarning: coroutine 'TelegramBaseClient.connect' was never awaited self.proc.connect() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Traceback (most recent call last): File "telegramircd.py", line 294, in init web.get_self() File "telegramircd.py", line 290, in get_self server.user_id = data.id AttributeError: 'coroutine' object has no attribute 'id' telegramircd.py:298: RuntimeWarning: coroutine 'UserMethods.get_me' was never awaited traceback.print_exc() RuntimeWarning: Enable tracemalloc to get the object allocation traceback

I've tried older versions of aiohttp but have no luck. Any ideas?

@rodneyrod
Copy link
Contributor

Having the same issue, I think it has to do with telethon-sync being dropped upstream and there don't appear to be any mirrors.

I'm also not sure how to compile telethon into a compatible library either.

@stefansaraev
Copy link

temporary solution

diff --git a/requirements.txt b/requirements.txt
index f2fe048..472c3fa 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,6 @@
-aiohttp
+aiohttp==3.1.0
 python-magic
 ipdb
 ipython
 configargparse
-telethon-sync
+https://github.com/LonamiWebs/Telethon/archive/sync-stale.zip

@rodneyrod
Copy link
Contributor

rodneyrod commented Apr 22, 2020

Thanks confirmed this works

@MaskRay
Copy link
Owner

MaskRay commented May 22, 2020

I have applied

-telethon-sync
+https://github.com/LonamiWebs/Telethon/archive/sync-stale.zip

for now. For aio-libs/aiohttp#3157 , how to properly fix it?

@stefansaraev
Copy link

I have applied

-telethon-sync
+https://github.com/LonamiWebs/Telethon/archive/sync-stale.zip

for now. For aio-libs/aiohttp#3157 , how to properly fix it?

tbh, I tried, and failed (and well I am noob), so decided to go for an older version of aiohttp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants