spyder 5.1.5 error,eikon data api

on import eikon i m getting this


[SpyderKernelApp] ERROR | Exception in message handler:

Traceback (most recent call last):

File "C:\Users\adamk.ALPHA\Anaconda3\lib\site-packages\spyder_kernels\comms\frontendcomm.py", line 164, in poll_one

asyncio.run(handler(out_stream, ident, msg))

File "C:\Users\adamk.ALPHA\Anaconda3\lib\site-packages\nest_asyncio.py", line 32, in run

return loop.run_until_complete(future)

File "C:\Users\adamk.ALPHA\Anaconda3\lib\site-packages\nest_asyncio.py", line 60, in run_until_complete

f = asyncio.ensure_future(future, loop=self)

File "C:\Users\adamk.ALPHA\Anaconda3\lib\asyncio\tasks.py", line 680, in ensure_future

raise TypeError('An asyncio.Future, a coroutine or an awaitable is '

TypeError: An asyncio.Future, a coroutine or an awaitable is required

[SpyderKernelApp] ERROR | Exception in message handler:

Traceback (most recent call last):

File "C:\Users\adamk.ALPHA\Anaconda3\lib\site-packages\spyder_kernels\comms\frontendcomm.py", line 164, in poll_one

asyncio.run(handler(out_stream, ident, msg))

File "C:\Users\adamk.ALPHA\Anaconda3\lib\site-packages\nest_asyncio.py", line 32, in run

return loop.run_until_complete(future)

File "C:\Users\adamk.ALPHA\Anaconda3\lib\site-packages\nest_asyncio.py", line 60, in run_until_complete

f = asyncio.ensure_future(future, loop=self)

File "C:\Users\adamk.ALPHA\Anaconda3\lib\asyncio\tasks.py", line 680, in ensure_future

raise TypeError('An asyncio.Future, a coroutine or an awaitable is '

TypeError: An asyncio.Future, a coroutine or an awaitable is required


using eikon 1.1.14, spyder 5.1.15, windows

any ideas?

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @k.adam

    Have you tested the issue with the newer version of the Spyder IDE yet? I have tested with Spyder 5.2.1 and it works fine with the nest_asyncio and Eikon Data API call.

Answers