Issue #24 resolved

Can't get transmissionrpc to work with Python2.7 on MacOSX

Anonymous created an issue

Hi,

Just installed transmissionrpc with easy_install on macosX using Python2.7.

Please help!

I get:

laTC = transmissionrpc.Client(address='localhost', port="9091") File "build/bdist.macosx-10.3-fat/egg/transmissionrpc/transmission.py", line 286, in init File "build/bdist.macosx-10.3-fat/egg/transmissionrpc/transmission.py", line 692, in get_session File "build/bdist.macosx-10.3-fat/egg/transmissionrpc/transmission.py", line 364, in _request File "build/bdist.macosx-10.3-fat/egg/transmissionrpc/transmission.py", line 329, in _http_query File "build/bdist.macosx-10.3-fat/egg/transmissionrpc/transmission.py", line 213, in request File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 391, in open response = self._open(req, data) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _open '_open', req) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 369, in _call_chain result = func(*args) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1173, in http_open return self.do_open(httplib.HTTPConnection, req) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1142, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 946, in request self._send_request(method, url, body, headers) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 986, in _send_request self.putheader(hdr, value) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 924, in putheader str = '%s: %s' % (header, '\r\n\t'.join(values)) TypeError: sequence item 0: expected string, int found

Comments (5)

  1. Log in to comment