[Python] Why PyCharm debugger crashes with "ImportError: cannot import name 'heappush'"

Discussão em 'Python' iniciado por Stack, Julho 10, 2025.

  1. Stack

    Stack Membro Participativo

    I have a project in PyCharm that its debugger began crashing after I added a few lines of code. I deleted all the code and left a simple print in the file.

    The code is located in the folder: "heapq\test_heapq.py" as shown in screenshot 1.

    The error I get is "ImportError: cannot import name 'heappush'" as shown in screenshot 2.

    What causes this error?

    [​IMG]

    [​IMG]

    Continue reading...

Compartilhe esta Página