cannot import name 'get_service_and_details_omm' from 'lseg.data.delivery._stream'

Hi,

When I try to run the code bellow, I have the error

ImportError: cannot import name 'get_service_and_details_omm' from 'lseg.data.delivery._stream'

import lseg.data as ldimport pandas as pd
ld.open_session()


# Store data in DataFrames

df1 = ld.get_data(    universe=['LCOCALMc1'],    fields=['CONTR_MNTH', 'EXPIR_DATE', 'CF_LAST'])

print(df1)

ld.close_session()

Does somebody have a solution?

Thank you

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @mathieu.nunessanches

    Thank you for reaching out to us.

    I can run the code properly.

    image.png

    You may need to verify the Python version and Python environment that you are using. In addition, you may need to reinstall the lseg-data library.