[pypy-issue] Issue #2912: TypeError: decoding Unicode is not supported when using PyCurl (pypy/pypy)
Donald Stufft
issues-reply at bitbucket.org
Mon Nov 12 11:18:10 EST 2018
New issue 2912: TypeError: decoding Unicode is not supported when using PyCurl
https://bitbucket.org/pypy/pypy/issues/2912/typeerror-decoding-unicode-is-not
Donald Stufft:
I am attempting to port an application from CPython to PyPy3, and I'm running into an error that is only occurring on PyPy when using PyCurl.
Reproduction steps are:
```
docker run --rm -it pypy:3.5-6.0.0-slim /bin/bash
apt-get update
apt-get install build-essential libffi-dev libcurl4-openssl-dev libssl-dev
pip install pycurl
pypy3 - <<$end
import pycurl
c = pycurl.Curl()
c.setopt(pycurl.URL, "https://example.com/")
print(c.getinfo(pycurl.EFFECTIVE_URL))
$end
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
TypeError: decoding Unicode is not supported
```
If I do the same thing using CPython 3.5 (or 3.6), it gives me back `https://example.com/` instead of generating a `TypeError`.
More information about the pypy-issue
mailing list