milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

Python 3.4 http client #133

Open mariusmuntean opened 8 years ago

mariusmuntean commented 8 years ago

Hi,

I just switched to Python 3.4 due to the need to use async/await. I'm having the following problem in http/client.py

File "/home/pi/Projects/PyCam/ParsePy/parse_rest/connection.py", line 130, in execute response = urlopen(request, timeout=CONNECTION_TIMEOUT) File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.4/urllib/request.py", line 455, in open response = self._open(req, data) File "/usr/lib/python3.4/urllib/request.py", line 473, in _open '_open', req) File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain result = func(*args) File "/usr/lib/python3.4/urllib/request.py", line 1217, in https_open context=self._context, check_hostname=self._check_hostname) File "/usr/lib/python3.4/urllib/request.py", line 1174, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/usr/lib/python3.4/http/client.py", line 1090, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.4/http/client.py", line 1123, in _send_request self.putheader(hdr, value) File "/usr/lib/python3.4/http/client.py", line 1069, in putheader value = b'\r\n\t'.join(values) TypeError: sequence item 0: expected bytes, bytearray, or an object with the buffer interface, tuple found

Any suggestions?