On Wed, Jun 12, 2024 at 7:17 AM 'JP 99' via Trac Users
<trac-users@googlegroups.com> wrote:
>
> Problem seems to be Python 2 code in spamfilter:
>
> ERROR: Skipping "spamfilter = tracspamfilter.api":
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.10/dist-packages/trac/loader.py", line 80, in 
> _load_eggs
>     entry.load(require=True)
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2465, 
> in load
>     return self.resolve()
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2471, 
> in resolve
>     module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/local/lib/python3.10/dist-packages/tracspamfilter/__init__.py", 
> line 17, in <module>
>     from tracspamfilter.filtersystem import *
>   File 
> "/usr/local/lib/python3.10/dist-packages/tracspamfilter/filtersystem.py", 
> line 231
>     except Exception, e:
>            ^^^^^^^^^^^^
> SyntaxError: multiple exception types must be parenthesized (filtersystem.py, 
> line 231)

Your installation is absolutely wrong.
No such code at
https://trac.edgewall.org/browser/plugins/trunk/spam-filter/tracspamfilter/filtersystem.py#L231.

Remove spamfilter completely and reinstall it.



-- 
Jun Omae <jun6...@gmail.com> (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMagZc23ANyTr6UwN6dyb1qEnxYE_NheCZUVshhxxywfi5w%40mail.gmail.com.

Reply via email to