BjarneB
Windmillโ€ข14mo agoโ€ข
19 replies
Bjarne

Python requirement issues

Hey,

I am trying to write a script that makes use of the azure opentelemetry sdk.
When I run the script below locally, it just works. But when running in windmill. I get this error:
ModuleNotFoundError: No module named 'azure.monitor.opentelemetry'

The script:
#requirements:
#azure-monitor-events-extension
#azure-monitor-opentelemetry

import logging
import os

from azure.monitor.events.extension import track_event
from azure.monitor.opentelemetry import configure_azure_monitor

# Configure the connection to the application insights instance
configure_azure_monitor(connection_string=wmill.get_variable("f/playground/appi_connection_string"))

def main(application_name: str) -> None:
    # Name indicates PROD / DEV split
    event_name = f"Running flow xyz"

    # Send the event to app insights
    track_event(event_name)


I don't understand what I am doing wrong. Am I missing an important limitation of the windmill python requirements system?
Was this page helpful?