Some days ago I upgraded the python version running on my system to 3.10. Unfortunately it seems to have broken a couple of features such as the Zorin Appearance application, as well as the Synaptic package manager.
I would like my system to run Python 3.10 as I use the language a lot but in a way which does not compromise the integrity of the system.
For example, when updating to Python 3.10, Zorin Appearance wouldn't open. I ran zorin-appearance in my shell which resulted in the following error message:
Traceback (most recent call last):
File "/usr/bin/zorin-appearance", line 11, in <module>
load_entry_point('zorin-appearance==4.1', 'gui_scripts', 'zorin-appearance')()
File "/home/lvthn/.local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/lvthn/.local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point
return ep.load()
File "/home/lvthn/.local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load
return self.resolve()
File "/home/lvthn/.local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/zorin_appearance/__main__.py", line 14, in <module>
import gi
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py)
What can I do to run python 3.10 with full system functionality?
A lot of different apps can depend on python and sadly, many applications do not call on Python generically.
This means that changing the Python on your system away from default carries a lot of risks.
I often advise people that they don't.
That is a brilliant work-around though and I hope it helps others, too.