Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1584

Python • Re: Thonny failed after Python upgrade

$
0
0
Raspberry pi Bookworm, latest upgrade and update. I upgraded to Python 3.13.7 from 3.11, and had to do this in virtual environments since the normal upgrade hasn't gotten that far yet.
In the process, Thonny is broken. The "Programming" menu selection does nothing, and if I run it from the terminal I get
> Thonny
Traceback (most recent call last):
File "/usr/local/lib/python3.13/importlib/metadata/__init__.py", line 407, in from_name
return next(iter(cls.discover(name=name)))
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/thonny", line 33, in <module>
sys.exit(load_entry_point('thonny==4.1.4', 'gui_scripts', 'thonny')())
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/thonny", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/local/lib/python3.13/importlib/metadata/__init__.py", line 960, in distribution
return Distribution.from_name(distribution_name)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/importlib/metadata/__init__.py", line 409, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for thonny
(SWUX_Meter) nvesd@raspberrypi:~/Documents/SWUX_Meter $ sudo apt install thonny
Any clue as to what happened?



Any clue as to what happened?

No.

But I can suggest that since the Thonny IDE is a third-party application not directly developed or supported by Raspberry Pi you might get an informed response by raising an Issue with its developer - https://github.com/thonny/thonny/issues

Ref: https://thonny.org/

Statistics: Posted by B.Goode — Thu Sep 25, 2025 4:18 pm



Viewing all articles
Browse latest Browse all 1584

Trending Articles