Ask Your Question

Phython Error when Mail merging [closed]

asked 2012-05-29 17:19:42 +0200

watchthedot gravatar image

updated 2015-10-16 04:34:17 +0200

Alex Kemp gravatar image

I'm trying to do an email Mailmerge with LibreOffice 3.4.4 (OOO340m1 (Build:402)) on Linux Mint 12.04 (64-bit) and am getting the following error when it tries to send, following a successful link to the server:

<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xa0' in position 9: ordinal not in range(128), traceback follows
  /usr/lib/python2.7/ in function meth() [return getattr(self._sock,name)(*args)]
  /usr/lib/python2.7/ in function send() [self.sock.sendall(str)]
  /usr/lib/python2.7/ in function putcmd() [self.send(str)]
  /usr/lib/python2.7/ in function rcpt() [self.putcmd("rcpt", "TO:%s%s" % (quoteaddr(recip), optionlist))]
  /usr/lib/python2.7/ in function sendmail() [(code, resp) = self.rcpt(each, rcpt_options)]
  /usr/lib/libreoffice/basis-link/program/ in function sendMailMessage() [self.server.sendmail(sendermail, truerecipients, msg.as_string())]

Driving me nuts! Anyone able to give me some pointers on solving this problem?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-16 04:34:52.115489

1 Answer

Sort by » oldest newest most voted

answered 2012-05-29 17:44:35 +0200

caolan gravatar image

Your version of 3.4.4 has been configured to use the system python of your Mint distro

I believe the problem there is basically that of i.e. your problem is similar to that of

If so, try filing a bug against your distribution and point them to this commit as a likely fix.

edit flag offensive delete link more


Thanks for this. Is there a workaround do you know? I need to get these emails out today! I have no experience of python, so would have no idea how to patch this myself

watchthedot gravatar imagewatchthedot ( 2012-05-29 18:20:19 +0200 )edit

Question Tools


Asked: 2012-05-29 17:19:42 +0200

Seen: 171 times

Last updated: May 29 '12