When running the command
eikon.get_data("SMI", ["TR.PriceClose"])
within a local python script, I'm getting an AttributeError (see attached screenshot).
@djp
Thank you for reaching out to us.
Did you call the ek.set_app_key('<app key>') before calling the get_data method?
Please make sure the LSEG Workspace application is running when executing the code.
Hi @Jirapongse,
Thanks for your response.
I've indeed called ek.set_app_key('<app key>') before calling the get_data method:
Also, LSEG Workspace is running all the while.
You cannot use eikon python library with LSEG Workspace. You need lseg-data library.
import lseg.data as ld
You may use the old version of pandas, as mentioned on this discussion.
However, you should not use the "import eikon as ek" when you have the LSEG data library.
Please check this Upgrade from using Eikon Data API to the Data library article.
Hi @Jirapongse
Thanks, but just to make sure I understand correctly - this discussion you're referring to concludes that users may not use older versions of pandas?
Correct.