I use ubuntu 20.04 and can't open terminal, settings, software updater, and ...
I had to use my vscode terminal instead.
before installing Django and python3.9, I hadn't this issue.
I think something is wrong with python on my computer.
Here are the errors I get:
error1: when I run sudo apt do-release-upgrade
in my vscode terminal:
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 11, in <module>
from UpdateManager.Core.MetaRelease import MetaReleaseCore
File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 25, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
error2: and when I run gnome-terminal
in my vscode terminal:
Traceback (most recent call last):
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
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)
when I want to run applications from GUI, no error is shown. and can't open the application.
I want to upgrade to ubuntu 21.04 and have my Python/Django projects save
Update
once I change the Python version to 3.8 and couldn't run my Python and Django projects