lektor / lektor-website

The main lektor website.
https://www.getlektor.com/
Other
160 stars 134 forks source link

Encoding issue with parsing response from https://pypi.python.org/pypi/virtualenv/json #168

Closed eidelbaev closed 6 years ago

eidelbaev commented 6 years ago

Fix to avoid "TypeError: the JSON object must be str, not 'bytes'" error while installing.

Traceback: curl -sf https://www.getlektor.com/install.sh | sudo sh

Welcome to Lektor

This script will install Lektor on your computer.

Installing at: bin: /usr/local/bin app: /usr/local/lib/lektor

Continue? [Yn] y Traceback (most recent call last): File "", line 142, in File "", line 130, in main File "/usr/lib/python3.5/json/init.py", line 268, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib/python3.5/json/init.py", line 312, in loads s.class.name)) TypeError: the JSON object must be str, not 'bytes'