[Python] ipdb: RuntimeWarning: 'ipdb.__main__' found in sys.modules after import of package...

Discussão em 'Python' iniciado por Stack, Agosto 28, 2025.

  1. Stack

    Stack Membro Participativo

    I am using ipdb to debug my python like below:

    python -m ipdb my_test.py -d my_input_config -o my_output


    and got the following errors:

    /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py:125: RuntimeWarning: 'ipdb.__main__' found in sys.modules after import of package 'ipdb', but prior to execution of 'ipdb.__main__'; this may result in unpredictable behaviour
    warn(RuntimeWarning(msg))


    What does this mean and how do I fix this? Thank you!

    Continue reading...

Compartilhe esta Página