Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7175

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

$
0
0

Looks like I have broken my python installation when I wanted to switch to python 3.8. Using Ubuntu 18.04. Trying to use the gi, gives the following error:

$ pythonPython 3.8.1 (default, Dec 31 2019, 18:42:42) [GCC 7.4.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> from gi.repository import GLib, GioTraceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>    from . import _giImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py)

Tried running update-alternatives for python, but it tells me there is only one python alternative configured (3.8).

Tried to reinstall python3-gi and python3.8. Still the same problem


Viewing all articles
Browse latest Browse all 7175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>