ImportError: cannot import name 'MetricsPayload'
shyam-habarakada opened this issue · comments
Describe the bug
The type MetricsPayload
described in the docs appears missing
Label the issue properly.
- Add
severity/critical
label.
To Reproduce
Steps to reproduce the behavior:
python3 -m pip install datadog-api-client
- Create a simple python script with,
#!/usr/bin/env python3
from datadog_api_client.v1 import ApiClient, ApiException, Configuration
from datadog_api_client.v1.api import metrics_api
from datadog_api_client.v1.models import Point
from datadog_api_client.v1.models import MetricsPayload
print("here...")
- Run the script
- See error
Traceback (most recent call last):
File "./test.py", line 6, in <module>
from datadog_api_client.v1.models import MetricsPayload
ImportError: cannot import name 'MetricsPayload'
Expected behavior
The MetricsPayload should be imported
Screenshots
N/a
Environment and Versions (please complete the following information):
Ubuntu 18.04
Additional context
Trying to use the API client for the first time.
Note that I also tried installing the latest from the master branch of this repo, using python3 -m pip install git+https://github.com/DataDog/datadog-api-client-python/
which gave me version datadog-api-client 1.0.0b8.dev34
. The error was still there.
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.
If you would like this issue to remain open:
-
Verify that you can still reproduce the issue in the latest version of this project.
-
Comment that the issue is still reproducible and include updated details requested in the issue template.
Hi,
This should work now, starting with beta8 up to the latest release. Let us know if it's not the case, thanks.