You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Alex <my...@gmail.com> on 2018/02/21 03:20:37 UTC

pyzor internal error on some messages

Hi,

Does anyone know what could be causing this? This is on fedora with
pyzor-1.1.0-1.20170904gitd14e980

Feb 20 22:08:07.475 [28639] dbg: pyzor: network tests on, attempting Pyzor
Feb 20 22:08:13.098 [28639] dbg: pyzor: pyzor is available: /usr/bin/pyzor
Feb 20 22:08:13.100 [28639] dbg: pyzor: opening pipe: /usr/bin/pyzor
--homedir /var/spool/amavisd --log-file
/var/spool/amavisd/.pyzor/pyzor.log check <
/tmp/.spamassassin286393LEW3Dtmp
Feb 20 22:08:13.289 [28639] dbg: pyzor: [28647] finished: exit 1
Feb 20 22:08:13.289 [28639] dbg: pyzor: got response: Traceback (most
recent call last):\n File "/usr/bin/pyzor", line 429, in <module>\n
main()\n File "/usr/bin/pyzor", line 152, in main\n if not
dispatch(client, servers, config):\n File "/usr/bin/pyzor", line 260,
in check\n send_digest(digested, mock_runner, servers)\n File
"/usr/bin/pyzor", line 283, in send_digest\n _send_digest(runner,
servers[0], digested)\n File "/usr/bin/pyzor", line 274, in
_send_digest\n runner.run(server, (digested, server))\n File
"/usr/lib/python3.5/site-packages/pyzor/client.py", line 258, in run\n
response = self.routine(*args, **kwargs)\n File
"/usr/lib/python3.5/site-packages/pyzor/client.py", line 122, in
_mock_check\n pyzor.proto_version))\nTypeError: %b requires bytes, or
an object that implements __bytes__, not 'int'
Feb 20 22:08:13.290 [28639] warn: pyzor: check failed: internal error,
python traceback seen in response

It doesn't happen on every message, but it's been going on for a
while. I've only now noticed the full debug output while running
spamassassin against some individual messages.

Re: pyzor internal error on some messages

Posted by Alex <my...@gmail.com>.
Hi,

On Wed, Feb 21, 2018 at 11:45 AM, Ian Zimmerman <it...@very.loosely.org> wrote:
> On 2018-02-20 22:20, Alex wrote:
>
>> Hi,
>>
>> Does anyone know what could be causing this? This is on fedora with
>> pyzor-1.1.0-1.20170904gitd14e980
>>
>> Feb 20 22:08:07.475 [28639] dbg: pyzor: network tests on, attempting Pyzor
>> Feb 20 22:08:13.098 [28639] dbg: pyzor: pyzor is available: /usr/bin/pyzor
>> Feb 20 22:08:13.100 [28639] dbg: pyzor: opening pipe: /usr/bin/pyzor
>> --homedir /var/spool/amavisd --log-file
>
> [...]
>
>> "/usr/lib/python3.5/site-packages/pyzor/client.py", line 258, in run\n
>
> Isn't pyzor a Python 2 program?
>
> Did this start when your distro switched default Python from 2.x to 3.x ?

It appears I have both python2 and python3 installed, but this appears
to be a python3 script:

$ head -1 /usr/bin/pyzor
#!/usr/bin/python3

This is python-3.5.4.

Thanks for your help.
Alex

Re: pyzor internal error on some messages

Posted by Ian Zimmerman <it...@very.loosely.org>.
On 2018-02-20 22:20, Alex wrote:

> Hi,
> 
> Does anyone know what could be causing this? This is on fedora with
> pyzor-1.1.0-1.20170904gitd14e980
> 
> Feb 20 22:08:07.475 [28639] dbg: pyzor: network tests on, attempting Pyzor
> Feb 20 22:08:13.098 [28639] dbg: pyzor: pyzor is available: /usr/bin/pyzor
> Feb 20 22:08:13.100 [28639] dbg: pyzor: opening pipe: /usr/bin/pyzor
> --homedir /var/spool/amavisd --log-file

[...]

> "/usr/lib/python3.5/site-packages/pyzor/client.py", line 258, in run\n

Isn't pyzor a Python 2 program?

Did this start when your distro switched default Python from 2.x to 3.x ?

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.