When I run the gnome terminal, I get the following error:
Traceback (most recent call last):
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
File "/usr/local/lib/python3.4/dist-packages/gi/__init__.py", line 39
print url
This looks strange to me because the script is in a Python 3.4 installation, but calls print as if it were a Python2 script (which is why the error occurs).
I tried reinstalling the gi package with pip3, but it continues to install this version, which looks like a python2 script.
My gnome terminal points to the / usr / bin / gnome terminal, which is a python script that starts with C #! / Usr / bin / python3.
Lines with this particular error in init .py:
if __name__ == '__main__':
try:
url = save_file()
print url
except GistError as e:
print e.value
This offers a quick solution: put the brackets in these two printed lines.
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
ImportError: No module named 'gi.repository'
Which is strange.
/usr/bin/python3, /usr/bin/gnome-Terminal.
python3 /usr/bin - python3.4, .
pip3 install gi , , gi .
Requirement already satisfied (use
Requirement already satisfied (use
.
, Pumubuntu https://github.com/Pumubuntu/Pumubuntu.
:
import sys
if len(sys.argv) == 1:
print('Importing Python modules. If one is missing get it with:\n'
' "sudo apt-get install python-..." or\n'
' "sudo apt-get install girX.Y-..." for gi.repository imports.')
, . , , gir (gir).
- ?