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

CardDAV support outdated? #137

Open
ghost opened this issue Oct 12, 2020 · 1 comment
Open

CardDAV support outdated? #137

ghost opened this issue Oct 12, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 12, 2020

I am trying to run a very simple carddav example from the manual:

raceback (most recent call last):
  File "./asynk.py", line 326, in <module>
    main()
  File "./asynk.py", line 318, in main
    asynk = AsynkBuilderC(uinps, config, alogger).asynk
  File "./asynk.py", line 178, in __init__
    self.validate_and_snarf_uinps(uinps)
  File "./asynk.py", line 299, in validate_and_snarf_uinps
    self._snarf_auth_creds(uinps)
  File "./asynk.py", line 207, in _snarf_auth_creds
    self.asynk._load_profile()
  File "ASynK/ASynK-2.3.1/asynk/asynk_core.py", line 597, in _load_profile
    self._login()
  File "ASynK/ASynK-2.3.1/asynk/asynk_core.py", line 85, in _login
    coll.login()
  File "ASynK/ASynK-2.3.1/asynk/state_collection.py", line 292, in login
    raise AsynkCollectionError("%s: Cannot use any CardDAV accounts" % e)
state_collection.AsynkCollectionError: cannot import name HTTPError: Cannot use any CardDAV accounts

The error is due to being unable to import from pimdb_cd import CDPIMDB, which itself is:

from caldavclientlibrary.protocol.http.util import HTTPError

Indeed, there is not such class in the Apple's caldav library.
Did you mean urllib3?

@sergiodj
Copy link

sergiodj commented May 8, 2021

FWIW, I was able to solve this by cloning https://github.com/apple/ccs-caldavclientlibrary.git and setting PYTHONPATH accordingly.

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