Public bug reported:

See PEP-0765  https://peps.python.org/pep-0765/

168s 
--------------------------------------------------------------------------------
169s ERROR: while parsing the following warning configuration:
169s
169s   ignore:The .*interactive_bk.* attribute was deprecated in Matplotlib 
3\.9.*:matplotlib.MatplotlibDeprecationWarning
169s
169s This error occurred:
169s
169s Traceback (most recent call last):
169s   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 
2121, in parse_warning_filter
169s     category: type[Warning] = _resolve_warning_category(category_)
169s                               ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
169s   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 
2168, in _resolve_warning_category
169s     m = __import__(module, None, None, [klass])
169s   File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 161, 
in <module>
169s     from . import _api, _version, cbook, _docstring, rcsetup
169s   File "/usr/lib/python3/dist-packages/matplotlib/rcsetup.py", line 29, in 
<module>
169s     from matplotlib._fontconfig_pattern import parse_fontconfig_pattern
169s   File "/usr/lib/python3/dist-packages/matplotlib/_fontconfig_pattern.py", 
line 15, in <module>
169s     from pyparsing import (
169s         Group, Optional, ParseException, Regex, StringEnd, Suppress, 
ZeroOrMore, one_of)
169s   File "/usr/lib/python3/dist-packages/pyparsing/__init__.py", line 132, 
in <module>
169s     from .core import __diag__, __compat__
169s   File "/usr/lib/python3/dist-packages/pyparsing/core.py", line 5637
169s     return f"{type(self).__name__}: {retString}"
169s     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169s SyntaxError: 'return' in a 'finally' block

See
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-resolute/resolute/arm64/p/python-pyvista/20260308_072703_9a7ea@/log.gz

The issue is fixed upstream:
https://github.com/pyparsing/pyparsing/issues/578

** Affects: pyparsing (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

** Description changed:

- 
  168s 
--------------------------------------------------------------------------------
  169s ERROR: while parsing the following warning configuration:
- 169s 
+ 169s
  169s   ignore:The .*interactive_bk.* attribute was deprecated in Matplotlib 
3\.9.*:matplotlib.MatplotlibDeprecationWarning
- 169s 
+ 169s
  169s This error occurred:
- 169s 
+ 169s
  169s Traceback (most recent call last):
  169s   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 
2121, in parse_warning_filter
  169s     category: type[Warning] = _resolve_warning_category(category_)
  169s                               ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  169s   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 
2168, in _resolve_warning_category
  169s     m = __import__(module, None, None, [klass])
  169s   File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 
161, in <module>
  169s     from . import _api, _version, cbook, _docstring, rcsetup
  169s   File "/usr/lib/python3/dist-packages/matplotlib/rcsetup.py", line 29, 
in <module>
  169s     from matplotlib._fontconfig_pattern import parse_fontconfig_pattern
  169s   File 
"/usr/lib/python3/dist-packages/matplotlib/_fontconfig_pattern.py", line 15, in 
<module>
  169s     from pyparsing import (
  169s         Group, Optional, ParseException, Regex, StringEnd, Suppress, 
ZeroOrMore, one_of)
  169s   File "/usr/lib/python3/dist-packages/pyparsing/__init__.py", line 132, 
in <module>
  169s     from .core import __diag__, __compat__
  169s   File "/usr/lib/python3/dist-packages/pyparsing/core.py", line 5637
  169s     return f"{type(self).__name__}: {retString}"
  169s     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  169s SyntaxError: 'return' in a 'finally' block
  
- See 
+ See
  
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-resolute/resolute/arm64/p/python-pyvista/20260308_072703_9a7ea@/log.gz
+ 
+ The issue is fixed upstream:
+ https://github.com/pyparsing/pyparsing/issues/578

** Description changed:

+ See PEP-0765  https://peps.python.org/pep-0765/
+ 
  168s 
--------------------------------------------------------------------------------
  169s ERROR: while parsing the following warning configuration:
  169s
  169s   ignore:The .*interactive_bk.* attribute was deprecated in Matplotlib 
3\.9.*:matplotlib.MatplotlibDeprecationWarning
  169s
  169s This error occurred:
  169s
  169s Traceback (most recent call last):
  169s   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 
2121, in parse_warning_filter
  169s     category: type[Warning] = _resolve_warning_category(category_)
  169s                               ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  169s   File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 
2168, in _resolve_warning_category
  169s     m = __import__(module, None, None, [klass])
  169s   File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 
161, in <module>
  169s     from . import _api, _version, cbook, _docstring, rcsetup
  169s   File "/usr/lib/python3/dist-packages/matplotlib/rcsetup.py", line 29, 
in <module>
  169s     from matplotlib._fontconfig_pattern import parse_fontconfig_pattern
  169s   File 
"/usr/lib/python3/dist-packages/matplotlib/_fontconfig_pattern.py", line 15, in 
<module>
  169s     from pyparsing import (
  169s         Group, Optional, ParseException, Regex, StringEnd, Suppress, 
ZeroOrMore, one_of)
  169s   File "/usr/lib/python3/dist-packages/pyparsing/__init__.py", line 132, 
in <module>
  169s     from .core import __diag__, __compat__
  169s   File "/usr/lib/python3/dist-packages/pyparsing/core.py", line 5637
  169s     return f"{type(self).__name__}: {retString}"
  169s     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  169s SyntaxError: 'return' in a 'finally' block
  
  See
  
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-resolute/resolute/arm64/p/python-pyvista/20260308_072703_9a7ea@/log.gz
  
  The issue is fixed upstream:
  https://github.com/pyparsing/pyparsing/issues/578

** Tags added: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143696

Title:
  pyparsing fails due tothe return from the finally block

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyparsing/+bug/2143696/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to