Opening LSEG Data library Session without Opening LSEG Desktop Workspace

Options

Hello,

In my backend, I open a session to connect to LSEG data library API and have the lseg_data.config.json configured so that it uses the LDP platform to open the session. However, when I start my application, I get a "ValueError: Session is not opened. Can't send any request". I have to then open up LSEG Desktop Workspace and then close it to then be able to open my session. How can I fix this issue? Ultimately, I want to be able to open a session without having to open LSEG Desktop Workspace.

In my code, I open my session like this:

ld.open_session(name="platform.ldp", config_name=os.getcwd()+"\controllers\lseg_configurations\lseg_data.config.json")

Answers