OK -- I've fixed things in my own installation so that spam is being filtered and I've sent a pull request.
On 16 October 2015 at 00:08, Stephen McDonald <[email protected]> wrote: > Sounds like a bug, patch welcome. > > On Fri, Oct 16, 2015 at 10:06 AM, Christian Hill <[email protected]> > wrote: > >> I have found that Akismet spam filtering isn't working for me with Python >> 3.3-- after a bit of investigating, the problem seems to be in >> mezzanine.utils.views.is_spam_akismet. The following Exception is always >> being raised: >> >> try: >> response = urlopen(Request(api_url, urlencode(data), headers)).read() >> except Exception: >> return False >> >> and is "POST data should be bytes or an iterable of bytes. It cannot be >> of type str" this seems to be a Python 3.3 thing, and it works if I >> (re-?)encode data as utf-8 after it has been urlencoded: >> urlencode(data).encode('utf-8'). >> >> Is this a bug? Can anyone shed any light on this? With the Exception >> being silently caught, nothing gets classified as spam. >> Christian >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Stephen McDonald > http://jupo.org > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Learning Scientific Programming with Python scipython.com: | @scipython3 <https://twitter.com/scipython3> -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
