Hi,
We're trying to get user started with Eikon Data API in Pycharm, but are getting the following error: AttributeError: type object 'SettingsFrame' has no attribute 'ENABLE_CONNECT_PROTOCOL'.
Eikon package has been installed succesfully and this is the error we're getting when trying to run the first bit of code.
How to get up and running?
--------------------------------------
Code:
import eikon as ek
ek.set_app_key('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
df, err = ek.get_data(
instruments = ['NOKIA.HE'],
fields = ['TR.PriceClose'],
parameters={'Sdate':'2020-10-05'}
)
display(df)
-----------------------------
runfile('K:/Scriptit/untitled1.py', wdir='K:/Scriptit')
Traceback (most recent call last):
File "<ipython-input-5-e7c8c82f5d07>", line 1, in <module>
runfile('K:/Scriptit/untitled1.py', wdir='K:/Scriptit')
File "C:\PR\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\PR\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "K:/Scriptit/untitled1.py", line 8, in <module>
import eikon as ek
File "C:\PR\Anaconda3\lib\site-packages\eikon\__init__.py", line 12, in <module>
from .Profile import *
File "C:\PR\Anaconda3\lib\site-packages\eikon\Profile.py", line 17, in <module>
from .streaming_session import DesktopSession
File "C:\PR\Anaconda3\lib\site-packages\eikon\streaming_session\__init__.py", line 3, in <module>
from .session import *
File "C:\PR\Anaconda3\lib\site-packages\eikon\streaming_session\session.py", line 8, in <module>
import httpx
File "C:\PR\Anaconda3\lib\site-packages\httpx\__init__.py", line 2, in <module>
from ._api import delete, get, head, options, patch, post, put, request, stream
File "C:\PR\Anaconda3\lib\site-packages\httpx\_api.py", line 4, in <module>
from ._client import Client, StreamContextManager
File "C:\PR\Anaconda3\lib\site-packages\httpx\_client.py", line 25, in <module>
from ._dispatch.connection_pool import ConnectionPool
File "C:\PR\Anaconda3\lib\site-packages\httpx\_dispatch\connection_pool.py", line 16, in <module>
from .connection import HTTPConnection
File "C:\PR\Anaconda3\lib\site-packages\httpx\_dispatch\connection.py", line 11, in <module>
from .http2 import HTTP2Connection
File "C:\PR\Anaconda3\lib\site-packages\httpx\_dispatch\http2.py", line 3, in <module>
import h2.connection
File "C:\PR\Anaconda3\lib\site-packages\h2\connection.py", line 23, in <module>
from .events import (
File "C:\PR\Anaconda3\lib\site-packages\h2\events.py", line 14, in <module>
from .settings import ChangedSetting, _setting_code_from_int
File "C:\PR\Anaconda3\lib\site-packages\h2\settings.py", line 20, in <module>
class SettingCodes(enum.IntEnum):
File "C:\PR\Anaconda3\lib\site-packages\h2\settings.py", line 55, in SettingCodes
ENABLE_CONNECT_PROTOCOL = SettingsFrame.ENABLE_CONNECT_PROTOCOL
AttributeError: type object 'SettingsFrame' has no attribute 'ENABLE_CONNECT_PROTOCOL'