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

problem #8

Open
k3fjeee opened this issue Apr 5, 2022 · 1 comment
Open

problem #8

k3fjeee opened this issue Apr 5, 2022 · 1 comment

Comments

@k3fjeee
Copy link

k3fjeee commented Apr 5, 2022

image
image

ERROR:asyncio:Task exception was never retrieved future: <Task finished name='Task-16' coro=<Dispatcher._process_polling_updates() done, defined at C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py:407> exception=TypeError("'<' not supported between instances of 'coroutine' and 'int'")> Traceback (most recent call last): File "C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 415, in _process_polling_updates for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)): File "C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 235, in process_updates return await asyncio.gather(*tasks) File "C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify response = await handler_obj.handler(*args, **partial_data) File "C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 283, in process_update return await self.callback_query_handlers.notify(update.callback_query) File "C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify response = await handler_obj.handler(*args, **partial_data) File "C:\Users\xyz\Desktop\main.py", line 92, in slogs b = w3.fromWei(b, 'ether') File "C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\site-packages\eth_utils\currency.py", line 51, in from_wei if number < MIN_WEI or number > MAX_WEI: TypeError: '<' not supported between instances of 'coroutine' and 'int' C:\Users\xyz\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py:1891: RuntimeWarning: coroutine 'Eth.getBalance' was never awaited handle = None # Needed to break cycles when an exception occurs. RuntimeWarning: Enable tracemalloc to get the object allocation traceback

@www5226448
Copy link
Owner

please plaste the complete script
It appeared that the corontine has not been awaited or the comparison operator error.

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

2 participants