For Trac 1.6.x, install the plugin from repository, not PyPI.
See https://trac.edgewall.org/wiki/SpamFilter#GetthePlugin

On Wed, Jun 12, 2024 at 11:15 PM 'JP 99' via Trac Users
<[email protected]> wrote:
>
> Thanks. I see the problem - tracspamfilter in pypi (pip) hasn't been updated 
> since May-20.
>
> On Tuesday 11 June 2024 at 23:44:25 UTC+1 Jun Omae wrote:
>>
>> On Wed, Jun 12, 2024 at 7:17 AM 'JP 99' via Trac Users
>> <[email protected]> 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 <[email protected]> (大前 潤)
>
> --
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/trac-users/1e36b063-e916-4a93-841e-64b50430dfc9n%40googlegroups.com.



-- 
Jun Omae <[email protected]> (大前 潤)

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMagqJ_aR%2B01aQUQjmnNduUDEKtA0nqPdspwEKCST%3D4VuYQ%40mail.gmail.com.

Reply via email to