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

Support for Google's CardDAV #62

Closed
geier opened this issue Jun 5, 2013 · 8 comments
Closed

Support for Google's CardDAV #62

geier opened this issue Jun 5, 2013 · 8 comments
Labels

Comments

@geier
Copy link
Owner

geier commented Jun 5, 2013

https://developers.google.com/google-apps/carddav/

@goodevilgenius
Copy link

I was wondering if this is currently possible.

I tried to do it with the following settings:

user: <my google user name>
password: <google password>
resource: https://www.googleapis.com/carddav/v1/principals/<gmail address>/lists/default

But when I tried pycardsyncer, all it returned was:

CRITICAL:root:While syncing account "google" an error occured:
  [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

@geier
Copy link
Owner Author

geier commented Jun 19, 2013

Google doesn't work yet, because it uses OAauth2 for authenticating. The error you are seeing has nothing to do with that. It looks like the ssl library cannot load an ssl cert. What did you set 'verify' in pycard.conf to?

@goodevilgenius
Copy link

I left it commented out.

@geier
Copy link
Owner Author

geier commented Jun 19, 2013

while it doesn't really matter as long as oauth2 isn't support, there probably is still a bug either in pycarddav or in requests. Could you therefore tell me what OS you are on and which version of python and requests you are using? If so, just execute these lines:

import platform
import requests
import sys

print platform.platform()
print 'python:', sys.version
print 'requests:', requests.version

and please run pycardsyncer again with the --debug option and paste the output here as well.

Thanks!

@goodevilgenius
Copy link

I'm on Ubuntu Linux 12.04.

The output of those commands is:

Linux-3.5.0-28-generic-x86_64-with-Ubuntu-12.10-quantal
python: 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2]
requests: 1.1.0

And pycardsyncer --debug returns:

DEBUG:root:Using configuration from /home/drj/.config/pycard/pycard.conf
DEBUG:root:Ignoring default:debug in configuration file
DEBUG:root:Using configuration:
DEBUG:root: accounts:
DEBUG:root:     auth: basic
DEBUG:root:     name: google
DEBUG:root:     resource: https://www.googleapis.com/carddav/v1/principals/[email protected]/lists/default/
DEBUG:root:     user: goodevilgenius
DEBUG:root:     verify: True
DEBUG:root:     write_support: 
DEBUG:root: debug: True
DEBUG:root: filename: /home/drj/.config/pycard/pycard.conf
DEBUG:root: sqlite:
DEBUG:root:     path: /home/drj/.local/share/pycardabook.db
DEBUG:root: sync:
DEBUG:root:     accounts: set(['google'])
DEBUG:root:start syncing account google
Traceback (most recent call last):
  File "/usr/local/bin/pycardsyncer", line 55, in <module>
    controllers.sync(conf)
  File "/usr/local/lib/python2.7/dist-packages/pycarddav/controllers.py", line 128, in sync
    auth=conf.account.auth)
  File "/usr/local/lib/python2.7/dist-packages/pycarddav/carddav.py", line 99, in __init__
    **self._settings)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 279, in request
    resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 374, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 213, in send
    raise SSLError(e)
requests.exceptions.SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

@geier
Copy link
Owner Author

geier commented Jun 19, 2013

thx, I'll try it myself on Ubuntu 12.04. next week, might also be connected to issue #63 or #64

@geier
Copy link
Owner Author

geier commented Apr 16, 2014

closed as won't fix, see issue #92

@geier geier closed this as completed Apr 16, 2014
@untitaker
Copy link
Contributor

See pimutils/vdirsyncer#8

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

No branches or pull requests

3 participants