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 (21)

  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. uday kiran

    I had a new version of pip but still it is showing internal error after I installed matplotlib. I even tried uninstalling and again installing matplotlib but of no use.

  8. uday kiran

    %Run Traceback (most recent call last): File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 1353, in <module> fontManager = json_load(_fmcache) File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 888, in json_load with open(filename, 'r') as fh: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\DELL\.matplotlib\fontlist-v300.json'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "C:\Users\DELL.spyder-py3\", line 11, in <module> import matplotlib.pyplot as plt File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 32, in <module> import matplotlib.colorbar File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 32, in <module> import matplotlib.contour as contour File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 18, in <module> import matplotlib.font_manager as font_manager File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 1363, in <module> _rebuild() File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 1344, in _rebuild fontManager = FontManager() File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 978, in init ttffiles = findSystemFonts(paths) + findSystemFonts() File "C:\Users\DELL.thonny\Python35\lib\site-packages\matplotlib\", line 264, in findSystemFonts fontfiles.update(win32InstalledFonts(fontext=fontext)) TypeError: 'NoneType' object is not iterable

  9. Log in to comment