fail2ban fails to build with Python 3.11.0a6. ====================================================================== ERROR: testAmbiguousInOrderedTemplates (fail2ban.tests.datedetectortestcase.DateDetectorTest.testAmbiguousInOrderedTemplates) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/datedetectortestcase.py", line 375, in testAmbiguousInOrderedTemplates match, template = dd.matchTime(line) ^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testFullYearMatch_gh130 (fail2ban.tests.datedetectortestcase.DateDetectorTest.testFullYearMatch_gh130) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/datedetectortestcase.py", line 283, in testFullYearMatch_gh130 ( logTime, logMatch ) = self.datedetector.getTime('11/10/2012 02:37:17 [error] 18434#0') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 490, in getTime timeMatch = self.matchTime(line) ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testGetTime (fail2ban.tests.datedetectortestcase.DateDetectorTest.testGetTime) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/datedetectortestcase.py", line 130, in testGetTime ( datelog, matchlog ) = self.datedetector.getTime(log) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 490, in getTime timeMatch = self.matchTime(line) ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testLowLevelLogging (fail2ban.tests.datedetectortestcase.DateDetectorTest.testLowLevelLogging) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/datedetectortestcase.py", line 394, in testLowLevelLogging match, template = dd.matchTime(line % i) ^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testVariousTimes (fail2ban.tests.datedetectortestcase.DateDetectorTest.testVariousTimes) Test detection of various common date/time formats f2b should understand ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/datedetectortestcase.py", line 240, in testVariousTimes logtime = self.datedetector.getTime(log) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 490, in getTime timeMatch = self.matchTime(line) ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testAmbiguousDatePattern (fail2ban.tests.datedetectortestcase.CustomDateFormatsTest.testAmbiguousDatePattern) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/datedetectortestcase.py", line 526, in testAmbiguousDatePattern date = dd.getTime(line) ^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 490, in getTime timeMatch = self.matchTime(line) ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexs3PROXY (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexs3PROXY) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsAPACHE-AUTH (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsAPACHE-AUTH) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsAPACHE-BOTSEARCH (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsAPACHE-BOTSEARCH) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsAPACHE-MODSECURITY (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsAPACHE-MODSECURITY) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsAPACHE-NOHOME (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsAPACHE-NOHOME) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsAPACHE-NOSCRIPT (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsAPACHE-NOSCRIPT) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsAPACHE-OVERFLOWS (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsAPACHE-OVERFLOWS) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsAPACHE-SHELLSHOCK (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsAPACHE-SHELLSHOCK) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsASSP (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsASSP) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsASTERISK (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsASTERISK) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsCOURIER-AUTH (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsCOURIER-AUTH) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsCOURIER-SMTP (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsCOURIER-SMTP) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsCYRUS-IMAP (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsCYRUS-IMAP) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsDOMINO-SMTP (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsDOMINO-SMTP) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsDOVECOT (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsDOVECOT) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsDROPBEAR (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsDROPBEAR) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsDRUPAL-AUTH (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsDRUPAL-AUTH) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsFROXLOR-AUTH (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsFROXLOR-AUTH) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsGSSFTPD (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsGSSFTPD) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsHAPROXY-HTTP-AUTH (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsHAPROXY-HTTP-AUTH) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags not at the start of the expression at position 13 ====================================================================== ERROR: testSampleRegexsHORDE (fail2ban.tests.samplestestcase.FilterSamplesRegex.testSampleRegexsHORDE) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/tests/samplestestcase.py", line 232, in testFilter ret = flt.processLine(line) ^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/filter.py", line 613, in processLine timeMatch = self.dateDetector.matchTime(line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datedetector.py", line 406, in matchTime match = template.matchDate(line) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 161, in matchDate self._compileRegex() ^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 155, in _compileRegex raise e ^^^^^^^ File "/builddir/build/BUILD/fail2ban-0.11.2/./fail2ban/server/datetemplate.py", line 152, in _compileRegex self._cRegex = re.compile(self.regex) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile return _compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/__init__.py", line 279, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_compiler.py", line 798, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 963, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 447, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/re/_parser.py", line 822, in _parse raise source.error('global flags not at the start ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ re.error: global flags no Global inline flags (e.g. (?i)) can now only be used at the start of the regular expressions. Using them not at the start of expression was deprecated since Python 3.6. (Contributed by Serhiy Storchaka in bpo-47066.) https://bugs.python.org/issue?@action=redirect&bpo=47066 https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04173791-fail2ban/ For all our attempts to build fail2ban with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/fail2ban/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
*** Bug 2098700 has been marked as a duplicate of this bug. ***
Hello, This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs). If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.
I haven't had time to investigate yet, as usual it seems the tests break more than the actual project.
Hello, Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok). All subpackages of a package against which this bug was filled are now installable or removed from Fedora 37. Thanks for taking care of it!