Hi Antonio, I'm using Ubuntu 14.04 LTS. For me the available equivalent package is python-gobject-2-dev. It is already installed in my system. Since the default python was pointing to 2.7 before, it got installed with 2.7 compatibility. When I change my Python to 2.7 and try to import this package it works without any error.
However when I removed the python-gobject-2-dev and change the default python to Python3.6(the one my application supports) and when I try to install again with Python 3.6 compatibility, it throws the error below Preparing to unpack .../python-gobject-2-dev_2.28.6-12build1_all.deb ... > Unpacking python-gobject-2-dev (2.28.6-12build1) ... > Setting up python-gobject-2-dev (2.28.6-12build1) ... > Traceback (most recent call last): > File "/usr/bin/pycompile", line 35, in <module> > from debpython.version import SUPPORTED, debsorted, vrepr, \ > File "/usr/share/python/debpython/version.py", line 24, in <module> > from ConfigParser import SafeConfigParser > ModuleNotFoundError: No module named 'ConfigParser' > dpkg: error processing package python-gobject-2-dev (--configure): > subprocess installed post-installation script returned error exit status 1 > Errors were encountered while processing: > python-gobject-2-dev > E: Sub-process /usr/bin/dpkg returned an error code (1) > I need the python-nautilus extension to work with Python 3.6 in Ubuntu 14.04(This is the base version machine we use to generate builds). Can anybody help? On Wed, Nov 28, 2018 at 6:15 PM António Fernandes < [email protected]> wrote: > Hi. > > 'gi' likely means gobject-introspection. > > The README file in nautilus-python says it requires PyGObject 2.28.0. > PyGObject in turn requires gobject-introspection. > > Rathinam Signup via nautilus-list <[email protected]> escreveu no > dia quarta, 28/11/2018 às 12:37: > >> Hi All, >> >> When I was trying to add my custom items in nautilus file/folder >> right-click menu, I came across this extension. After some googling around >> I was able to point default python to Python3.6(using update-alternatives) >> and installed the nautilus-python from source >> https://github.com/GNOME/nautilus-python. >> >> When I try to check the installation by importing a sample package it >> fails to load the module >> $ python >> Python 3.6.3 (default, Nov 28 2018, 12:28:00) >> [GCC 4.8.4] on linux >> Type "help", "copyright", "credits" or "license" for more information. >> >>> from gi.repository import Nautilus >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> ModuleNotFoundError: No module named 'gi' >> >> Any help is appreciated. Thanks >> -- >> nautilus-list mailing list >> [email protected] >> https://mail.gnome.org/mailman/listinfo/nautilus-list > >
-- nautilus-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/nautilus-list
