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

Python • 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?

Statistics: Posted by pblase — Thu Sep 25, 2025 3:53 pm



Viewing all articles
Browse latest Browse all 1584

Trending Articles