The current unstable dev-python/vdirsyncer-0.11.2 (no stable version available) breaks with the current stable dev-python/requests-2.11.1. At the moment, there are no more current versions of requests in portage. Anyway, I currently get the error in vdirsyncer: error: Unknown error occured for my_contacts: Header value 1 must be of type str or bytes, not <class 'int'> error: Use `-vdebug` to see the full traceback. error: Unknown error occured for friends_calendar: Header value 1 must be of type str or bytes, not <class 'int'> error: Use `-vdebug` to see the full traceback. error: Unknown error occured for work_calendar: Header value 1 must be of type str or bytes, not <class 'int'> error: Use `-vdebug` to see the full traceback. error: Unknown error occured for home_calendar: Header value 1 must be of type str or bytes, not <class 'int'> error: Use `-vdebug` to see the full traceback. error: 4 out of 8 tasks failed. Running with -vdebug gives error: Unknown error occured for my_contacts: Header value 1 must be of type str or bytes, not <class 'int'> error: Use `-vdebug` to see the full traceback. debug: File "/usr/lib64/python3.4/site-packages/vdirsyncer/cli/tasks.py", line 66, in sync_collection debug: force_delete=force_delete debug: File "/usr/lib64/python3.4/site-packages/vdirsyncer/sync.py", line 216, in sync debug: b_info.prepare_idents() debug: File "/usr/lib64/python3.4/site-packages/vdirsyncer/sync.py", line 111, in prepare_idents debug: for href, etag in self.storage.list(): debug: File "/usr/lib64/python3.4/site-packages/vdirsyncer/storage/dav.py", line 568, in list debug: headers=headers) debug: File "/usr/lib64/python3.4/site-packages/vdirsyncer/storage/dav.py", line 325, in request debug: return utils.http.request(method, url, session=self._session, **more) debug: File "/usr/lib64/python3.4/site-packages/vdirsyncer/utils/http.py", line 55, in request debug: r = func(method, url, **kwargs) debug: File "/usr/lib64/python3.4/site-packages/requests/sessions.py", line 461, in request debug: prep = self.prepare_request(req) debug: File "/usr/lib64/python3.4/site-packages/requests/sessions.py", line 394, in prepare_request debug: hooks=merge_hooks(request.hooks, self.hooks), debug: File "/usr/lib64/python3.4/site-packages/requests/models.py", line 295, in prepare debug: self.prepare_headers(headers) debug: File "/usr/lib64/python3.4/site-packages/requests/models.py", line 409, in prepare_headers debug: check_header_validity(header) debug: File "/usr/lib64/python3.4/site-packages/requests/utils.py", line 800, in check_header_validity debug: "not %s" % (value, type(value))) I did some checking and it looks like requests changed how some of their validation was done: https://github.com/kennethreitz/requests/issues/3559 I'm not sure if newer versions of vdirsyncer have adjusted for this change in the code, as portage does not have newer versions available, but it's possible that a version bump would fix things. In the short term, downgrading to dev-python/requests-2.8.1 fixes the issue.
Hello, can you please update to vdirsyncer 0.14.0 and confirm if it solves the problem? Thanks
Solved in 0.14.0 version.
Late to the party, but I can confirmed it's fixed as well.
(In reply to hfk22 from comment #3) > Late to the party, but I can confirmed it's fixed as well. Thank you ! :)