Package: python3-rfc3986
Version: 1.4.0-1
Severity: important

Hi,

I’m using rfc3986 by proxy of httpx.
I keep getting these exceptions:

        req = client.build_request('GET', uri, params=params)
      File "/usr/lib/python3/dist-packages/httpx/_client.py", line 306, in 
build_request
        url = self._merge_url(url)
      File "/usr/lib/python3/dist-packages/httpx/_client.py", line 327, in 
_merge_url
        merge_url = URL(url)
      File "/usr/lib/python3/dist-packages/httpx/_models.py", line 121, in 
__init__
        self._uri_reference = rfc3986.iri_reference(url).encode()
      File "/usr/lib/python3/dist-packages/rfc3986/iri.py", line 115, in encode
        raise exceptions.MissingDependencyError(
    rfc3986.exceptions.MissingDependencyError: Could not import the 'idna' 
module and the IRI hostname requires encoding

I think rfc3986 should depend on idna.

Thanks for considering this request.

-- 
Cheers,
  Andrej

Reply via email to