I have just installed pycarddav to work with a new owncloud 4.5.7 installation.
It installed OK but when I run pycardsyncer I get the following crash:-
chris$ pycardsyncer
INFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost
INFO:urllib3.connectionpool:Starting new HTTP connection (2): localhost
Traceback (most recent call last):
File "/usr/local/bin/pycardsyncer", line 5, in
pkg_resources.run_script('pyCardDAV==0.4', 'pycardsyncer')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1239, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/EGG-INFO/scripts/pycardsyncer", line 83, in
controllers.sync(conf)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/pycarddav/controllers.py", line 135, in sync
my_dbtool.update(vcard, href, etag=etag)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/pycarddav/backend.py", line 240, in update
stuple = (href, etag, vcard.name, vcard.fname, vcard_s, status)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/pycarddav/model.py", line 193, in fname
return unicode(self['FN'][0][0])
IndexError: list index out of range
There may be some rather strange data in some of my vCards but it shouldn't crash really should it.
that bug is fixed in 5f394c1f0d23fcebec7ce27aecef5519c66ecf7a
you can either apply it manually or check out the branch "develop" which should be in a stable state
I have just installed pycarddav to work with a new owncloud 4.5.7 installation.
It installed OK but when I run pycardsyncer I get the following crash:-
chris$ pycardsyncer INFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost INFO:urllib3.connectionpool:Starting new HTTP connection (2): localhost Traceback (most recent call last): File "/usr/local/bin/pycardsyncer", line 5, in
pkg_resources.run_script('pyCardDAV==0.4', 'pycardsyncer')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1239, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/EGG-INFO/scripts/pycardsyncer", line 83, in
controllers.sync(conf)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/pycarddav/controllers.py", line 135, in sync
my_dbtool.update(vcard, href, etag=etag)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/pycarddav/backend.py", line 240, in update
stuple = (href, etag, vcard.name, vcard.fname, vcard_s, status)
File "/usr/local/lib/python2.7/dist-packages/pyCardDAV-0.4-py2.7.egg/pycarddav/model.py", line 193, in fname
return unicode(self['FN'][0][0])
IndexError: list index out of range
There may be some rather strange data in some of my vCards but it shouldn't crash really should it.