Thonny unable to load packages

Issue #409 resolved
created an issue

The problem comes from the package manager When I select it, it shows the windows but next comme an "internal error" (see screen capture) I've got the same problem on a linux mint XFCE (18.3) computer and a Windows 10 laptop

Comments (16)

  1. ericd13 reporter

    I get this error whaen I open the dialog AND after I try to get something. I had previously installed packages in it and they don't show in the dialog :(

  2. ericd13 reporter

    Could it be an internet problem : the package manager could try to read a corrupted file somewhere ? The error message seems to speak about "extra data" somewhere.

  3. ericd13 reporter
    1. matplotlib and numpy were installed. After the apparition of the problems I erased thonny and re-installed it. With the same problem.

    2 . Yes I open "package manager" and get the internal error window. I close the window then I look for a package (numpy, or another), the package manager propose it, I hit "Install" The package manager loads it, install it (I believe) and then shows again the same internal error message.

    This is the same message before and after on each computer

    linux mint xfce 18.3

    windows 10

    debian stretch (with openbox)

  4. MoiraGillespie

    I'm having the same issue and getting an identical error. Was attempting to install the package for beautifulsoup and requests on windows 10. I removed python completely from my system and did a clean install of Thonny and the error still persists.

  5. Aivar Annamaa

    Looks like the error is caused by the release of pip 9.0.2.

    Older version of pip (the one included in Thonny) now shows the message about new version and this confuses Thonny.

    Quickest workaround is to upgrade pip that Thonny is using. Select "Tools => Open system shell" and enter:

    • if you are using Windows: python -m pip install --upgrade pip
    • if you are using Mac or Linux: pip3 install --upgrade pip

    Then restart Thonny and open the package manager again.

  6. Aivar Annamaa

    The workaround applies to cases where you are using Thonny default backend/interpreter (built-in virtual environment). If you have reconfigured the interpreter, then you should consider other ways for upgrading pip (eg. using system package manager in Linux).

  7. Log in to comment