Skip to content

security/fail2ban: missing asynchat python package #174

Description

@foxycode

When installing fail2ban, python-312 is installed as dependency, but there is no more asynchat module in python 3.12.

Possible solutions:

  • Use older python version as dependency. python-310 should work.
  • Use newer version of fail2ban which uses asyncio instead

Other fail2ban problems:

I already spent half a day investigating where the problem lies. Unfortunately, here my skills ends. I'm unable to fix it myself.

Activity

  1. iamleot commented on Jan 25, 2026

    @iamleot
    Member

    cc: @ahpnils (over to MAINTAINER)

  2. added a commit that references this issue on Jan 26, 2026
  3. added a commit that references this issue on Feb 9, 2026
  4. added a commit that references this issue on Feb 26, 2026
  5. Shruthii7 commented on Mar 15, 2026

    @Shruthii7

    Hello,

    I would like to investigate this issue. I plan to check the current fail2ban package in pkgsrc, verify which Python version it depends on, and try to reproduce the problem with the missing asynchat module in Python 3.12.

    If I can confirm the cause, I will attempt to propose a fix or a possible patch.

    Thanks!

  6. Shruthii7 commented on Mar 16, 2026

    @Shruthii7

    @foxycode Hello,

    I investigated this issue and noticed that pkgsrc currently packages fail2ban 1.0.2, while the latest upstream release is 1.1.0.

    According to the upstream release notes, version 1.1.0 specifically adds support for Python 3.12 and 3.13, which should address the missing asynchat issue reported here.

    It seems that updating the fail2ban package to 1.1.0 may resolve this issue. I would like to try preparing a package update for pkgsrc if that approach is acceptable.

    Thanks!

  7. foxycode commented on Mar 16, 2026

    @foxycode
    Author

    @Shruthii7 Perfect, I can test when you have package ready.

  8. added a commit that references this issue on Mar 16, 2026
  9. Shruthii7 commented on Mar 16, 2026

    @Shruthii7

    @foxycode
    I prepared a pkgsrc update to fail2ban 1.1.0 which should resolve the Python 3.12 asynchat issue.

    PR: #175

  10. added a commit that references this issue on Mar 26, 2026
  11. 13 remaining items

  12. added a commit that references this issue on Jul 30, 2026
  13. added a commit that references this issue on Aug 26, 2026
  14. added a commit that references this issue on Sep 6, 2026
  15. added a commit that references this issue on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions