question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named datadog_checks.base

See original GitHub issue

Library datadog_checks.base cannot be imported anymore, however it worked perfectly fine about two weeks ago.

I am trying to create a custom Datadog Agent check using Python script. However, it keeps giving me the following error:

from checks import AgentCheck ImportError: No module named checks

I tried to import datadog_checks.checks module as well but all to no avail. The installation of library from sources did not help either.

Datadog Version: v6.16.1

Please let me know if you need more information.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ofekcommented, Feb 19, 2020

Correction: from datadog_checks.base import AgentCheck

0reactions
ypoplavscommented, Feb 26, 2020

Hello @ian28223, I can import the library using embedded python.

Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named datadog - Stack Overflow
Verify if the datadog package is installed in your environment. You can do this with this command: $ pip freeze | grep datadog....
Read more >
[Fixed] ModuleNotFoundError: No module named 'datadog'
How to Fix “ModuleNotFoundError: No module named 'datadog'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >
Custom Agent Check - Datadog Docs
Custom Agent Check. Overview. This page looks at a simple custom Agent check and the min_collection_interval . Same as regular Agent based integrations, ......
Read more >
Source code for datadog_checks.base.checks.base
Source code for datadog_checks.base.checks.base ... try: import datadog_agent from ..log import init_logging init_logging() except ImportError: from ..stubs ...
Read more >
Getting Started Writing Custom Agent Checks - RapDev
Integrations are pre-build code modules with the purpose of ... tzinfo try: from datadog_checks.base import AgentCheck except ImportError: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found