michael-adler / sync-google-contacts

Automatically exported from code.google.com/p/sync-google-contacts
18 stars 12 forks source link

Update contacts-sync #13

Open dkelley044 opened 4 years ago

dkelley044 commented 4 years ago

Added some minor and crude retry functionality for when data to/from google is munged, incidental "service unavailable" errors pop up, etc. limited to 5 retries, any more than that and it's probably something more serious like a UID mismatch, or a contact accessed/updated since the script run started. placed addition of retry and (and force exit on fail) before updating local index in case it fails.

adding-new-account isn't working in master latest version, when set, errors "AttributeError: 'UserContacts' object has no attribute 'email'"

mrmattwilkins commented 3 years ago

The adding-new-account is toally necessary for this to work. Otherwise you get duplicates everywhere. Do you know how to fix it?

dkelley044 commented 3 years ago

Moot issue with Google turning off the contacts API here in a week or so, need to migrate this to the people API ASAP.

On Thu, Jun 3, 2021, 7:20 PM mrmattwilkins @.***> wrote:

The adding-new-account is toally necessary for this to work. Otherwise you get duplicates everywhere. Do you know how to fix it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michael-adler/sync-google-contacts/pull/13#issuecomment-854307498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBKUFAQ4J4OJRGHRINVV53TRAZ5JANCNFSM4QV5OCRA .

mrmattwilkins commented 3 years ago

Yes. Have you made any progress on that?

On 4/06/2021, at 3:28 PM, David Kelley @.***> wrote:

 Moot issue with Google turning off the contacts API here in a week or so, need to migrate this to the people API ASAP.

On Thu, Jun 3, 2021, 7:20 PM mrmattwilkins @.***> wrote:

The adding-new-account is toally necessary for this to work. Otherwise you get duplicates everywhere. Do you know how to fix it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michael-adler/sync-google-contacts/pull/13#issuecomment-854307498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBKUFAQ4J4OJRGHRINVV53TRAZ5JANCNFSM4QV5OCRA .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

dkelley044 commented 3 years ago

Been working 70 hours a week at my day job, haven't had time to. If anyone else can that would be swell, I'm strictly amateur when it comes to python

On Fri, Jun 4, 2021, 12:32 PM mrmattwilkins @.***> wrote:

Yes. Have you made any progress on that?

On 4/06/2021, at 3:28 PM, David Kelley @.***> wrote:

 Moot issue with Google turning off the contacts API here in a week or so, need to migrate this to the people API ASAP.

On Thu, Jun 3, 2021, 7:20 PM mrmattwilkins @.***> wrote:

The adding-new-account is toally necessary for this to work. Otherwise you get duplicates everywhere. Do you know how to fix it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/michael-adler/sync-google-contacts/pull/13#issuecomment-854307498 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ADBKUFAQ4J4OJRGHRINVV53TRAZ5JANCNFSM4QV5OCRA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michael-adler/sync-google-contacts/pull/13#issuecomment-854955491, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBKUFAPF3PP6ZRIIPJJ2NTTRES5JANCNFSM4QV5OCRA .

mrmattwilkins commented 3 years ago

Yeah no worries David, all volunteers here. I'm in a very similar position. Hopefully I'll find the time somewhere!

On Sat, Jun 5, 2021 at 8:56 AM David Kelley @.***> wrote:

Been working 70 hours a week at my day job, haven't had time to. If anyone else can that would be swell, I'm strictly amateur when it comes to python

  • better than a script kiddie but by no means a professional coder, it would probably take me a couple of solid days to port this over, I haven't done any coding since last time I worked on this script, I pretty much learn what I need to as I go.

On Fri, Jun 4, 2021, 12:32 PM mrmattwilkins @.***> wrote:

Yes. Have you made any progress on that?

On 4/06/2021, at 3:28 PM, David Kelley @.***> wrote:

 Moot issue with Google turning off the contacts API here in a week or so, need to migrate this to the people API ASAP.

On Thu, Jun 3, 2021, 7:20 PM mrmattwilkins @.***> wrote:

The adding-new-account is toally necessary for this to work. Otherwise you get duplicates everywhere. Do you know how to fix it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/michael-adler/sync-google-contacts/pull/13#issuecomment-854307498

,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ADBKUFAQ4J4OJRGHRINVV53TRAZ5JANCNFSM4QV5OCRA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/michael-adler/sync-google-contacts/pull/13#issuecomment-854955491 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ADBKUFAPF3PP6ZRIIPJJ2NTTRES5JANCNFSM4QV5OCRA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/michael-adler/sync-google-contacts/pull/13#issuecomment-854993171, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVF754L5AKRV77GFB2PGWLTRE4WLANCNFSM4QV5OCRA .

mrmattwilkins commented 3 years ago

Hi, The changes were substantial to get it working with People API, so I just did it from scratch. https://github.com/mrmattwilkins/google-contacts-sync Welcome to use it if you want Cheers Matt

michael-adler commented 3 years ago

Hi, The changes were substantial to get it working with People API, so I just did it from scratch. https://github.com/mrmattwilkins/google-contacts-sync Welcome to use it if you want Cheers Matt

@mrmattwilkins Sorry I missed this before also rewriting my version for the People API. Would have switched to yours.