Re: Problem in running nautilus-python in Python3
Rathinam Signup via nautilus-list <[email protected]> Wed, 28 Nov 2018 19:02:04 +0530
| Newsgroups | gmane.comp.gnome.nautilus |
|---|---|
| Message-ID | <CAPzkV1z_u-Vn3An26Uww9qdMD=kQHN8fscFNYPxiA-nk-V7a+Q@mail.gmail.com> |
--===============1105246187572137219== Content-Type: multipart/alternative; boundary="000000000000f2393b057bb9980b" --000000000000f2393b057bb9980b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C3=B3nio 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 =C3=A0s 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 arou= nd >> I was able to point default python to Python3.6(using update-alternative= s) >> 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 > > --000000000000f2393b057bb9980b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi Antonio,</div><div><br></div><div>I'm using Ub= untu 14.04 LTS. For me the available equivalent package is python-gobject-2= -dev. It is already installed in my system.<br></div><div>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 wi= thout any error.</div><div><br></div><div>However when I removed the python= -gobject-2-dev and change the default python to Python3.6(the one my applic= ation supports) and when I try to install again with Python 3.6 compatibili= ty, it throws the error below</div><div><br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20= 4,204);padding-left:1ex"><div> Preparing to unpack .../python-gobject-2-dev_2.28.6-12build1_all.deb ...<br= >Unpacking python-gobject-2-dev (2.28.6-12build1) ...<br>Setting up python-= gobject-2-dev (2.28.6-12build1) ...<br>Traceback (most recent call last):<b= r>=C2=A0 File "/usr/bin/pycompile", line 35, in <module><br= >=C2=A0=C2=A0=C2=A0 from debpython.version import SUPPORTED, debsorted, vre= pr, \<br>=C2=A0 File "/usr/share/python/debpython/version.py", li= ne 24, in <module><br>=C2=A0=C2=A0=C2=A0 from ConfigParser import Saf= eConfigParser<br>ModuleNotFoundError: No module named 'ConfigParser'= ;<br>dpkg: error processing package python-gobject-2-dev (--configure):<br>= =C2=A0subprocess installed post-installation script returned error exit sta= tus 1<br>Errors were encountered while processing:<br>=C2=A0python-gobject-= 2-dev<br>E: Sub-process /usr/bin/dpkg returned an error code (1) </div></blockquote><div><br></div><div>I need the python-nautilus extension= to work with Python 3.6 in Ubuntu 14.04(This is the base version machine w= e use to generate builds). Can anybody help?<br></div><div>=C2=A0</div></di= v><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Wed, Nov 28, 2018 at 6= :15 PM Ant=C3=B3nio Fernandes <<a href=3D"mailto:antoniojpfernandes@gmai= l.com">[email protected]</a>> wrote:<br></div><blockquote cla= ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa= dding-left:1ex"><div dir=3D"ltr">Hi.<br><br>'gi' likely means gobje= ct-introspection.<br><br>The README file in nautilus-python says it require= s PyGObject 2.28.0. PyGObject in turn requires gobject-introspection.</div>= <br><div class=3D"gmail_quote"><div dir=3D"ltr">Rathinam Signup via nautilu= s-list <<a href=3D"mailto:[email protected]" target=3D"_blank">nau= [email protected]</a>> escreveu no dia quarta, 28/11/2018 =C3=A0s 12:= 37:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b= order-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi All,</= div><div><br></div><div>When I was trying to add my custom items in nautilu= s file/folder right-click menu, I came across this extension. After some go= ogling around I was able to point default python to Python3.6(using update-= alternatives) and installed the nautilus-python from source <a href=3D"http= s://github.com/GNOME/nautilus-python" target=3D"_blank">https://github.com/= GNOME/nautilus-python</a>. <br></div><div><br></div><div>When I try to chec= k the installation by importing a sample package it fails to load the modul= e<br></div><div> $ python<br>Python 3.6.3 (default, Nov 28 2018, 12:28:00) <br>[GCC 4.8.4] o= n linux<br>Type "help", "copyright", "credits"= ; or "license" for more information.<br>>>> from gi.repo= sitory import Nautilus<br>Traceback (most recent call last):<br>=C2=A0 File= "<stdin>", line 1, in <module><br>ModuleNotFoundErro= r: No module named 'gi' <br></div><div><br></div><div>Any help is appreciated. Thanks</div></div> -- <br> nautilus-list mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">nautilus-list@= gnome.org</a><br> <a href=3D"https://mail.gnome.org/mailman/listinfo/nautilus-list" rel=3D"no= referrer" target=3D"_blank">https://mail.gnome.org/mailman/listinfo/nautilu= s-list</a></blockquote></div> </blockquote></div> --000000000000f2393b057bb9980b-- --===============1105246187572137219== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- nautilus-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/nautilus-list --===============1105246187572137219==--