mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Debian isn't the only one.
This commit is contained in:
parent
e5be554449
commit
ef8e3324c6
2 changed files with 12 additions and 19 deletions
|
|
@ -6,21 +6,17 @@ For any unanswered questions or problems, see :doc:`contact`.
|
||||||
|
|
||||||
.. _debian-urllib3:
|
.. _debian-urllib3:
|
||||||
|
|
||||||
Requests-related ImportErrors on Debian-based distributions
|
Requests-related ImportErrors
|
||||||
-----------------------------------------------------------
|
-----------------------------
|
||||||
|
|
||||||
ImportError: No module named packages.urllib3.poolmanager
|
ImportError: No module named packages.urllib3.poolmanager
|
||||||
|
|
||||||
ImportError: cannot import name iter_field_objects
|
ImportError: cannot import name iter_field_objects
|
||||||
|
|
||||||
Debian has had its problems in the past with the Python requests package, see
|
Debian and nowadays even other distros make modifications to the ``requests``
|
||||||
:gh:`82` and :gh:`140`. You have several options for solving this problem:
|
package that don't play well with packages assuming a normal ``requests``. This
|
||||||
|
is due to stubbornness on both sides.
|
||||||
|
|
||||||
- Set the ``auth`` parameter of :storage:`caldav`, :storage:`carddav`, and/or
|
See :gh:`82` and :gh:`140` for past discussions. You have one option to work
|
||||||
:storage:`http` to ``basic`` or ``digest`` (not ``guess``).
|
around this, that is, to install vdirsyncer in a virtualenv, see
|
||||||
|
:ref:`manual-installation`.
|
||||||
- Upgrade your installation of the Debian requests package to at least version
|
|
||||||
``2.4.3-1``.
|
|
||||||
|
|
||||||
- If this doesn't help, install vdirsyncer in a virtualenv, see
|
|
||||||
:ref:`manual-installation`.
|
|
||||||
|
|
|
||||||
|
|
@ -31,16 +31,13 @@ del _check_python_version
|
||||||
|
|
||||||
def _detect_faulty_requests(): # pragma: no cover
|
def _detect_faulty_requests(): # pragma: no cover
|
||||||
import requests
|
import requests
|
||||||
if 'dist-packages' not in requests.__file__:
|
|
||||||
return
|
|
||||||
|
|
||||||
text = (
|
text = (
|
||||||
'{e}\n\n'
|
'Error during import: {e}\n\n'
|
||||||
'This most likely means you are running into a bug specific to '
|
'If you have installed vdirsyncer from a distro package, please file '
|
||||||
'Debian-based distributions.\n\n'
|
'a bug against that package, not vdirsyncer.\n\n'
|
||||||
'Consult {d}/problems.html#requests-related-importerrors-on-debian'
|
'Consult {d}/problems.html#requests-related-importerrors-on-debian'
|
||||||
'-based-distributions on how to deal with this, or use a different '
|
'-based-distributions on how to work around this.'
|
||||||
'operating system.'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue