SyntaxWarning at install

Bug #1874938 reported by Cédric M. Campos
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Onboard
New
Undecided
Unassigned
onboard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Installing in a fresh-up-to-date Focal Fossa gives:

Configurando onboard (1.4.1-2ubuntu7) ...
/usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:447: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \

Tags: noble
Revision history for this message
Cédric M. Campos (cedricmc) wrote :

I believe onboard is not to blame, other python-based packages are giving similar warnings during install, e.g. sagemath.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in onboard (Ubuntu):
status: New → Confirmed
tags: added: 23.04 in install of present still
Revision history for this message
Daniel Richard G. (skunk) wrote :
Download full text (3.7 KiB)

I'm seeing much more than that, installing on noble:

Setting up onboard (1.4.1-5ubuntu2) ...
/usr/lib/python3/dist-packages/Onboard/Appearance.py:924: SyntaxWarning: invalid escape sequence '\w'
  _key_ids_pattern = re.compile('[\w-]+(?:[.][\w-]+)?', re.UNICODE)
/usr/lib/python3/dist-packages/Onboard/Appearance.py:1066: SyntaxWarning: invalid escape sequence '\w'
  key_ids = [x for x in re.findall('\w+(?:[.][\w-]+)?', text) if x]
/usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:98: SyntaxWarning: invalid escape sequence '\('
  self._layout_regex = re.compile("([^\(]+) (?: \( ([^\)]*) \) )?",
/usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:447: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \
/usr/lib/python3/dist-packages/Onboard/SpellChecker.py:324: SyntaxWarning: invalid escape sequence '\s'
  SPLITWORDS = re.compile("[^-_\s]+", re.UNICODE|re.DOTALL)
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:144: SyntaxWarning: invalid escape sequence '\s'
  strings = re.split('(\s+)', context)
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:161: SyntaxWarning: invalid escape sequence '\s'
  """
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:291: SyntaxWarning: invalid escape sequence '\s'
  _growth_sections_pattern = re.compile("[^\s?#@]+", re.DOTALL)
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:447: SyntaxWarning: invalid escape sequence '\['
  "^In \[[0-9]*\]: ", # ipython
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:450: SyntaxWarning: invalid escape sequence '\?'
  "^\?", # vi reverse search
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:451: SyntaxWarning: invalid escape sequence '\$'
  "\$ ", # generic prompt
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:459: SyntaxWarning: invalid escape sequence '\('
  "^\(.*\)`.*': ", # bash incremental search
/usr/lib/python3/dist-packages/Onboard/TextDomain.py:739: SyntaxWarning: invalid escape sequence '\w'
  _url_pattern = re.compile("([\w-]+)|(\W+)", re.UNICODE)
/usr/lib/python3/dist-packages/Onboard/WordSuggestions.py:1253: SyntaxWarning: invalid escape sequence '\S'
  _section_begin_pattern = re.compile("\S*\s*$")
/usr/lib/python3/dist-packages/Onboard/WordSuggestions.py:1254: SyntaxWarning: invalid escape sequence '\S'
  _section_end_pattern = re.compile("\S*(?=\s*)")
/usr/lib/python3/dist-packages/Onboard/pypredict/lm_wrapper.py:302: SyntaxWarning: invalid escape sequence '\s'
  """ .*?
/usr/lib/python3/dist-packages/Onboard/pypredict/lm_wrapper.py:368: SyntaxWarning: invalid escape sequence '\s'
  tokenize_pattern = """
/usr/lib/python3/dist-packages/Onboard/pypredict/lm_wrapper.py:467: SyntaxWarning: invalid escape sequence '\w'
  if not re.match("""
/usr/lib/python3/dist-packages/Onboard/pypredict/lm_wrapper.py:504: SyntaxWarning: invalid escape sequence '\d'
  result = re.search("ngram (\d+)=\d+", line)
/usr/lib/python3/dist-packages/Onboard/pypredict/lm_wrapper.py:624: SyntaxWarning: invalid escape sequence '\w'
  target_word = re.search("^([\w]|[-'])*", prefix_to_end, re.UNICODE).group()
/usr/lib/python3/dis...

Read more...

tags: added: noble
removed: 23.04 in install of present still
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.