*** This bug is a duplicate of bug 2029480 *** https://bugs.launchpad.net/bugs/2029480
** This bug has been marked a duplicate of bug 2029480 SyntaxWarnings with Python3.12 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to hplip in Ubuntu. https://bugs.launchpad.net/bugs/2054868 Title: invalid escape sequence Status in hplip package in Ubuntu: Confirmed Bug description: Todays update with python 3.12 /usr/share/hplip/base/LedmWifi.py:34: SyntaxWarning: invalid escape sequence '\d ' http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I) /usr/share/hplip/base/device.py:49: SyntaxWarning: invalid escape sequence '\d' http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I) /usr/share/hplip/base/g.py:304: SyntaxWarning: invalid escape sequence '\|' spinner = "\|/-\|/-" /usr/share/hplip/base/g.py:354: SyntaxWarning: invalid escape sequence '\d' m = re.search('python(\d(\.\d){0,2})', ext_path) #get the python ve rsion where the .so file is found /usr/share/hplip/base/imagesize.py:186: SyntaxWarning: invalid escape sequence ' \#' re.compile('\#define\s+\S+\s+\d+') : ('image/x-xbitmap', xbmsize), /usr/share/hplip/base/imagesize.py:187: SyntaxWarning: invalid escape sequence ' \/' re.compile('\/\* XPM \*\/') : ('image/x-xpixmap', xpmsize), /usr/share/hplip/base/imagesize.py:189: SyntaxWarning: invalid escape sequence ' \*' re.compile('^II\*\x00') : ('image/tiff', tiffsize), /usr/share/hplip/base/logger.py:439: SyntaxWarning: invalid escape sequence '\<' elem_start = re.findall("(\<\W{0,1}\w+) ?", line)[0] /usr/share/hplip/base/logger.py:440: SyntaxWarning: invalid escape sequence '\]' elem_finished = re.findall("([?|\]\]]*\>)", line)[0] /usr/share/hplip/base/logger.py:442: SyntaxWarning: invalid escape sequence '\S' attrs = re.findall("(\S*?\=\".*?\")", line) /usr/share/hplip/base/models.py:37: SyntaxWarning: invalid escape sequence '\d' pat_prod_num = re.compile("""(\d+)""", re.I) /usr/share/hplip/base/models.py:428: SyntaxWarning: invalid escape sequence '\d' re.compile('^r(\d+)-agent(\d+)-kind', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:429: SyntaxWarning: invalid escape sequence '\d' re.compile('^r(\d+)-agent(\d+)-type', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:430: SyntaxWarning: invalid escape sequence '\d' re.compile('^r(\d+)-agent(\d+)-sku', re.IGNORECASE) : TYPE_STR, /usr/share/hplip/base/models.py:431: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-desc', re.IGNORECASE) : TYPE_STR, /usr/share/hplip/base/models.py:432: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-virgin', re.IGNORECASE) : TYPE_BOOL, /usr/share/hplip/base/models.py:433: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-dvc', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:434: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-kind', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:435: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-type', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:436: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-id', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:437: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-hp-ink', re.IGNORECASE) : TYPE_BOOL, /usr/share/hplip/base/models.py:438: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-health-desc', re.IGNORECASE) : TYPE_STR, /usr/share/hplip/base/models.py:439: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-health$', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:440: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-known', re.IGNORECASE) : TYPE_BOOL, /usr/share/hplip/base/models.py:441: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-level', re.IGNORECASE) : TYPE_INT, /usr/share/hplip/base/models.py:442: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-ack', re.IGNORECASE) : TYPE_BOOL, /usr/share/hplip/base/models.py:443: SyntaxWarning: invalid escape sequence '\d' re.compile('^agent(\d+)-sku', re.IGNORECASE) : TYPE_STR, /usr/share/hplip/base/models.py:444: SyntaxWarning: invalid escape sequence '\d' re.compile('^in-tray(\d+)', re.IGNORECASE) : TYPE_BOOL, /usr/share/hplip/base/models.py:445: SyntaxWarning: invalid escape sequence '\d' re.compile('^out-tray(\d+)', re.IGNORECASE) : TYPE_BOOL, /usr/share/hplip/base/models.py:446: SyntaxWarning: invalid escape sequence '\d' re.compile('^model(\d+)', re.IGNORECASE) : TYPE_STR, /usr/share/hplip/base/password.py:212: SyntaxWarning: invalid escape sequence '\ [' cb = cb.replace("[", "\[") /usr/share/hplip/base/password.py:213: SyntaxWarning: invalid escape sequence '\ ]' cb = cb.replace("]", "\]") /usr/share/hplip/base/queues.py:48: SyntaxWarning: invalid escape sequence '\*' NICKNAME_PATTERN = re.compile(b'''\*NickName:\s*\"(.*)"''', re.MULTILINE) /usr/share/hplip/base/status.py:1335: SyntaxWarning: invalid escape sequence '\s ' pjl_code_pat = re.compile("""^CODE\s*=\s*(\d.*)$""", re.IGNORECASE) /usr/share/hplip/base/tui.py:220: SyntaxWarning: invalid escape sequence '\|' self.spinner = "\|/-\|/-*" /usr/share/hplip/base/utils.py:150: SyntaxWarning: invalid escape sequence '\w' lis = ((re.findall('SystemGroup [\w* ]*',fp.read()))[0].replace('SystemGroup ' ,'')).split(' ') /usr/share/hplip/base/utils.py:1584: SyntaxWarning: invalid escape sequence '\*' USAGE_LOGGING2 = ("", "<level>: none, info\*, error, warn, debug (\*default)", "option", False) /usr/share/hplip/base/utils.py:1592: SyntaxWarning: invalid escape sequence '\*' USAGE_BUS2 = ("", "<bus>: cups\*, usb\*, net, bt, fw, par\* (\*defaults) (Note : bt and fw not supported in this release.)", 'option', False) /usr/share/hplip/base/utils.py:1598: SyntaxWarning: invalid escape sequence '\*' USAGE_STD_NOTES2 = ("If -p\* is specified, the default CUPS printer will be us ed.", "", "note", False) /usr/share/hplip/base/utils.py:1826: SyntaxWarning: invalid escape sequence '\-' log.info(".SH NAME\n%s \- %s" % (crumb, title)) /usr/share/hplip/base/utils.py:1925: SyntaxWarning: invalid escape sequence '\w' return re.sub("&#?\w+;", fixup, text) /usr/share/hplip/base/utils.py:1978: SyntaxWarning: invalid escape sequence '\d' pat=re.compile('''(\d{1,})([a-z]{1,})''') /usr/share/hplip/check.py:630: SyntaxWarning: invalid escape sequence '\s' lsusb_pat = re.compile("""^Bus\s([0-9a-fA-F]{3,3})\sDevice\s([0-9a-fA-F]{3,3}) :\sID\s([0-9a-fA-F]{4,4}):([0-9a-fA-F]{4,4})(.*)""", re.IGNORECASE) /usr/share/hplip/fax/ledmfax.py:46: SyntaxWarning: invalid escape sequence '\d' http_result_pat = re.compile(b"""HTTP/\d.\d\s(\d+)""", re.I) /usr/share/hplip/fax/soapfax.py:44: SyntaxWarning: invalid escape sequence '\d' http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I) /usr/share/hplip/installer/dcheck.py:35: SyntaxWarning: invalid escape sequence '\d' ver1_pat = re.compile("""(\d+\.\d+\.\d+)""", re.IGNORECASE) /usr/share/hplip/installer/dcheck.py:36: SyntaxWarning: invalid escape sequence '\d' ver_pat = re.compile("""(\d+\.\d+)""", re.IGNORECASE) /usr/share/hplip/installer/dcheck.py:360: SyntaxWarning: invalid escape sequence '\d' xsane_ver_pat =re.compile('''xsane-(\d{1,}\.\d{1,}).*''') /usr/share/hplip/makeuri.py:49: SyntaxWarning: invalid escape sequence '\*' ("To specify the port on a multi-port JetDirect:", "-p<port> or --port=<port> (Valid values are 1\*, 2, and 3. \*default)", "option", False), /usr/share/hplip/prnt/cups.py:170: SyntaxWarning: invalid escape sequence '\s' pat_cups_error_log = re.compile("""^loglevel\s?(debug|debug2|warn|info|error|n one)""", re.I) /usr/share/hplip/probe.py:45: SyntaxWarning: invalid escape sequence '\*' ("", "<bus>: cups, usb\*, net, bt, fw, par (\*default) (Note: bt and fw not su pported in this release.)", "option", False), /usr/share/hplip/probe.py:49: SyntaxWarning: invalid escape sequence '\*' ("", "<filter list>: comma separated list of one or more of: scan, pcard, fax, copy, or none\*. (\*none is the default)", "option", False), /usr/share/hplip/scan.py:254: SyntaxWarning: invalid escape sequence '\*' ("Scan mode:", "-m<mode> or --mode=<mode>. Where <mode> is 'gray'\*, 'color' o r 'lineart'.", "option", False), /usr/share/hplip/scan.py:271: SyntaxWarning: invalid escape sequence '\*' ("", "where <units> is 'mm'\*, 'cm', 'in', 'px', or 'pt' ('mm' is default).", "option", False), /usr/share/hplip/setup.py:82: SyntaxWarning: invalid escape sequence '\*' ("To specify the port on a multi-port JetDirect:", "--port=<port> (Valid value s are 1\*, 2, and 3. \*default)", "option", False), /usr/share/hplip/setup.py:86: SyntaxWarning: invalid escape sequence '\*' ("Type of queue(s) to install:", "-t<typelist> or --type=<typelist>. <typelist >: print*, fax\* (\*default) (-i mode only)", "option", False), /usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_plugins.py:171: Syntax Warning: invalid escape sequence '\(' translation = re.sub('\(..\)', '', translation, flags=re.DOTALL) /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:64: SyntaxW arning: invalid escape sequence '\/' url = re.split('(\/display[^"]*)', entry)[1] /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:66: SyntaxW arning: invalid escape sequence '\/' title = re.split('(\/display[^>]*)([^<]*)', entry)[2][1:].strip() /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:97: SyntaxW arning: invalid escape sequence '\/' lyrics = re.split('(<font face=arial size=2>)(.*)(<\/font><br></td><td*)', res ult)[2] /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/JetlyricsParser.py:50: Syntax Warning: invalid escape sequence '\.' m = re.search('<a href=\'(http://jetlyrics\.com/viewlyrics\.php\?id=[0-9]*)\'> ', result) /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/JlyricParser.py:49: SyntaxWar ning: invalid escape sequence '\.' m = re.search('<div class=\'title\'><a href=\'(/artist/[^\.]*\.html)\'>', resu lt) /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/TerraParser.py:39: SyntaxWarn ing: invalid escape sequence '\w' pattern = re.compile("&(#?\w+?);") /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/WinampcnParser.py:87: SyntaxW arning: invalid escape sequence '\[' lrcplaintext = re.sub('\[.*?\]', '', lrcplaintext) /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape sequence '\(' LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\ ([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"] /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape sequence '\(' LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\ ([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"] /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape sequence '\(' LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\ ([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"] /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape sequence '\(' LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\ ([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"] /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape sequence '\(' LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\ ([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"] /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape sequence '\(' LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\ ([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/2054868/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp