z4r / python-rtkit

Python Api for Request Tracker's REST interface
http://z4r.github.com/python-rtkit/
Other
68 stars 44 forks source link

ValueError: not enough values to unpack (expected 2, got 1) #48

Open darkpixel opened 8 years ago

darkpixel commented 8 years ago

After migrating an app to python 3 and installing the latest version of python-rtkit, I'm suddenly getting errors when trying to create a new ticket:

Traceback (most recent call last):
  File "/home/aaron/code/uitintranet/cw/tasks.py", line 732, in sync_cw_ticket_to_rt
    response = resource.post(path='ticket/new', payload=str(content))
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/resource.py", line 33, in post
    return self.request('POST', path, payload, headers)
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/resource.py", line 40, in request
    payload = forms.encode(payload, headers)
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/forms.py", line 138, in encode
    mf = MultipartForm(value, BOUNDARY)
  File "/home/aaron/.virtualenvs/uitintranet/lib/python3.5/site-packages/rtkit/forms.py", line 22, in __init__
    name, value = param
ValueError: not enough values to unpack (expected 2, got 1)