Skip to content

api_client.py imports non-existent field from api #460

@rodneykinney

Description

@rodneykinney

In version 0.30, this error is thrown when trying to flush metrics from a threadstats recorder:

Traceback (most recent call last):
  File "/worker/python/lib/python3.7/site-packages/datadog/threadstats/base.py", line 312, in flush
    self.reporter.flush_metrics(metrics)
  File "/worker/python/lib/python3.7/site-packages/datadog/threadstats/reporters.py", line 21, in flush_metrics
    api.Metric.send(metrics)
  File "/worker/python/lib/python3.7/site-packages/datadog/api/metrics.py", line 91, in send
    return super(Metric, cls).send(attach_host_name=attach_host_name, **metrics_dict)
  File "/worker/python/lib/python3.7/site-packages/datadog/api/resources.py", line 78, in send
    attach_host_name=attach_host_name)
  File "/worker/python/lib/python3.7/site-packages/datadog/api/api_client.py", line 84, in submit
    from datadog.api import _api_key, _application_key, _api_host, \
ImportError: cannot import name '_return_raw_response' from 'datadog.api' (/worker/python/lib/python3.7/site-packages/datadog/api/__init__.py)

It looks as though every field referenced in this import can be found in the api module except for _return_raw_response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions