-
Notifications
You must be signed in to change notification settings - Fork 161
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
vdirsyncer fails on a DAV server with authentication (radicale 0.9-1) #140
Comments
|
How did you install vdirsyncer? |
|
|
How did you install vdirsyncer before you reported #138? |
|
By cloning khal git repo, and running: |
|
Alright, please try: |
|
no change :( |
|
Could you try removing the build directory? I wonder why that is showing up in the traceback. |
|
OK. There is a problem in requests_toolbelt or in my version of requests (2.4.3-5). |
|
|
|
But I don't understand why I can't import iter_field_objects from requests.packages.urllib3.filepost. The funtion is defined in /usr/lib/python2.7/dist-packages/requests/packages/urllib3/filepost.py... |
|
I honestly think you do have that problem, but with a different error message... can you do: |
|
Maybe you have a different version installed as user... take a look at |
|
The system version of requests is the only one I have installed. That's weird: |
|
OK, I found the bug: on Debian, /usr/lib/python2.7/dist-packages/requests/packages/urllib3 is a symlink to ../../urllib3, which (I don't know why) don't behave the same as the original urllib3... python interpreter: |
|
Eww... thanks for finding this. You still might want to take the approach described in the linked doc page and create a virtualenv with all your dependencies. |
|
I just reported a bug on Debian: |
|
Awesome, thanks! |
|
I suppose the symlinks were a reaction to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753578, but I am not even sure if the Debian maintainers are at fault. A symlink should work fine. |
|
I just wanted to confirm that I have the same issue, @legrostdg did you come up with a workaround? I'm on debian jessie. I haven't been able to install vdirsyncer in a virtualenv using the instructions provided here, so that doesn't work for me unfortunately. :( python requests is version 2.4.3-4 per your recommendation. :( |
|
@mrjovanovic Which problems did you run into with the virtualenv? |
|
Also, I just realized you can bypass this problem by setting the |
|
@untitaker It was actually just an issue of missing dependencies. I haven't been in dependency hell in a decade, so this was interesting. A bunch of lib*-dev are required on a default jessie install. Now it works fine with the virtualenv, although perhaps it should be added as a note in the guide? I tried your suggestion, and I'm getting: The SSL cert is self-signed, but installed as a system-wide cert. I also point to it in the config as verify = /etc/ssl/certs/certificatename.crt Maybe I should open a new issue with this? |
|
@mrjovanovic See #98. Maybe you have more luck with |
|
@mrjovanovic I'm still waiting for a fix in Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771349 :). The fix in requests is quite new https://github.com/kennethreitz/requests/pull/2375 So for now, I'm waiting for a new release of requests. |
vdirsyncer fails on a DAV server with authentication (radicale 0.9-1)
cadaver works:
The text was updated successfully, but these errors were encountered: