'ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) on python3.10

I Updated my python3 version to 3.10 now my sticky note giving this error

Traceback (most recent call last):
  File "/usr/bin/indicator-stickynotes", line 21, in <module>
    from stickynotes.gui import *
  File "/usr/share/indicator-stickynotes/stickynotes/gui.py", line 20, 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)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source