I got the error:
ValueError: binary mode doesn't take an encoding argument
and after a bit of investigation found I had to change open() in io.py to:
def open(self):
# Specify encoding in Python 3.
if sys.version_info >= (3,0):
if self.mode == 'wb':
kwargs = {}
else:
kwargs = {'encoding': self.encoding,
'errors': self.error_handler}
else:
kwargs = {}
try:
self.destination = open(self.destination_path, self.mode, **kwargs)
except IOError as error:
raise OutputError(error.errno, error.strerror,
self.destination_path)
self.opened = True
This allowed successful creation of the odt file although I still get a "The
system cannot find the path specified." message.
|