every time i run this code:
import eikon as ek
ek.set_app_key("my_app_key")
df = ek.get_timeseries(["COMI.CA"], start_date="2016-01-01", end_date="2016-01-10") print(df.head())
i recive this error
]: runfile('D:/my drive/Python Projects/eikon/test001.py', wdir='D:/my drive/Python Projects/eikon') Error on checking port 9000 : HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002664A5BEB70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)) Error on checking port 9000 : HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002664A5BE748>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)) Error on checking port 36036 : HTTPConnectionPool(host='localhost', port=36036): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002664A5BE6D8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)) Error on handshake port None : Failed to parse: localhost:None Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running. Traceback (most recent call last): File "<ipython-input-6-816572c984fb>", line 1, in <module> runfile('D:/my drive/Python Projects/eikon/test001.py', wdir='D:/my drive/Python Projects/eikon') File "C:\Users\MArmia\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile execfile(filename, namespace) File "C:\Users\MArmia\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace) File "D:/my drive/Python Projects/eikon/test001.py", line 3, in <module> ek.set_app_key("af6ed7495e654418af715318c4d90a9afd864f31") File "C:\Users\MArmia\Anaconda3\lib\site-packages\eikon\Profile.py", line 48, in set_app_key get_profile().set_app_key(app_key) File "C:\Users\MArmia\Anaconda3\lib\site-packages\eikon\Profile.py", line 207, in set_app_key self.check_profile() File "C:\Users\MArmia\Anaconda3\lib\site-packages\eikon\Profile.py", line 322, in check_profile raise EikonError(-1, 'Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.') NameError: name 'EikonError' is not defined