← Back to team overview

ubuntu-phone team mailing list archive

Re: manage-address-books.py gives a gi._glib.GError error

 

example - data.csv is Only 2 email and 2 phone number. can't add no more ?
why. when support .cvf

On Wed, Feb 27, 2013 at 4:19 AM, Jasper Aikema <jasper.aikema@xxxxxxxxx>wrote:

> Op 26-02-13 22:46, Bill Filler schreef:
> > On 02/26/2013 04:33 PM, Jasper Aikema wrote:
> >> Hello,
> >>
> >> When I try to remove the default contacts or recreate them with the
> >> manager-address-books.py script, it give me an error.
> >>
> >> root@localhost:~# manage-address-books.py delete
> >> /usr/lib/python2.7/dist-packages/gi/types.py:76: Warning:
> >> g_object_unref: assertion `G_IS_OBJECT (object)' failed
> >>   return info.invoke(cls, *args, **kwargs)
> >> Traceback (most recent call last):
> >>   File "/usr/bin/manage-address-books.py", line 45, in <module>
> >>     source_registry = EDataServer.SourceRegistry.new_sync(None)
> >>   File "/usr/lib/python2.7/dist-packages/gi/types.py", line 76, in
> >> constructor
> >>     return info.invoke(cls, *args, **kwargs)
> >> gi._glib.GError: Error spawning command line `dbus-launch
> >> --autolaunch=1a0fc8fc72e868fa7086831a512bdc65 --binary-syntax
> >> --close-stderr': Child process exited with code 1
> >>
> >> Does someone know why this happens?
> > Try running it as user phablet as the database exists only for that user
> >
> > #su - phablet
> > then run the script
> >
> >
> >
> >>
> >> Kind regards,
> >>
> >> Jasper Aikema
> >>
> >
>
> As user phablet, i get a Connection refused message:
>
> phablet@localhost:~$ manage-address-books.py delete
> /usr/lib/python2.7/dist-packages/gi/types.py:76: Warning:
> g_object_unref: assertion `G_IS_OBJECT (object)' failed
>   return info.invoke(cls, *args, **kwargs)
> Traceback (most recent call last):
>   File "/usr/bin/manage-address-books.py", line 45, in <module>
>     source_registry = EDataServer.SourceRegistry.new_sync(None)
>   File "/usr/lib/python2.7/dist-packages/gi/types.py", line 76, in
> constructor
>     return info.invoke(cls, *args, **kwargs)
> gi._glib.GError: Could not connect: Connection refused
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Ko Ko Ye`
+95 973147907
kokoye2007@xxxxxxxxx
http://wiki.ubuntu.com/kokoye2007
http://wiki.ubuntu.com/MyanmarTeam
http://loco.ubuntu.com/teams/ubuntu-mm

Follow ups

References