Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing address book #1

Open
abarbaccia opened this issue Nov 21, 2010 · 0 comments
Open

Error parsing address book #1

abarbaccia opened this issue Nov 21, 2010 · 0 comments

Comments

@abarbaccia
Copy link

Bryan,

Like what you've done here - thanks for the good work utilizing the imobiledevice library :)

I have things correctly integrated with conduit (i believe) but am getting some error on the sync. I believe its parsing related and i've isolated it to the contacts module.

Paste of the python error out:

[ModuleWrapper ][WARNING] Could not load icon phone-apple-iphone for iPhone (ModuleWrapper.py:168)
WARNING:ModuleWrapper:Could not load icon phone-apple-iphone for iPhone
[Syncronization ][CRITICAL] UNKNOWN SYNCHRONIZATION ERROR
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 743, in run
self.one_way_sync(self.source, sink)
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 498, in one_way_sync
self._put_data(source, sink, data, dataRid)
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 338, in _put_data
put_data(source, sink, sourceData, sourceDataRid, False)
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 41, in put_data
sinkDataLUID)
File "/usr/lib/conduit/modules/EvolutionModule/EvolutionModule.py", line 95, in put
rid = self._create_object(obj)
File "/usr/lib/conduit/modules/EvolutionModule/EvolutionModule.py", line 151, in _create_object
obj = evolution.ebook.EContact(vcard=contact.get_vcard_string())
File "/usr/lib/pymodules/python2.6/conduit/datatypes/Contact.py", line 32, in get_vcard_string
return self.vcard.serialize()
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 186, in serialize
return behavior.serialize(self, buf, lineLength, validate)
File "/usr/lib/pymodules/python2.6/vobject/behavior.py", line 157, in serialize
out = base.defaultSerialize(transformed, buf, lineLength)
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 947, in defaultSerialize
child.serialize(outbuf, lineLength, validate=False)
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 186, in serialize
return behavior.serialize(self, buf, lineLength, validate)
File "/usr/lib/pymodules/python2.6/vobject/behavior.py", line 158, in serialize
if undoTransform: obj.transformToNative()
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 122, in transformToNative
return self.behavior.transformToNative(self)
File "/usr/lib/pymodules/python2.6/vobject/vcard.py", line 270, in transformToNative
obj.value = Address(**dict(zip(ADDRESS_ORDER, splitFields(obj.value))))
File "/usr/lib/pymodules/python2.6/vobject/vcard.py", line 213, in splitFields
stringToTextValues(string, listSeparator=';', charList=';')]
File "/usr/lib/pymodules/python2.6/vobject/icalendar.py", line 1681, in stringToTextValues
raise ParseError("error: illegal escape sequence: '%s'" % (char,))
ParseError: "error: illegal escape sequence: '\n'"
(Synchronization.py:751)
CRITICAL:Syncronization:UNKNOWN SYNCHRONIZATION ERROR
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 743, in run
self.one_way_sync(self.source, sink)
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 498, in one_way_sync
self._put_data(source, sink, data, dataRid)
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 338, in _put_data
put_data(source, sink, sourceData, sourceDataRid, False)
File "/usr/lib/pymodules/python2.6/conduit/Synchronization.py", line 41, in put_data
sinkDataLUID)
File "/usr/lib/conduit/modules/EvolutionModule/EvolutionModule.py", line 95, in put
rid = self._create_object(obj)
File "/usr/lib/conduit/modules/EvolutionModule/EvolutionModule.py", line 151, in _create_object
obj = evolution.ebook.EContact(vcard=contact.get_vcard_string())
File "/usr/lib/pymodules/python2.6/conduit/datatypes/Contact.py", line 32, in get_vcard_string
return self.vcard.serialize()
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 186, in serialize
return behavior.serialize(self, buf, lineLength, validate)
File "/usr/lib/pymodules/python2.6/vobject/behavior.py", line 157, in serialize
out = base.defaultSerialize(transformed, buf, lineLength)
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 947, in defaultSerialize
child.serialize(outbuf, lineLength, validate=False)
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 186, in serialize
return behavior.serialize(self, buf, lineLength, validate)
File "/usr/lib/pymodules/python2.6/vobject/behavior.py", line 158, in serialize
if undoTransform: obj.transformToNative()
File "/usr/lib/pymodules/python2.6/vobject/base.py", line 122, in transformToNative
return self.behavior.transformToNative(self)
File "/usr/lib/pymodules/python2.6/vobject/vcard.py", line 270, in transformToNative
obj.value = Address(**dict(zip(ADDRESS_ORDER, splitFields(obj.value))))
File "/usr/lib/pymodules/python2.6/vobject/vcard.py", line 213, in splitFields
stringToTextValues(string, listSeparator=';', charList=';')]
File "/usr/lib/pymodules/python2.6/vobject/icalendar.py", line 1681, in stringToTextValues
raise ParseError("error: illegal escape sequence: '%s'" % (char,))
ParseError: "error: illegal escape sequence: '\n'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant