SyntaxWarning messages on python3-boto install

Bug #2075551 reported by Eric Lopez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-boto (Ubuntu)
Won't Fix
Undecided
Unassigned
Focal
Confirmed
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned
Noble
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 24.04 LTS
Release: 24.04

apt-cache policy python3-boto
python3-boto:
  Installed: 2.49.0-4.1
  Candidate: 2.49.0-4.1
  Version table:
 *** 2.49.0-4.1 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        100 /var/lib/dpkg/status

python3:
  Installed: 3.12.3-0ubuntu1
  Candidate: 3.12.3-0ubuntu1
  Version table:
 *** 3.12.3-0ubuntu1 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status

Setting up python3-boto (2.49.0-4.1) ...
/usr/lib/python3/dist-packages/boto/__init__.py:1105: SyntaxWarning: invalid escape sequence '\c'
  """
/usr/lib/python3/dist-packages/boto/cloudfront/distribution.py:512: SyntaxWarning: invalid escape sequence '\*'
  """
/usr/lib/python3/dist-packages/boto/cloudsearchdomain/layer1.py:79: SyntaxWarning: invalid escape sequence '\`'
  """
/usr/lib/python3/dist-packages/boto/connection.py:672: SyntaxWarning: invalid escape sequence '\w'
  '(?:(?P<user>[\w\-\.]+):(?P<pass>.*)@)?'
/usr/lib/python3/dist-packages/boto/connection.py:673: SyntaxWarning: invalid escape sequence '\w'
  '(?P<host>[\w\-\.]+)'
/usr/lib/python3/dist-packages/boto/connection.py:674: SyntaxWarning: invalid escape sequence '\d'
  '(?::(?P<port>\d+))?'
/usr/lib/python3/dist-packages/boto/gs/resumable_upload_handler.py:238: SyntaxWarning: invalid escape sequence '\d'
  m = re.search('bytes=(\d+)-(\d+)', range_spec)
/usr/lib/python3/dist-packages/boto/https_connection.py:80: SyntaxWarning: invalid escape sequence '\.'
  host_re = host.replace('.', '\.').replace('*', '[^.]*')
/usr/lib/python3/dist-packages/boto/opsworks/layer1.py:2640: SyntaxWarning: invalid escape sequence '\A'
  """
/usr/lib/python3/dist-packages/boto/pyami/config.py:98: SyntaxWarning: invalid escape sequence '\s'
  match = re.match("^#import[\s\t]*([^\s^\t]*)[\s\t]*$", line)
/usr/lib/python3/dist-packages/boto/redshift/layer1.py:327: SyntaxWarning: invalid escape sequence '\,'
  """
/usr/lib/python3/dist-packages/boto/redshift/layer1.py:2164: SyntaxWarning: invalid escape sequence '\)'
  """
/usr/lib/python3/dist-packages/boto/redshift/layer1.py:2264: SyntaxWarning: invalid escape sequence '\,'
  """
/usr/lib/python3/dist-packages/boto/sdb/db/manager/sdbmanager.py:348: SyntaxWarning: invalid escape sequence '\/'
  match = re.match("^s3:\/\/([^\/]*)\/(.*)$", value.id)
/usr/lib/python3/dist-packages/boto/sdb/db/manager/sdbmanager.py:363: SyntaxWarning: invalid escape sequence '\/'
  match = re.match("^s3:\/\/([^\/]*)\/(.*)$", value)
/usr/lib/python3/dist-packages/boto/sdb/db/property.py:265: SyntaxWarning: invalid escape sequence '\/'
  validate_regex = "^s3:\/\/([^\/]*)\/(.*)$"

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Thank you for making this bug report Eric.

This is very easy to reproduce.

In the meantime, try using the python3-boto3 package instead, which is the newer version of python3-boto.

Changed in python-boto (Ubuntu):
status: New → Confirmed
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Marking won't fix in Oracular as there the package was dropped.

Changed in python-boto (Ubuntu):
status: Confirmed → Won't Fix
Changed in python-boto (Ubuntu Noble):
status: New → Confirmed
Changed in python-boto (Ubuntu Jammy):
status: New → Confirmed
Changed in python-boto (Ubuntu Focal):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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