ModuleNotFoundError: No module named 'tests.test_helpers' on running tests/run.py

Ralf Habacker ralf.habacker at freenet.de
Wed Jul 14 07:04:17 BST 2021


Hi Ebuka,
I checkout latest code from you gdb_printer repo, did run and got an
error as shown below:

$:~/src/gdb_printers> tests/run.py
[RUN][INFO]: Building CMakeLists file
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/xxx/src/gdb_printers/tests/cpp_src_test/cmake_build
[ 25%] Automatic MOC and UIC for target test_bin
[ 25%] Built target test_bin_autogen
[100%] Built target test_bin
[RUN][INFO]: Adding Printers Directory to the PYTHONPATH environment
variable
[RUN][INFO]: Starting GDB ...
Traceback (most recent call last):
  File "/home/xxx/src/gdb_printers/tests/test_qtprinters.py", line 9, in
<module>
    from tests.test_helpers import start_at_function,
stop_after_init_function, stop_after_end_function
ModuleNotFoundError: No module named 'tests.test_helpers'

Can you take a look and fix that issue ?


> [RUN][INFO]: Starting GDB ...

I suggest to add the output of the dbg_args variable to that line - it
makes debugging easier.

[RUN][INFO]: Starting GDB ... ['gdb', '--nx', '-q', '--batch', '-x',
'/home/xxx/src/gdb_printers/tests/test_qtprinters.py',
'/home/xxx/src/gdb_printers/tests/cpp_src_test/cmake_build/test_bin']

Regards
Ralf



More information about the Kde-finance-apps mailing list