Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

couchdb-dump: No python 3.5 support #296

Closed
max-lobur opened this issue Jul 26, 2016 · 1 comment
Closed

couchdb-dump: No python 3.5 support #296

max-lobur opened this issue Jul 26, 2016 · 1 comment

Comments

@max-lobur
Copy link

Getting the following trace:

Traceback (most recent call last):
  File "/usr/local/bin/couchdb-dump", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/site-packages/couchdb/tools/dump.py", line 99, in main
    bulk_size=options.bulk_size)
  File "/usr/local/lib/python3.5/site-packages/couchdb/tools/dump.py", line 66, in dump_db
    envelope = write_multipart(output, boundary=boundary)
  File "/usr/local/lib/python3.5/site-packages/couchdb/multipart.py", line 253, in write_multipart
    return MultipartWriter(fileobj, subtype=subtype, boundary=boundary)
  File "/usr/local/lib/python3.5/site-packages/couchdb/multipart.py", line 132, in __init__
    self._write_headers(headers)
  File "/usr/local/lib/python3.5/site-packages/couchdb/multipart.py", line 179, in _write_headers
    self.fileobj.write(name.encode('utf-8'))
TypeError: write() argument must be str, not bytes
@djc
Copy link
Owner

djc commented Jul 27, 2016

Thanks for filing this issue. I'll take a look as soon as possible; however, this may take a while, since I'm very busy, and this issue is not a high priority for me. If you are able to debug this further and/or provide a patch, I can probably do better at reviewing it.

@djc djc closed this as completed in 026d0d1 Jul 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants