GithubHelp home page GithubHelp logo

jeff-lewis / google-shared-contacts-client Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 180 KB

Automatically exported from code.google.com/p/google-shared-contacts-client

License: Apache License 2.0

Shell 1.52% Python 98.48%

google-shared-contacts-client's Introduction

Copyright 2008 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


* Contents

shared_contacts/shared_contacts_profiles.py
  Python script for managing the shared contacts/profiles of a domain

shared_contacts/outlook.csv
  example CSV file for python shared_contacts_profiles.py --import


* Installation

The script requires the GData Python client library version 2.0.6 or higher.
Download location:
  http://code.google.com/p/gdata-python-client/downloads/list
Installation procedure:
  http://code.google.com/apis/gdata/articles/python_client_lib.html


* Usage

Imports the contacts of your-ms-outlook-contacts-file.csv into the domain.
Writes the added or updated contacts to output-file.csv:
  python shared_contacts_profiles.py [email protected] --import=your-ms-outlook-contacts-file.csv --output=output-file.csv

Exports all contacts of the domain to export-file.csv:
  python shared_contacts_profiles.py [email protected] --export=export-file.csv

Deletes all contacts of the domain:
  python shared_contacts_profiles.py [email protected] --clear


* Requirements

- Python 2.4 or higher

- ElementTree Python library (builtin with Python 2.5 and higher):
  http://pypi.python.org/pypi/elementtree/

- GData Python client library version 2.0.6 or above; available at:
  http://code.google.com/p/gdata-python-client/

- the login and password of a Google Apps domain administrator account


* Links
- GData Python client library
  http://code.google.com/p/gdata-python-client/

- Google Apps APIs discussion group
  http://groups.google.com/group/google-apps-apis

- Script home page
  http://code.google.com/p/google-shared-contacts-client/

google-shared-contacts-client's People

Watchers

James Cloos avatar

google-shared-contacts-client's Issues

How do I get source code for Win32 version? It has bugs, that are fixed in .py version.

What steps will reproduce the problem?
1. Look at issue 15 at 
http://code.google.com/p/google-shared-contacts-client/issues/detail?id=15.

What is the expected output? What do you see instead?
Same as 
http://code.google.com/p/google-shared-contacts-client/issues/detail?id=15

What version of the product are you using? On what operating system?
Same as 
http://code.google.com/p/google-shared-contacts-client/issues/detail?id=15

Please provide any additional information below.
Just the same as 
http://code.google.com/p/google-shared-contacts-client/issues/detail?id=15 but 
still in Win32 version of 1.1.3


Original issue reported on code.google.com by [email protected] on 3 Jun 2011 at 6:23

No field for contact web address

What steps will reproduce the problem?
1. Create import document (.csv)
2. Look for a field in which to store a web URL for the contact

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Version 2.0.5 on Windows XP.

Please provide any additional information below.
The closest I could find was "Other Address", which might work in a pinch,
but I get the feeling that it is supposed to be a postal-type address.

Original issue reported on code.google.com by [email protected] on 14 Dec 2009 at 1:13

can not imoprt csv containing Chinese name

I got the following error
-----------------------------------------------------------------
Outlook CSV file to import: test.csv
Export as CSV to: test-out.csv
Domain: zznode.com
Administrator: [email protected]
Password of [email protected]: 

### Importing contacts/profiles CSV file: test.csv
    1) 段晓雄 - [email protected] [add]
Skipping query pass: nothing to update or delete
Mutating 1 contact(s)...
    1) 288a69560d1c2ac0 - 段晓雄 - [email protected] [add] OK 201: Created 
added as: 288a69560d1c2ac0
Skipping Profiles mutate pass: no Profiles to mutate
Contacts/Profiles added: 1/1 - updated: 0/0 - deleted: 0/0 - errors: 0
### Total contacts/profiles added: 1/1 - updated: 0/0 - deleted: 0/0 - errors: 
0 - 
ignored: 0
### Exporting contacts/profiles to CSV file: test-out.csv
Retrieving contacts... (0 retrieved so far)
All contacts retrieved: 18 total
Traceback (most recent call last):
  File "./shared_contacts_profiles.py", line 1029, in <module>
    main()
  File "./shared_contacts_profiles.py", line 1024, in main
    contacts_manager.ExportMsOutlookCsv(contact_entries, profile_entries, 
export_csv_file)
  File "./shared_contacts_profiles.py", line 502, in ExportMsOutlookCsv
    contact_entries))
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/csv.py",

line 150, in writerows
    return self.writer.writerows(rows)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: 
ordinal not in 
range(128)
---------------------------------------------------------------
Here is my utf-8 csv file. I put a Chinese name in this file with utf8 encoding

Evironment:
Mac OSX 10.6.2
Python 2.6

Original issue reported on code.google.com by [email protected] on 26 Mar 2010 at 1:38

Attachments:

Only part of CSV is imported

What steps will reproduce the problem?

1) I have a list of 355 contacts (xlsx file) -> I convert this to a .csv
file
2) I import this file in outlook 2007
3) All contacts are imported correctly.
4) I export from outlook as a csv file again.
5) I run: shared_contacts_profiles [email protected] --clear
--import=contacts.csv

What is the expected output? What do you see instead?

- Only 55 contacts are correctly imported; the following happens during
import:

It lists 100 contacts: then the following lines are (before continuing to
the following 100 users):

'skipping query pass: nothing to update or delete'
Mutating 100 contact(s)
Skipping Progiles mutat pass: no Profiles to mutate
Contacts/Profiles added: 0/100 - updated 0/0 - deleted 0/0 - errors: 100


What version of the product are you using? On what operating system?

1.1.3 - Windows Vista 32bit

Please provide any additional information below.

It looks like only the last 55 users are imported.
I've tried shortening the list and that doesn't help. Ex: I tryied the
same procedure on only the first 54 contacts; and none are imported.
I compared the first and the last ones, and there doesn't seem to be a
noticable difference.

Original issue reported on code.google.com by [email protected] on 12 Jan 2011 at 9:33

Syntax Error: invalid syntax (line 72)

Hi - I receive a syntax error when running the script;

------------------------------------------------------

C:\Program Files\Python>python shared_contacts.py
--admin=pturner@fosterandpartn
ers.com --import=outlook.csv --output=output-file.csv
  File "shared_contacts.py", line 72
    print line
             ^
SyntaxError: invalid syntax

C:\Program Files\Python>

------------------------------------------------------

Reading the instrcutions I was expecting the script to ask for the admin
password.

What version of the product are you using?  v1.0.1
On what operating system?                   Windows XP SP2

Many thanks, Phil


Original issue reported on code.google.com by [email protected] on 19 Mar 2009 at 3:15

auto complete is not working

Hi,

two weeks ago I created over 5500 shared contacts successfully. I can see them 
under Contacts > Directory. But when I compose a Mail the auto complete 
functions is not working for this new shard contacts.

Any tips what is wrong? Thanks

Original issue reported on code.google.com by [email protected] on 29 Aug 2013 at 1:43

shared_contacts_profiles.py can't log in with two-factor authentication

What steps will reproduce the problem?
1. Enable two-factor authentication on your Google Apps account
2. Run script

What is the expected output? What do you see instead?

The script is expected to read or modify the domain shared contacts, but it 
fails with "gdata.client.BadAuthentication: Incorrect username or password" .  
I suspect this is because my account has two-factor authentication enabled.  
When I disable two-factor authentication, the script works fine.

What version of the product are you using? On what operating system?

I can't find any version information, but it's Copyright year is 2008.  This is 
Linux, Python 2.6.6

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 20 Oct 2010 at 9:04

getting If-Match or If-None-Match header required (on batch update)

What steps will reproduce the problem?
1. python shared_contacts.py --admin=[deleted] --import=External-
Shared-Contacts.csv 

What is the expected output? What do you see instead?
Error 403: If-Match or If-None-Match header required
for each contact to be updated
Contacts added: 0/0 - updated: 0/0 - deleted: 0/16 - errors: 16


What version of the product are you using? On what operating system?
gdata 2.0.4, google-shared-contacts-client 1.0.1 , OS X 10.6

Please provide any additional information below.

Add works, but the name field gets left out. Update and delete give the 
same error. 

Original issue reported on code.google.com by [email protected] on 26 Oct 2009 at 11:00

shared_contacs_profiles.exe not updating company

What steps will reproduce the problem?
1. Export current shared contact list to csv
2. Add entries to Company field(currently blank)
3. Use same file with import

What is the expected output? What do you see instead?
Expect to see Company field updated.  Instead Company remains blank.

What version of the product are you using? On what operating system?
google-shared-contacts-client-1.1.2-Win32

Please provide any additional information below.

import csv file example
Action  ID  Name    Company Job Title   Notes
update  24eec13e887a2b6f    Dave Thompson   AEGIS Energy Services

output entry
Action  ID  Name    Company Job Title   Notes
update  24eec13e887a2b6f    Dave Thompson           


Original issue reported on code.google.com by [email protected] on 28 Oct 2010 at 12:49

Error in script if exported user profile contains more than 8 email addresses

You can easily reach 8 addresses in cases of nicknames and domain 
aliases. Each nickname gets an additional "thenickname@domain-
alias.mydomain.com" address (these are not shown in the control panel UI 
but do get email delivered by the Gmail infrastructure). So the number of 
actual email addresses for an Apps profile is: 

NumberOfEmailAddresses = NumberOfDomainAliases * (1 + 
NumberOfNicknames) 

Please change the script to better handle errors when more than 8 email 
addresses are found for user profiles. I guess there are a few options: a 
MAX_EMAIL_ADDRS constant; an option/handler to ignore errors; 
combination of these etc.

What steps will reproduce the problem?
1. Add nicknames/domain aliases to an Apps user so they have more than 
8 email addresses (use the formula above).
2. Do an export (python shared_contacts_profiles.py --admin=XXXX --
export=export-file.csv) 
3. An error will occur as below:
Traceback (most recent call last): 
File "shared_contacts_profiles.py", line 956, in <module> 
main() 
File "shared_contacts_profiles.py", line 951, in main 
contacts_manager.ExportMsOutlookCsv(contact_entries, profile_entries, 
export_csv_file) 
File "shared_contacts_profiles.py", line 504, in ExportMsOutlookCsv 
profile_entries)) 
File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python
2.6/csv.py", line 148, in writerows 
for rowdict in rowdicts: 
File "shared_contacts_profiles.py", line 807, in ContactEntryToFields 
while email.rel in email_addresses[i]: 
IndexError: list index out of range 

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 16 Feb 2010 at 9:57

.csv won't be imported dute to UnicodeEncodeError

What steps will reproduce the problem?
1. Created a .CSV in Google Spreadsheets
2. Ran the script to import that .csv into my GAFB
3. When updating contact 78 it stops and displays a UnicodeEncodeError

What is the expected output? What do you see instead?
I was expecting to update 179 rich profiles but when it gets to number 78 it 
suddenly displays the following text:

UnicodeEncodeError: 'charmap' codec can't encode character u2018 in position 
46: character maps to undefined.

What version of the product are you using? On what operating system?
1.1.3 -Win32 Windows 7 Proffesional 32 Bit.

Please provide any additional information below.
I checked the .csv file for any funny character and replaced every non-standard 
character but still get the same error, tried to split the file in 2 but It 
shows the same result. Thanks a lot in advance.

Original issue reported on code.google.com by [email protected] on 13 Apr 2012 at 10:22

Use Google Apps Script

It would be great if this functionality could be coded as a Google Apps Script 
so that people can import contacts from a Google Docs Spreadsheet and manage 
their Domain Shared Contacts from within the spreadsheet.

http://code.google.com/googleapps/appsscript/

Original issue reported on code.google.com by [email protected] on 14 Jun 2011 at 4:24

Error on line 600

Should be: Log('Error: %s' % self.status.text)

Not Log('Error: ' % self.status.text)

Original issue reported on code.google.com by [email protected] on 26 Aug 2010 at 2:59

Can't see contacts added to Domain

What steps will reproduce the problem?
1. import a csv file to the domain
2. Wait 24 hours
3. Look for a group "Shared" or a username that was added in the import.

What is the expected output? What do you see instead?
Can't see shared contacts


What version of the product are you using? On what operating system?
GData Python client library version 1.2.3

Please provide any additional information below.
The problem exists in BOTH the web login to read email provided by Google
and the Google Apps Sync for outlook.



Original issue reported on code.google.com by [email protected] on 15 Jan 2010 at 7:38

Global Address Book in Outlooks Disappeared

What steps will reproduce the problem?
1. Open Outlook
2. Open Address Book
3. Navigate to the Global Address List

What is the expected output? 
  A list of Contacts uploaded via the google-shared-contacts-client
What do you see instead?
  An empty screen with no contacts. This is seen on all computers using outlook in our domain.


What version of the product are you using?
 Outlooks 2007
 The current google-shared-contacts-client
On what operating system?
 Windows 7

Please provide any additional information below.
 We use google-shared-contacts-client to upload to our global address list, and has worked for a while but today when we came into work our global address book has gone missing.


Original issue reported on code.google.com by [email protected] on 22 Nov 2010 at 4:28

Very large import files behaving strangely

I have 25,000+ contacts to remove from shared contacts and around that same 
number to import as well.

When I try to use the script to delete 25,000+ contacts, it usually gets a 
little bit into the list (maybe 8,000-10,000) people in, and then just stops. 
Maybe a timeout? Not sure what I should do to combat this.

Original issue reported on code.google.com by [email protected] on 23 Mar 2015 at 1:22

Shared contact photo management

Can your provide fuctionality for upload/remove shared contact photo?

Description from API's Developer's Guide:

http://code.google.com/intl/ru/googleapps/domain/shared_contacts/gdata_shared_co
ntacts_api_reference.html#photo_management

Original issue reported on code.google.com by [email protected] on 3 May 2011 at 3:04

Win32 download corrupt?

What steps will reproduce the problem?
1. download the Win32 version
2. attempt to extract files
3. zip software reports no files in archive

What is the expected output? What do you see instead?

can't even get to the tool

What version of the product are you using? On what operating system?

current on Win XP SP3

Please provide any additional information below.

It seems the download archive is corrupt - I'm going to try the Linux 
version in the meantime but the Win32 would be better

Original issue reported on code.google.com by [email protected] on 8 Apr 2010 at 8:54

Syntax Error

What steps will reproduce the problem?
1. Running the script on WinXP SP3 Using Python 2.6
2. command is: C:\Python26\Google>c:\python26\python shared_contacts.py --
admin=(left out) --import=gal.csv --output=load.csv

What is the expected output? What do you see instead?
I get the 56 contact record email addresses presented to me.  When it gets 
to Mutating 56 Contact(s) it fails with the message below:

Traceback (most recent call last):
  File "shared_contacts.py", line 796, in <module>
    main()
  File "shared_contacts.py", line 782, in main
    dry_run=dry_run)
  File "shared_contacts.py", line 380, in ImportMsOutlookCsv
    mutated_result.PrintResult(action, contact_id, new_entry, details)
  File "shared_contacts.py", line 433, in PrintResult
    existing_entry = gdata.contacts.ContactEntryFromString
(self.status.text)
  File "c:\python26\lib\site-packages\gdata\contacts\__init__.py", line 
307, in
ContactEntryFromString
    return atom.CreateClassFromXMLString(ContactEntry, xml_string)
  File "c:\python26\lib\site-packages\atom\__init__.py", line 93, in 
optional_wa
rn_function
    return f(*args, **kwargs)
  File "c:\python26\lib\site-packages\atom\__init__.py", line 125, in 
CreateClas
sFromXMLString
    tree = ElementTree.fromstring(xml_string)
  File "<string>", line 85, in XML
SyntaxError: syntax error: line 1, column 0

What version of the product are you using? On what operating system?
Python 2.6, gdata 2.0.1, shared contacts 1.0.1

Original issue reported on code.google.com by [email protected] on 27 Jul 2009 at 6:43

shared_contacts_profiles.py is broken?

What steps will reproduce the problem?
1. using the script.
2.
3.

What is the expected output? What do you see instead?
a csv file exported of all contacts and profiles on a domin

What version of the product are you using? On what operating system?
red had fedora 14

Please provide any additional information below.
when i use the script that i have used many times in the past it now will not 
retrieve profiles with the following error.

Unable to retrieve profiles from an alternate domain.

When I try to upload an edit of contacts, same result.  I have parsed through 
the csv file using awk grep and sed to eliminate any non-chartwellreit.ca lines 
and then re uploaded with same result.  Is this script broken?  This has always 
worked in the past.  When I check the contacts example in the gdata python 
samples, there is some completely different crazy thing in there now that does 
not work at all.

why fix something that worked perfectly in the past.

thanks.

Original issue reported on code.google.com by [email protected] on 7 Jul 2011 at 3:23

Unathorised error since admin sdk release

What steps will reproduce the problem?
1. Run shared_contacts_profiles.exe [email protected] --export=export.csv
2. Enter password

What is the expected output? What do you see instead?
Should have the export.csv file instead receive:
### Exporting contacts/profiles to CSV file: export.csv
Retrieving contacts... (0 retrieved so far)
Traceback (most recent call last):
File "shared_contacts_profiles.py", line 1143, in <module>
File "shared_contacts_profiles.py", line 1138, in main
File "shared_contacts_profiles.py", line 531, in ExportMsOutlookCsv
File "shared_contacts_profiles.py", line 719, in writerows
File "shared_contacts_profiles.py", line 212, in GetAllContacts
File "gdata\client.pyc", line 628, in get_feed
File "gdata\client.pyc", line 305, in request
gdata.client.Unauthorized: Unauthorized - Server responded with: 401, <html><hea
d><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Error
401
(Client Error)!!1</title>

Full error in attached file.

What version of the product are you using? On what operating system?
1.1.3
Windows 7 sp1 x64

Please provide any additional information below.
Logged a ticket with enterprise support as thought was a api setting issue, 
they have advised the code probably need to be updated to be compatible with 
the new admin sdk (https://developers.google.com/admin-sdk/overview)

Original issue reported on code.google.com by [email protected] on 3 Jun 2013 at 10:30

Attachments:

Everything works, but the Name field is always blank

I'm on OS X Snow Leopard (10.6) running Python 2.6.3, gdata 2.0.4 and
google-shared-contacts-client 1.0.1.

When I add or update users everything seems to work fine, but the
outputting confirmation file (output-file.csv in the example) has all the
information I added/updated, but the name is missing.
When I export all contacts I get the same result.  All the other contact
info is present but not the name.
I've checked and double checked and the names are present in the
originating csv file.

I also searched the from the Contacts Google Apps area and found them by
searching by email.  Again, the Names were missing, but not the other info.
 Am I doing something wrong?
I used the example csv file as a template to begin with so I think the
header titles should all be right.

Original issue reported on code.google.com by [email protected] on 19 Oct 2009 at 2:13

No Department Exported?

Hi,

Great tool, but I have come accoss two minor problems which I've had a go at 
fixing, but I'm not too good with python....

1; The two output fields "Company" and "Job Title" seem to output the same 
field from within Google contacts. The field in Google Contacts is named "Job 
Title".

2; The field "Department" is not output? How can I add this to your script?

Many thanks,

Eddy



Original issue reported on code.google.com by [email protected] on 8 Jan 2012 at 8:02

Shared Contacts don't appear

I am using 1.0.1.  The script runs successfully to add a contact to the 
shared contacts - it says it was successful in the adds and gives me a 
correct csv output.  But the contacts never appear.  I should be able to 
see them listed in Contacts, right?  I've waited over 24 hours and still 
nothing.  Any ideas?

Original issue reported on code.google.com by [email protected] on 26 Mar 2009 at 3:08

Write a script without any warning

What steps will reproduce the problem?
I created a batch file like this ;

shared_contacts_profiles.exe [email protected] --password= --clear 
--import=C:\GAL\11.csv --output=C:\GAL\Global1.csv

What is the expected output? What do you see instead?

It asks Y or N for clear command. Is there any way to automatically select "Y" 
without an warning ? I want to write a script for update automatically GAL 
update script from active directory.

What version of the product are you using? On what operating system?

1.1.3

Please provide any additional information below.

Windows 7 SP1


Original issue reported on code.google.com by [email protected] on 7 Apr 2011 at 5:02

Shared Contacts doesn't work

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
The last version. All windows tested.

Please provide any additional information below.
Follow print screen attached with error

Original issue reported on code.google.com by [email protected] on 19 May 2014 at 6:53

Attachments:

Contacts API v3 requiring SSL?

What steps will reproduce the problem?
1. Running script with export option 

What is the expected output? What do you see instead?
  File "shared_contacts_profiles.py", line 1143, in <module>
  File "shared_contacts_profiles.py", line 1138, in main
  File "shared_contacts_profiles.py", line 531, in ExportMsOutlookCsv
  File "shared_contacts_profiles.py", line 719, in writerows
  File "shared_contacts_profiles.py", line 212, in GetAllContacts
  File "gdata\client.pyc", line 628, in get_feed
  File "gdata\client.pyc", line 313, in request
gdata.client.RequestError: Server responded with: 301, <HTML>
<HEAD>
<TITLE>Moved Permanently</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Permanently</H1>
The document has moved <A HREF="https://www.google.com/m8/feeds/contacts/multise
rvice.com/full">here</A>.
</BODY>
</HTML>

What version of the product are you using? On what operating system?
1.1.3 on Windows 7 Ent.

Please provide any additional information below.
It appears the Contacts API has changed and forwarding all HTTP requests 
through HTTPS (https://developers.google.com/google-apps/contacts/v3/)

Is the google-shared-contacts-client going to be updated or is there a 
replacement product that handles SSL?  

FYI: SSL is turned off in contacts as suggested in other posts, but according 
to the Contacts API page, it doesn't appear that this is the solution as of 
March 31, 2014.


Original issue reported on code.google.com by [email protected] on 24 Apr 2014 at 4:25

Can't get shared-contacts.py to work through a proxy server

What steps will reproduce the problem?
1. behind proxy server (BlueCoat) set to not autenticate
2. set http_proxy=http://fqdn:80/ and set https_proxy=http://fqdn:80/
3. shared-contacts.py -a username@domain -p pass -e out.csv

What is the expected output? What do you see instead?

C:\google\google-shared-contacts-client-1.0.1\google-shared-contacts-client>shar
ed_contacts.py
-a user@domain -p pass -e out.csv
Export as CSV to: out.csv
Domain: ddd
Administrator: uuu
Using password passed to --password
### Exporting contacts to CSV file: out.csv
Retrieving contacts... (0 retrieved so far)
Traceback (most recent call last):
  File
"C:\google\google-shared-contacts-client-1.0.1\google-shared-contacts-client\sha
red_contacts.py",
line 796, in <module>
    main()
  File
"C:\google\google-shared-contacts-client-1.0.1\google-shared-contacts-client\sha
red_contacts.py",
line 791, in main
    contacts_manager.ExportMsOutlookCsv(contact_entries, export_csv_file)
  File
"C:\google\google-shared-contacts-client-1.0.1\google-shared-contacts-client\sha
red_contacts.py",
line 401, in ExportMsOutlookCsv
    contact_entries))
  File "c:\python25\lib\csv.py", line 131, in writerows
    for rowdict in rowdicts:
  File
"C:\google\google-shared-contacts-client-1.0.1\google-shared-contacts-client\sha
red_contacts.py",
line 213, in GetAllContacts
    feed = self.contacts_service.GetContactsFeed(feed_url)
  File "C:\Python25\Lib\site-packages\gdata\contacts\service.py", line 95,
in GetContactsFeed
    return self.Get(uri, converter=gdata.contacts.ContactsFeedFromString)
  File "C:\Python25\Lib\site-packages\gdata\service.py", line 1025, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'Invalid value for
Cache-Control option &#39;max-stale&#39;', 'reason': 'Bad Request'}



What version of the product are you using? On what operating system?
windows server 2003 R2 SP2
python 2.5.4 or python 2.4.4
gdata 1.3.1
shared-contacts 1.0.1

Please provide any additional information below.

python 2.6 gives a different error behind proxy. I can run the same command
on a Windows XP system at home (not behind the proxy)

Original issue reported on code.google.com by [email protected] on 10 Jun 2009 at 7:09

Shared Profile does not accept "

What steps will reproduce the problem?
1. import a profile with the field Business Address
2. set the value as "Street 1, City name, Country" including quotation 
marks
3.

What is the expected output? What do you see instead?
If accepted, the address should be uploaded with the profile all in one 
field as shown in the export of contacts from google, instead there are a 
few errors displayed

What version of the product are you using? On what operating system?
r21 of shared_contacts_profiles.py

Please provide any additional information below.
Good job so far, profiles uploaded without address works fine.

Original issue reported on code.google.com by [email protected] on 9 Feb 2010 at 9:35

Socket error: 10060, 'Operation timed out'

What steps will reproduce the problem?
1. Install share contact client
2. Try to load contacts
3. >shared_contacts_profiles.exe --admin=admin.informa
[email protected] --import=carregaContactes.csv
Outlook CSV file to import: carregaContactes.csv
Domain: upf.edu
Administrator: [email protected]
Password of [email protected]:
Traceback (most recent call last):
  File "shared_contacts_profiles.py", line 1143, in <module>
  File "shared_contacts_profiles.py", line 1117, in main
  File "gdata\client.pyc", line 435, in client_login
  File "gdata\client.pyc", line 334, in request_client_login_token
  File "atom\http_core.pyc", line 396, in request
  File "atom\http_core.pyc", line 465, in _http_request
  File "httplib.pyc", line 856, in endheaders
  File "httplib.pyc", line 728, in _send_output
  File "httplib.pyc", line 695, in send
  File "httplib.pyc", line 1130, in connect
  File "<string>", line 1, in connect
socket.error: (10060, 'Operation timed out')

What is the expected output? What do you see instead?
Load the contacts

What version of the product are you using? On what operating system?
1.1.3

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 May 2012 at 9:43

Outdated gdata in win32 binary

What steps will reproduce the problem?
1. Download google-shared-contacts-client-1.1.3-Win32.zip

The binary package is outdated as server side API changed. 

update packed dependency to gdata-2.0.18 should fix the problem.

Original issue reported on code.google.com by [email protected] on 25 Apr 2014 at 7:29

"Company" overwritten by "Job Title" on import.

What steps will reproduce the problem?
1. import a new contact that has both a company and a job title
2. export the results to a .csv

What is the expected output? What do you see instead?
   I expected to see the same data I added instead the "Company" field was
overwritten with the "Job Title". So now the "Company" and "Job Title" are
the same and the "Company" data has been lost.

What version of the product are you using? On what operating system?
   1.1.1-Win32 on Win XP SP3

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 26 Feb 2010 at 11:50

Export Field ""Name" no field First Name, Middle Name, Last Name, and Suffix.

The Name field has precedence over First Name, Middle Name, Last Name, and
Suffix.
To export in excel file and sort by Last Name, it is a real problem

What steps will reproduce the problem?
1. export for other database
2. sort impossible because only Name field
3.

What is the expected output? What do you see instead?
export in First Name, Middle Name, Last Name, and Suffix.

What version of the product are you using? On what operating system?
Phython26 windows XP

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 May 2010 at 10:47

Order of fields created = order of display in UI. Fax appears before phone and is non intuitive to end users.

What steps will reproduce the problem?
1. Cause the library to create a new contact with business phone and 
business fax details.
2. View the contact in the UI (contacts manager)
3. Notice that the Work Fax appears before the Work details (when viewed 
from top to bottom) 

What is the expected output? What do you see instead?
I would have expected that it was better to display the Work (business 
phone) before the fax. Using this with an organisation we have had many 
end users provide feedback that this is not intuitive for them and they are 
called a person's fax number by mistake.

What version of the product are you using? On what operating system?
1.1 on OS X

Please provide any additional information below.
The code frag is 
 self.primary_phone_numbers = ( # Field name, relation, priority
        ('Business Fax', gdata.data.WORK_FAX_REL, 0),
        ('Business Phone', gdata.data.WORK_REL, 0),
        ('Business Phone 2', gdata.data.WORK_REL, 1),
        ('Home Fax', gdata.data.HOME_FAX_REL, 0),
        ('Home Phone', gdata.data.HOME_REL, 0),
        ('Home Phone 2', gdata.data.HOME_REL, 1),
        ('Other Phone', gdata.data.OTHER_REL, 0 ),
        ('Mobile Phone', gdata.data.MOBILE_REL, 0),
        ('Pager', gdata.data.PAGER_REL, 0),

As you can see, the fields are added alphabetical order. I have cleared 
shared contacts and re-ordered the code and when re-run all is OK. The 
same cannot be easily done for users (profiles). I'd have to write a script to 
delete the fields and then re-add them in the required order. FYI, GADS 
also suffers from this "add fields in alpha order" issue.

Original issue reported on code.google.com by [email protected] on 4 Feb 2010 at 2:47

Attachments:

No module named atom

What steps will reproduce the problem?
1. I follow the steps described under Usage
(http://code.google.com/p/google-shared-contacts-client/wiki/Usage), and I
am 100% sure I entered everything correctly.

2. I get this error: 
Traceback (most recent call last):
  File "shared_contacts.py", line 24, in <module>
    import atom
ImportError: No module named atom

3. That's it.

What is the expected output? What do you see instead?
I expected some sort of success message, but instead I get this:
Traceback (most recent call last):
  File "shared_contacts.py", line 24, in <module>
    import atom
ImportError: No module named atom


What version of the product are you using? On what operating system?
Mac OS 10.6.1, Python 2.6.4, Gdata 2.0.4

Please provide any additional information below.
I have verified that Python is installed (using "python -V"). I haven't
been able to verify the install of Gdata, but I have tried copying the
folder "src" into the google-shared-contacts-client folder, so it can be
loaded from there. -no luck!

Original issue reported on code.google.com by [email protected] on 9 Nov 2009 at 9:07

Export missing email address.

What steps will reproduce the problem?
1. Ubuntu 10.04.3 LTS
2. Install gdata-2.0.16 for all users
3. Run python shared_contacts_profiles.py 
[email protected] --export=export-file.csv

What is the expected output? What do you see instead?
I expect to get a csv file will all the shared contacts and all of the shared 
contact details.  Instead I get a csv file with all of the shared contacts - 
but most entries are missing the email address.

What version of the product are you using? On what operating system?

google-shared-contacts-client.1.1.3.tar.gz, other version info is above.

Please provide any additional information below.


Regards,


Warren.

Original issue reported on code.google.com by [email protected] on 20 Feb 2012 at 10:02

Error export CSV

What steps will reproduce the problem?
1.Running the command
2. shared_contacts_profiles.exe  [email protected] 
--export=directoriojr.csv

3. It shows the error:
### Exporting contacts/profiles to CSV file: directoriojr.csv
Retrieving contacts... (0 retrieved so far)
Traceback (most recent call last):
  File "shared_contacts_profiles.py", line 1143, in <module>
  File "shared_contacts_profiles.py", line 1138, in main
  File "shared_contacts_profiles.py", line 531, in ExportMsOutlookCsv
  File "shared_contacts_profiles.py", line 719, in writerows
  File "shared_contacts_profiles.py", line 212, in GetAllContacts
  File "gdata\client.pyc", line 628, in get_feed
  File "gdata\client.pyc", line 305, in request
gdata.client.Unauthorized: Unauthorized - Server responded with: 401, <html><hea
d><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Erro
r 401 (Client Error)!!1</title> <style type="text/css">*{margin:0;padding:0}html
,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15
px}body{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADVCAM
 ...................

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
google-shared-contacts-client-1.1.3-Win32

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 28 Jan 2013 at 3:56

This returns 301 error


When I run to download.It ends with below.
Probably, some libraries are out of date. Could anyone rebuild the exe?

Thanks

C:\google-shared-contacts-client>shared_contacts_profiles.exe 
[email protected] --password=******** --export=export-file.csv
Export as CSV to: export-file.csv

Domain: hogehoge.com
Administrator: [email protected]
Using password passed to --password
### Exporting contacts/profiles to CSV file: export-file.csv
Retrieving contacts... (0 retrieved so far)
Traceback (most recent call last):
  File "shared_contacts_profiles.py", line 1143, in <module>
  File "shared_contacts_profiles.py", line 1138, in main
  File "shared_contacts_profiles.py", line 531, in ExportMsOutlookCsv
  File "shared_contacts_profiles.py", line 719, in writerows
  File "shared_contacts_profiles.py", line 212, in GetAllContacts
  File "gdata\client.pyc", line 628, in get_feed
  File "gdata\client.pyc", line 313, in request
gdata.client.RequestError: Server responded with: 301, <HTML>
<HEAD>
<TITLE>Moved Permanently</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Permanently</H1>
The document has moved <A 
HREF="https://www.google.com/m8/feeds/contacts/hogehoge.com/full">here</A>.
</BODY>

Original issue reported on code.google.com by [email protected] on 17 Jul 2014 at 9:33

UnicodeDecodeError

What steps will reproduce the problem?
1. Exported csv from Outlook 2007.
2. Tried to import into Shared Contacts.
3. Get unicode error:
<snipped other "File" lines>
  File "/path.../contacts/google-shared-contacts-client/atom/__init__.py",
line 185, in _AddMembersToElementTree
    tree.text = self.text.decode(MEMBER_STRING_ENCODING)
  File "encodings/utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0x91 in position 330:
unexpected code byte

What is the expected output? What do you see instead?
Successful import of contacts, but saw the error message instead.  No
contacts were imported.  Test import with sample .csv and it worked fine.     

What version of the product are you using? On what operating system?
1.0.1 on Ubuntu Gutsy 7.10.

Please provide any additional information below.
Thanks!
Pete

Original issue reported on code.google.com by [email protected] on 22 Apr 2009 at 9:45

Using https

How to get google-shared-contacts-client-1.1.3-Win32.zip to work with https 
after the Contacts API began redirecting HTTP GET requests to HTTPS as of March 
31, 2014.

Original issue reported on code.google.com by kdyning on 30 May 2014 at 6:01

New API

Hi 

Since new API I'm not able to use google-shared-contacts-client V1.1.3

Do you know how to modify ?

Thanks Regards

Original issue reported on code.google.com by [email protected] on 28 May 2015 at 11:05

Provide py2exe compiled version of script to simplify things for admins

This is a feature request not an issue/bug report but I think it would
greatly simplify the setup and thus increase the number of admins who use
this tool.  I suggest that you offer in the downloads section a Win32
executable of the script compiled with py2exe.

Py2Exe is freely downloadable at:

http://www.py2exe.org/

generating a .exe file from the script, gdata libraries and python binaries
is a quick process, a simple tutorial is available at:

http://www.py2exe.org/index.cgi/Tutorial

Thanks for considering this!

Jay Lee

Original issue reported on code.google.com by [email protected] on 7 May 2009 at 12:52

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.