You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "py/test.py", line 12, in <module>
task = q.wait()
File "/usr/local/lib/python3.4/dist-packages/retask/queue.py", line 159, in wait
task.__dict__ = json.loads(data[1])
File "/usr/lib/python3.4/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
Hi,
running following code:
causes following error on my system -
I am running ubuntu 14.04. Retask installed using pip. Python version
3.4.3
. I was able to fix the error by substitutingjson.loads(data[1])
tojson.loads(data[1].decode())
on lines https://github.com/kushaldas/retask/blob/master/retask/queue.py#L159 and https://github.com/kushaldas/retask/blob/master/retask/queue.py#L318 .Is that an error or am I doing it wrong?
The text was updated successfully, but these errors were encountered: