Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] fail2ban fails on python 3.12
@ 2023-10-16  8:15 MeganerdNL
  2023-10-16  8:20 ` MeganerdNL
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: MeganerdNL @ 2023-10-16  8:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 5478 bytes --]

New issue by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/issues/46714

Description:
### Is this a new report?

Yes

### System Info

Void 6.5.7_1 x86_64 AuthenticAMD/VM uptodate rF

### Package(s) Affected

fail2ban-1.0.2

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

Yes it does: https://github.com/fail2ban/fail2ban/issues/3487

It is because `asynchat` module has been removed (amongst others) in python 3.12:
See: https://docs.python.org/3.12/whatsnew/3.12.html

### Expected behaviour

1. Byte-compile on install.
2. Start after installing.

### Actual behaviour

1. On install it will not byte-compile:

`[*] Configuring unpacked packages
fail2ban-1.0.2_2: configuring ...
Byte-compiling python3.12 code for module fail2ban...
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s'
  "1490349000 test failed.dns.ch", "^\s*test <F-ID>\S+</F-ID>"
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'<F-ID>User <F-USER>\S+</F-USER></F-ID> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'User <F-USER>\S+</F-USER> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d'
  '^'+prefix+'Received disconnect from <F-ID><ADDR> port \d+</F-ID>'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s'
  _test_variants('common', prefix="\s*\S+ sshd\[<F-MLFID>\d+</F-MLFID>\]:\s+")
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '\['
  'common[prefregex="^svc\[<F-MLFID>\d+</F-MLFID>\] connect <F-CONTENT>.+</F-CONTENT>$"'
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s'
  "1490349000 test failed.dns.ch", "^\s*test <F-ID>\S+</F-ID>"
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'<F-ID>User <F-USER>\S+</F-USER></F-ID> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'User <F-USER>\S+</F-USER> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d'
  '^'+prefix+'Received disconnect from <F-ID><ADDR> port \d+</F-ID>'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s'
  _test_variants('common', prefix="\s*\S+ sshd\[<F-MLFID>\d+</F-MLFID>\]:\s+")
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '\['
  'common[prefregex="^svc\[<F-MLFID>\d+</F-MLFID>\] connect <F-CONTENT>.+</F-CONTENT>$"'
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
Updating ldconfig(8) cache...
fail2ban-1.0.2_2: installed successfully.`

2. It will not start:

`2023-10-16 10:12:37,841 fail2ban                [9232]: ERROR   No module named 'asynchat'`

### Steps to reproduce

1. Install fail2ban
2. Start fail2ban

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: fail2ban fails on python 3.12
  2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
@ 2023-10-16  8:20 ` MeganerdNL
  2023-10-16  8:21 ` MeganerdNL
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: MeganerdNL @ 2023-10-16  8:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/issues/46714#issuecomment-1763968469

Comment:
#46700 and #46700 are related because they suffer from removed packages too, see : https://docs.python.org/3.12/whatsnew/3.12.html.

These issues probably need fixing upstream...

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: fail2ban fails on python 3.12
  2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
  2023-10-16  8:20 ` MeganerdNL
@ 2023-10-16  8:21 ` MeganerdNL
  2023-10-16  8:26 ` MeganerdNL
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: MeganerdNL @ 2023-10-16  8:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/issues/46714#issuecomment-1763968469

Comment:
#46700 and #46626 are related because they suffer from removed packages too, see : https://docs.python.org/3.12/whatsnew/3.12.html.

These issues probably need fixing upstream...

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: fail2ban fails on python 3.12
  2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
  2023-10-16  8:20 ` MeganerdNL
  2023-10-16  8:21 ` MeganerdNL
@ 2023-10-16  8:26 ` MeganerdNL
  2023-10-16  8:27 ` MeganerdNL
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: MeganerdNL @ 2023-10-16  8:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/issues/46714#issuecomment-1763968469

Comment:
#46700, #46626 and #46583 are probably related because they suffer from removed packages too, see : https://docs.python.org/3.12/whatsnew/3.12.html.

These issues probably need fixing upstream...

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: fail2ban fails on python 3.12
  2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
                   ` (2 preceding siblings ...)
  2023-10-16  8:26 ` MeganerdNL
@ 2023-10-16  8:27 ` MeganerdNL
  2023-10-20  4:10 ` [ISSUE] [CLOSED] " sgn
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: MeganerdNL @ 2023-10-16  8:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/issues/46714#issuecomment-1763968469

Comment:
#46700, #46626 and #46583 are probably related because they suffer from removed packages too, see : https://docs.python.org/3.12/whatsnew/3.12.html.

These issues probably need fixing upstream... (?)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: fail2ban fails on python 3.12
  2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
                   ` (4 preceding siblings ...)
  2023-10-20  4:10 ` [ISSUE] [CLOSED] " sgn
@ 2023-10-20  4:10 ` sgn
  2023-10-20  6:43 ` MeganerdNL
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2023-10-20  4:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/46714#issuecomment-1772048454

Comment:
https://github.com/void-linux/void-packages/commit/beb8d064fabfd14a0e009b6f17d855fa55ed54e1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [ISSUE] [CLOSED] fail2ban fails on python 3.12
  2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
                   ` (3 preceding siblings ...)
  2023-10-16  8:27 ` MeganerdNL
@ 2023-10-20  4:10 ` sgn
  2023-10-20  4:10 ` sgn
  2023-10-20  6:43 ` MeganerdNL
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2023-10-20  4:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 5515 bytes --]

Closed issue by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/issues/46714

Description:
### Is this a new report?

Yes

### System Info

Void 6.5.7_1 x86_64 AuthenticAMD/VM uptodate rF

### Package(s) Affected

fail2ban-1.0.2

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

Yes it does: https://github.com/fail2ban/fail2ban/issues/3487

It is because `asynchat` module has been removed (amongst others) in python 3.12:
See: https://docs.python.org/3.12/whatsnew/3.12.html

### Expected behaviour

1. Byte-compile on install.
2. Start after installing.

### Actual behaviour

1. On install it will not byte-compile:

```
[*] Configuring unpacked packages
fail2ban-1.0.2_2: configuring ...
Byte-compiling python3.12 code for module fail2ban...
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s'
  "1490349000 test failed.dns.ch", "^\s*test <F-ID>\S+</F-ID>"
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'<F-ID>User <F-USER>\S+</F-USER></F-ID> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'User <F-USER>\S+</F-USER> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d'
  '^'+prefix+'Received disconnect from <F-ID><ADDR> port \d+</F-ID>'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s'
  _test_variants('common', prefix="\s*\S+ sshd\[<F-MLFID>\d+</F-MLFID>\]:\s+")
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '\['
  'common[prefregex="^svc\[<F-MLFID>\d+</F-MLFID>\] connect <F-CONTENT>.+</F-CONTENT>$"'
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s'
  "1490349000 test failed.dns.ch", "^\s*test <F-ID>\S+</F-ID>"
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'<F-ID>User <F-USER>\S+</F-USER></F-ID> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S'
  '^'+prefix+'User <F-USER>\S+</F-USER> not allowed\n'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d'
  '^'+prefix+'Received disconnect from <F-ID><ADDR> port \d+</F-ID>'
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s'
  _test_variants('common', prefix="\s*\S+ sshd\[<F-MLFID>\d+</F-MLFID>\]:\s+")
usr/lib/python3.12/site-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '\['
  'common[prefregex="^svc\[<F-MLFID>\d+</F-MLFID>\] connect <F-CONTENT>.+</F-CONTENT>$"'
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
usr/lib/python3.12/site-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s'
  "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`",
Updating ldconfig(8) cache...
fail2ban-1.0.2_2: installed successfully.
```

2. It will not start:

`2023-10-16 10:12:37,841 fail2ban                [9232]: ERROR   No module named 'asynchat'`

### Steps to reproduce

1. Install fail2ban
2. Start fail2ban

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: fail2ban fails on python 3.12
  2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
                   ` (5 preceding siblings ...)
  2023-10-20  4:10 ` sgn
@ 2023-10-20  6:43 ` MeganerdNL
  6 siblings, 0 replies; 8+ messages in thread
From: MeganerdNL @ 2023-10-20  6:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

New comment by MeganerdNL on void-packages repository

https://github.com/void-linux/void-packages/issues/46714#issuecomment-1772174573

Comment:
Doesn't this need rev bump?
Still not working...
Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-10-20  6:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-16  8:15 [ISSUE] fail2ban fails on python 3.12 MeganerdNL
2023-10-16  8:20 ` MeganerdNL
2023-10-16  8:21 ` MeganerdNL
2023-10-16  8:26 ` MeganerdNL
2023-10-16  8:27 ` MeganerdNL
2023-10-20  4:10 ` [ISSUE] [CLOSED] " sgn
2023-10-20  4:10 ` sgn
2023-10-20  6:43 ` MeganerdNL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).