Status: Assigned
Owner: kxepal
Labels: Type-Defect Priority-Medium
New issue 240 by kxepal: tools/replicate isn't compatible with python 3
http://code.google.com/p/couchdb-python/issues/detail?id=240
Traceback (most recent call last):
File "couchdb/tools/replicate.py", line 122, in <module>
main()
File "couchdb/tools/replicate.py", line 75, in main
sbase, spath = findpath(parser, src)
File "couchdb/tools/replicate.py", line 34, in findpath
bits = util.urlparse(s)
AttributeError: 'module' object has no attribute 'urlparse'
and after fixing import:
Traceback (most recent call last):
File "couchdb/tools/replicate.py", line 123, in <module>
main()
File "couchdb/tools/replicate.py", line 76, in main
sbase, spath = findpath(parser, src)
File "couchdb/tools/replicate.py", line 43, in findpath
data = res.get_json(parts[:i])[2]
File "/usr/local/opt/virtualenv/couchdb3k/lib/python3.4/site-packages/couchdb/http.py",
line 555, in get_json
return self._request_json('GET', path, headers=headers, **params)
File "/usr/local/opt/virtualenv/couchdb3k/lib/python3.4/site-packages/couchdb/http.py",
line 578, in _request_json
headers=headers, **params)
File "/usr/local/opt/virtualenv/couchdb3k/lib/python3.4/site-packages/couchdb/http.py",
line 569, in _request
url = urljoin(self.url, path, **params)
File "/usr/local/opt/virtualenv/couchdb3k/lib/python3.4/site-packages/couchdb/http.py",
line 675, in urljoin
path = '/'.join([''] + [quote(s) for s in path])
File "/usr/local/opt/virtualenv/couchdb3k/lib/python3.4/site-packages/couchdb/http.py",
line 675, in <listcomp>
path = '/'.join([''] + [quote(s) for s in path])
File "/usr/local/opt/virtualenv/couchdb3k/lib/python3.4/site-packages/couchdb/http.py",
line 627, in quote
return util.urlquote(string, safe)
File "/usr/lib64/python3.4/urllib/parse.py", line 694, in quote
return quote_from_bytes(string, safe)
File "/usr/lib64/python3.4/urllib/parse.py", line 719, in quote_from_bytes
raise TypeError("quote_from_bytes() expected bytes")
TypeError: quote_from_bytes() expected bytes
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings