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.

My team encountered a problem with understanding why the experiment fails on the code level. When a python file import is failed (from any reason) inside the action/probe file or even a deeper import chain, the terminal experiment error we receive is: [2020-08-11 16:57:01 ERROR] could not find Python module 'module_name.probes' in activity 'Some Activity Name'

Here’s is a simple reproduction:

  1. Add an invalid import to a probe file or into any sub import file the probe file imports. for example:
import not_exist
  1. Run the experiment with chaos run command.
  2. The above error should be displayed in the terminal.

We wonder why in this specific case, there is no Traceback? something like that:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'not_exist'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

Lawouachcommented, Aug 13, 2020

Not yet. I need to make time to reproduce and see where this fails.

github-actions[bot]commented, Aug 29, 2021

This Issue was closed because it was not reactivated after 7 days of being marked Stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding the Python Traceback
A traceback is a report containing the function calls made in your code at a specific point. Tracebacks are known by many names,...
Read more >
traceback — Print or retrieve a stack traceback — Python 3.11 ...
This module provides a standard interface to extract, format and print stack traces of Python programs. It exactly mimics the behavior of the...
Read more >
How to catch and print the full exception traceback without ...
It seems I'm the only one in the world who wants to print the stack when there's no error (= only to see...
Read more >
How to read a traceback in Python
When Python encounters an error in your code, it will print out a traceback. Let's talk about how to use tracebacks to fix...
Read more >
How Do You Read a Python Traceback? - YouTube
Learn how to read a traceback in Python so you can find out how to improve ... Python Tutorial: Using Try/Except Blocks for...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found