Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing requirement for tracspamfilter plugin #180

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

bmispelon
Copy link
Member

While investigating something else I happened to turn on logging in trac.ini (changed log_type to stdout) and saw this line in the console while running my local version:

01:30:52 PM Trac[loader] ERROR: Skipping "spamfilter.bayes = tracspamfilter.filters.bayes": ModuleNotFoundError: No module named 'filelock'

So it seems the cause for the latest spam waves might have been that one plugin was silently being skipped because of a missing dependency 😞

After installing the filelock package the error goes away, which I assume means the plugin is active again 🤞🏻

@bmispelon bmispelon linked an issue Feb 16, 2024 that may be closed by this pull request
@charettes
Copy link
Member

Thanks for tracking this down Baptiste.

I'm surprised that the dependency is not listed in the setup.py file 🤔

https://trac.edgewall.org/browser/plugins/trunk/spam-filter/setup.py?rev=17752

Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@felixxm felixxm merged commit 93efb00 into django:main Feb 16, 2024
3 checks passed
@felixxm
Copy link
Member

felixxm commented Feb 16, 2024

Deployed 🤞

@bmispelon bmispelon deleted the restore-spambayes-plugin branch February 16, 2024 21:52
@bmispelon
Copy link
Member Author

I'm surprised that the dependency is not listed in the setup.py file 🤔

Same. I just filed an issue upstream: https://trac.edgewall.org/ticket/13742
Once that's fixed, we should be able to clean up our requirements a bit and use those extra_requires.

Thanks for the quick turnaround on this! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Antispam flags links to github.com as malicious
3 participants