Closed GoogleCodeExporter closed 8 years ago
same error on Linux:
Traceback (most recent call last):
File "shared_contacts.py", line 790, in <module>
main()
File "shared_contacts.py", line 776, in main
dry_run=dry_run)
File "shared_contacts.py", line 383, in ImportMsOutlookCsv
mutated_result.PrintResult(action, contact_id, new_entry, details)
File "shared_contacts.py", line 436, in PrintResult
existing_entry = gdata.contacts.ContactEntryFromString(self.status.text)
File "/home/user/google-shared-contacts-client/gdata/contacts/__init__.py", line
307, in ContactEntryFromString
return atom.CreateClassFromXMLString(ContactEntry, xml_string)
File "/home/user/google-shared-contacts-client/atom/__init__.py", line 93, in
optional_warn_function
return f(*args, **kwargs)
File "/home/user/google-shared-contacts-client/atom/__init__.py", line 125, in
CreateClassFromXMLString
tree = ElementTree.fromstring(xml_string)
File "<string>", line 85, in XML
SyntaxError: syntax error: line 1, column 0
Using:
Python 2.6.2, gdata 2.0.1, shared contacts 1.0.1
CSV file exported from Outlook 2003, windows CSV (UTF-8 Unicode English text)
Original comment by blinkid...@gmail.com
on 19 Aug 2009 at 3:57
[deleted comment]
The script seems to be encountering an error on any row that has the "Company
Main
Phone" field populated, in spite of it being a valid field for import. I've
moved
the data from that field to another one and it runs without
issue on a 2800 line CSV that used to fail on the first entry with that field
populated (reliably stopping at line 182).
The same error is also encountered on contact items over 2KB, it would be nice
if the
error reporting had the server response, or at least validated the data to
conform to
the pre-reqs instead of just exiting and leaving it up to the user to find the
problem. That said, user input is the problem here.
Original comment by blinkid...@gmail.com
on 26 Aug 2009 at 6:40
Hi guys we just fixed q little issue on the "Company Main Phone" field. Could
some of you please try with the new
version? (i.e. v1.1.2) and let us know.
If this still do not work for you please attach a file that provokes the issue.
Original comment by api.nico...@gtempaccount.com
on 19 Apr 2010 at 3:51
Original issue reported on code.google.com by
ggill...@gmail.com
on 27 Jul 2009 at 6:43