Hi,
The below instructions were given to me by one of your representatives. They said I should ask here for a resolution.
I’m on a Windows machine running Python 3.11 via Visual Studio Code. I have installed refinitiv-data and eikon via pip. Eikon is running in the background. Scripts are running in Codebook without a problem.
I have restarted both apps and the machine. Same error. Please advise on how to proceed. Thank you
Sample script:
---------------------------------------------------------------------------
import refinitiv.data as rd
import eikon as ek
import pandas as pd
rd.set_app_key('key……..')
rd.open_session()
rd.get_data(['LSEG.L', 'VOD.L'])
---------------------------------------------------------------------------
Error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
c:\Users\acc_name\Coding\test\test1.py in line 5
2 import eikon as ek
3 import pandas as pd
----> 5 rd.set_app_key('key……..')
7 rd.open_session()
9 rd.get_data(['LSEG.L', 'VOD.L'])
File c:\Users\acc_name\AppData\Local\Programs\Python\Python311\Lib\site-packages\refinitiv\data\_tools\_lazy_loader.py:81, in attach.<locals>.__getattr__(name)
79 return attr
80 else:
---> 81 raise AttributeError(f"No {package_name} attribute {name}")
AttributeError: No refinitiv.data attribute set_app_key
---------------------------------------------------------------------------