TypeError: A Future, a coroutine or an awaitable is required

See original GitHub issue

When running the example on async of python at https://github.com/ccxt-dev/ccxt/wiki/Manual#synchronous-vs-asynchronous-calls , I get this error:

Traceback (most recent call last):
  File "ccxt_logger.py", line 11, in <module>
    asyncio.get_event_loop().run_until_complete(print_bitfinex_ethbtc_ticker)
  File "anaconda3/lib/python3.6/asyncio/base_events.py", line 446, in run_until_complete
    future = tasks.ensure_future(future, loop=self)
  File "anaconda3/lib/python3.6/asyncio/tasks.py", line 520, in ensure_future
    raise TypeError('A Future, a coroutine or an awaitable is required')
TypeError: A Future, a coroutine or an awaitable is required

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
xgdgsccommented, Sep 29, 2017

Thanks! Please update the wiki.

0reactions
kroitorcommented, Sep 29, 2017

Yep, there’s a typo there. Updating it now! Thanks for opening this issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: An asyncio.Future, a coroutine or an awaitable is ...
I'm trying to make an asynchronous web scraper using beautifulsoup and aiohttp.This is my initial code to start things.I'm getting a [TypeError: ...
Read more >
An asyncio.Future, a coroutine or an awaitable is required in ...
display(df). I get the following error: TypeError: An asyncio.Future, a coroutine or an awaitable is required. I launch the script in Spyder, Anaconda....
Read more >
nest_asyncio error: TypeError: An asyncio.Future, a coroutine ...
I am getting the a persistent error when loading a class through spyder console. Loading the same class on my windows os does...
Read more >
Coroutines and Tasks — Python 3.11.1 documentation
When a Future object is awaited it means that the coroutine will wait until the Future is resolved in some other place. Future...
Read more >
An asyncio.Future, a coroutine or an awaitable is required
I'm trying to make an asynchronous web scraper using beautifulsoup and aiohttp.This is my initial code to start things.I'm getting a [TypeError: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found