[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1031578: lightproof: FTBFS in testing: make[1]: *** [debian/rules:38: override_dh_auto_install] Error 1



clone 1031578 -1
retitle -1 ru/hu fail to build with python 3.11: re.error: global flags not at the start of the expression at position 28
block -1 by 1031578
tag -1 - unreproducible
tag -1 + help
thanks

Hi,

Am 19.02.23 um 08:49 schrieb Rene Engelhard:
The real issue though seems to be a fallout of the python3 transition and that it breaks with python 3.11:

for cfg in `find src -name "*.cfg"`; do \
     python3 make.py $cfg; \
done
/home/rene/lightproof-1.6/make.py:39: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead.
   fArgs = cp.SafeConfigParser()
/home/rene/lightproof-1.6/pythonpath/lightproof_compile___implname__.py:170: FutureWarning: Possible nested set at position 5
   compr = re.compile(sc)
Traceback (most recent call last):
  File "/home/rene/lightproof-1.6/pythonpath/lightproof_compile___implname__.py", line 170, in mysplit
     compr = re.compile(sc)
             ^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/__init__.py", line 227, in compile
     return _compile(pattern, flags)
            ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile
     p = _compiler.compile(pattern, flags)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_compiler.py", line 743, in compile
     p = _parser.parse(p, flags)
         ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_parser.py", line 980, in parse
     p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_parser.py", line 455, in _parse_sub
     itemsappend(_parse(source, state, verbose, nested + 1,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_parser.py", line 841, in _parse
     raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 28

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/home/rene/lightproof-1.6/make.py", line 43, in <module>
     dist(i[:-4], fArgs._sections['args'])
   File "/home/rene/lightproof-1.6/make.py", line 15, in dist
    code = pythonpath.lightproof_compile___implname__.c(f.read(), a['lang'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rene/lightproof-1.6/pythonpath/lightproof_compile___implname__.py", line 270, in c
     item = mysplit(lines[i].strip(), i + 1, oldlinenums[lines[i]], debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rene/lightproof-1.6/pythonpath/lightproof_compile___implname__.py", line 174, in mysplit
     raise Exception(str(e), oldline)
Exception: ('global flags not at the start of the expression at position 28', 126)

missing config file or options: src/hu_HU/hu_HU.cfg
/home/rene/lightproof-1.6/make.py:39: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead.
   fArgs = cp.SafeConfigParser()
/usr/lib/python3.11/zipfile.py:1547: UserWarning: Duplicate name: 'META-INF/manifest.xml'
   return self._open_to_write(zinfo, force_zip64=force_zip64)
/home/rene/lightproof-1.6/make.py:39: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead.
   fArgs = cp.SafeConfigParser()
Traceback (most recent call last):
  File "/home/rene/lightproof-1.6/pythonpath/lightproof_compile___implname__.py", line 170, in mysplit
     compr = re.compile(sc)
             ^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/__init__.py", line 227, in compile
     return _compile(pattern, flags)
            ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile
     p = _compiler.compile(pattern, flags)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_compiler.py", line 743, in compile
     p = _parser.parse(p, flags)
         ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_parser.py", line 980, in parse
     p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_parser.py", line 455, in _parse_sub
     itemsappend(_parse(source, state, verbose, nested + 1,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.11/re/_parser.py", line 841, in _parse
     raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 28

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/home/rene/lightproof-1.6/make.py", line 43, in <module>
     dist(i[:-4], fArgs._sections['args'])
   File "/home/rene/lightproof-1.6/make.py", line 15, in dist
    code = pythonpath.lightproof_compile___implname__.c(f.read(), a['lang'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rene/lightproof-1.6/pythonpath/lightproof_compile___implname__.py", line 270, in c
     item = mysplit(lines[i].strip(), i + 1, oldlinenums[lines[i]], debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rene/lightproof-1.6/pythonpath/lightproof_compile___implname__.py", line 174, in mysplit
     raise Exception(str(e), oldline)
Exception: ('global flags not at the start of the expression at position 28', 75)

missing config file or options: src/ru_RU/ru_RU.cfg
/home/rene/lightproof-1.6/make.py:39: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead.
   fArgs = cp.SafeConfigParser()

Making a new bug out of this since the actual original bug is not reproducible.

Regards,

Rene


Reply to: