[Python] Python qbittorrent-api in VSCode gives no results, no errors

Discussão em 'Python' iniciado por Stack, Setembro 12, 2025.

  1. Stack

    Stack Membro Participativo

    When using the qbittorrent-api, I get zero results when executing the code in VS Code. But when I execute the exact same code in a PowerShell window (or even in a PowerShell terminal within VS Code), I do get the expected results. Am I missing a step in setting up VS Code to work? I get no errors, just no results.

    import qbittorrentapi as qb

    client = qb.Client("localhost", port=8080, username="******", password="******")

    search_id = client.search_start(pattern="Star Trek", plugins="enabled", category="all")

    search_results = client.search_results(search_id.id, limit=5)

    print(search_results)
    # output: SearchResultsDictionary({'results': [], 'status': 'Running', 'total': 0})


    But running that exact copied and pasted code in PowerShell gives me normal, expected results.

    Attempts to Solve:

    • make sure Python is in Path
    • reinstall Python
    • make sure libraries are up-to-date
    • reinstall VS Code

    Versions:


    Continue reading...

Compartilhe esta Página