ASynK icon indicating copy to clipboard operation
ASynK copied to clipboard

CardDAV support outdated?

Open ghost opened this issue 3 years ago • 1 comments

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?

ghost avatar Oct 12 '20 12:10 ghost

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

sergiodj avatar May 08 '21 19:05 sergiodj