Error Traceback
See original GitHub issueMy 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:
- Add an invalid import to a probe file or into any sub import file the probe file imports. for example:
import not_exist
- Run the experiment with chaos run command.
- 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:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not yet. I need to make time to reproduce and see where this fails.
This Issue was closed because it was not reactivated after 7 days of being marked
Stale
.