Open Session for lseg.data AttributeError: module 'lseg.data._config_defaults' has no attribute 'con

Hello

I'm trying to connect to the lseg.data library via an API in Jupyter notebook and when trying to open a session as per below, I get an error message.

session = ld.session.platform.Definition( app_key = "My App Key", grant = ld.session.platform.GrantPassword( username = "My Useer Name", password = "My PWD" )).get_session()

AttributeError: module 'lseg.data._config_defaults' has no attribute 'config'

Can anyone help me figure out what the issue is? I generated the "App key" App in the web version and chose EDP API as API type.

Many thanks!

Answers

  • Hello @Andrea99

    Your app key should be correct. For the platform session, the key should be generated for EDP API. The method signature for the initialization of platform session is also correct.

    Can you please confirm that you are using the latest version of lseg data library and following all the steps and prerequisites as outlined in the quick start guide. It might help to create a new virtual environment and start clean.

  • PS, you can also enable the debugging as shown in the sample configuration file and attach the complete logs.