Bug#1087083: sfepy: Python SyntaxWarning

Graham Inggs ginggs at debian.org
Fri Nov 8 16:05:09 GMT 2024


Source: sfepy
Version: 2021.4-4
User: debian-python at lists.debian.org
Usertags: syntaxwarning

Hi Maintainer

The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].

Regards
Graham


[1] https://piuparts.debian.org/sid/source/s/sfepy.html


  Setting up python3-sfepy (2021.4-4+b2) ...
  /usr/lib/python3/dist-packages/sfepy/discrete/common/region.py:11:
SyntaxWarning: invalid escape sequence '\.'
    _depends = re.compile('r\.([a-zA-Z_\-0-9.]+)').findall
  /usr/lib/python3/dist-packages/sfepy/discrete/fem/fields_base.py:1280:
SyntaxWarning: invalid escape sequence '\s'
    """
  /usr/lib/python3/dist-packages/sfepy/discrete/fem/fields_base.py:1445:
SyntaxWarning: invalid escape sequence '\s'
    """
  /usr/lib/python3/dist-packages/sfepy/discrete/simplex_cubature.py:100:
SyntaxWarning: invalid escape sequence '\{'
    """
  /usr/lib/python3/dist-packages/sfepy/examples/dg/advection_2D.py:94:
SyntaxWarning: invalid escape sequence '\i'
    """
  /usr/lib/python3/dist-packages/sfepy/examples/diffusion/poisson_functions.py:105:
SyntaxWarning: invalid escape sequence '\O'
    """
  /usr/lib/python3/dist-packages/sfepy/examples/diffusion/poisson_parametric_study.py:157:
SyntaxWarning: invalid escape sequence '\O'
    """Vary size of \Omega1. Saves also the regions into options['output_dir'].
  /usr/lib/python3/dist-packages/sfepy/examples/diffusion/poisson_parametric_study.py:208:
SyntaxWarning: invalid escape sequence '\O'
    log_item = '$r(\Omega_1)$: %f\n' % diameter
  /usr/lib/python3/dist-packages/sfepy/homogenization/coefficients.py:40:
SyntaxWarning: invalid escape sequence '\_'
    return txt.replace('_', '\_').replace('%', '\%')
  /usr/lib/python3/dist-packages/sfepy/homogenization/coefficients.py:40:
SyntaxWarning: invalid escape sequence '\%'
    return txt.replace('_', '\_').replace('%', '\%')
  /usr/lib/python3/dist-packages/sfepy/homogenization/coefficients.py:50:
SyntaxWarning: invalid escape sequence '\c'
    out = '%s \cdot 10^{%s}' % (a1, int(a2))
  /usr/lib/python3/dist-packages/sfepy/homogenization/coefficients.py:95:
SyntaxWarning: invalid escape sequence '\i'
    fd.write( '\item %s:' % lname )
  /usr/lib/python3/dist-packages/sfepy/homogenization/coefs_phononic.py:285:
SyntaxWarning: invalid escape sequence '\l'
    """
  /usr/lib/python3/dist-packages/sfepy/homogenization/coefs_phononic.py:328:
SyntaxWarning: invalid escape sequence '\i'
    """
  /usr/lib/python3/dist-packages/sfepy/mechanics/tensors.py:346:
SyntaxWarning: invalid escape sequence '\s'
    """
  /usr/lib/python3/dist-packages/sfepy/mesh/mesh_generators.py:317:
SyntaxWarning: invalid escape sequence '\i'
    """
  /usr/lib/python3/dist-packages/sfepy/script/edit_identifiers.py:26:
SyntaxWarning: invalid escape sequence '\['
    misc = '[\'\"\[\]\(\)\{\}]'
  /usr/lib/python3/dist-packages/sfepy/script/gen_term_table.py:64:
SyntaxWarning: invalid escape sequence '\l'
    header = """
  /usr/lib/python3/dist-packages/sfepy/script/probe.py:174:
SyntaxWarning: invalid escape sequence '\p'
    """
  /usr/lib/python3/dist-packages/sfepy/script/test_install.py:81:
SyntaxWarning: invalid escape sequence '\d'
    pat = '([-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?[jJ]?)'
  /usr/lib/python3/dist-packages/sfepy/script/test_install.py:142:
SyntaxWarning: invalid escape sequence '\('
    search = re.compile('([0-9]+) test file\(s\) executed in ([0-9.]+)
s, ([0-9]+) failure\(s\) of ([0-9]+) test\(s\)').search
  /usr/lib/python3/dist-packages/sfepy/solvers/ls_mumps.py:502:
SyntaxWarning: invalid escape sequence '\d'
    vnums = re.findall('^.*(\d)\.(\d+)\.\d+.*$', s)[-1]
  /usr/lib/python3/dist-packages/sfepy/solvers/nls.py:482:
SyntaxWarning: invalid escape sequence '\e'
    """The convergence tolerance in terms of the norm of the change in
  /usr/lib/python3/dist-packages/sfepy/solvers/ts_solvers.py:587:
SyntaxWarning: invalid escape sequence '\s'
    """
  /usr/lib/python3/dist-packages/sfepy/terms/terms.py:17:
SyntaxWarning: invalid escape sequence '\('
    _match_args = re.compile('^([^\(\}]*)\((.*)\)$').match
  /usr/lib/python3/dist-packages/sfepy/terms/terms.py:23:
SyntaxWarning: invalid escape sequence '\.'
    _match_material_root = re.compile('(.+)\.(.*)').match
  /usr/lib/python3/dist-packages/sfepy/tests/test_fem.py:262:
SyntaxWarning: invalid escape sequence '\d'
    """



More information about the debian-science-maintainers mailing list