Skip to content

vdirsyncer fails on a DAV server with authentication (radicale 0.9-1) #140

@legrostdg

Description

@legrostdg

vdirsyncer fails on a DAV server with authentication (radicale 0.9-1)

$ .local/bin/vdirsyncer --version
vdirsyncer, version 0.3.1
$ .local/bin/vdirsyncer --verbosity debug sync
debug: Using 0 maximal workers.

Traceback (most recent call last):
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/cli.py", line 164, in storage_instance_from_config
    return cls(**config)
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/dav.py", line 488, in __init__
    super(CaldavStorage, self).__init__(**kwargs)
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/dav.py", line 264, in __init__
    dav_header=self.dav_header)
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/dav.py", line 172, in __init__
    'auth': prepare_auth(auth, username, password),
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/http.py", line 27, in prepare_auth
    import requests_toolbelt
  File "build/bdist.linux-x86_64/egg/requests_toolbelt/__init__.py", line 21, in <module>
  File "build/bdist.linux-x86_64/egg/requests_toolbelt/multipart/__init__.py", line 16, in <module>
  File "build/bdist.linux-x86_64/egg/requests_toolbelt/multipart/encoder.py", line 12, in <module>
ImportError: cannot import name iter_field_objects

Traceback (most recent call last):
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/cli.py", line 164, in storage_instance_from_config
    return cls(**config)
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/dav.py", line 488, in __init__
    super(CaldavStorage, self).__init__(**kwargs)
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/dav.py", line 264, in __init__
    dav_header=self.dav_header)
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/dav.py", line 172, in __init__
    'auth': prepare_auth(auth, username, password),
  File "/home/user/.local/lib/python2.7/site-packages/vdirsyncer/storage/http.py", line 27, in prepare_auth
    import requests_toolbelt
  File "build/bdist.linux-x86_64/egg/requests_toolbelt/__init__.py", line 21, in <module>
  File "build/bdist.linux-x86_64/egg/requests_toolbelt/multipart/__init__.py", line 16, in <module>
  File "build/bdist.linux-x86_64/egg/requests_toolbelt/multipart/encoder.py", line 12, in <module>
ImportError: cannot import name iter_field_objects
critical: Failed to initialize my_calendars_remote.
critical: Failed to initialize my_calendars_remote.

cadaver works:

$ cadaver https://dav.example.com
Authentication required for Radicale - Password Required on server `dav.example.com':
Username: user
Password: 
dav:/> ls
Listing collection `/': succeeded.
Coll:   user                                  0  Jan  1  1970

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions