python3-botocore installs an invalid Python file (containing diff headers)

Bug #1700992 reported by Dan Watkins
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-botocore (Debian)
Fix Released
Unknown
python-botocore (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Setting up python3-botocore (1.5.75-1) ...
  File "/usr/lib/python3/dist-packages/botocore/utils.py", line 2
    --- botocore/utils.py 2016-11-10 11:30:23.478805141 +0900
                             ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/botocore/utils.py", line 2
    --- botocore/utils.py 2016-11-10 11:30:23.478805141 +0900
                             ^
SyntaxError: invalid syntax

dpkg: error processing package python3-botocore (--configure):
 subprocess installed post-installation script returned error exit status 1

$ head -n5 /usr/lib/python3/dist-packages/botocore/utils.py
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
--- botocore/utils.py 2016-11-10 11:30:23.478805141 +0900
+++ botocore/utils.py 2016-11-10 11:30:23.466805008 +0900
@@ -28,7 +28,7 @@
 from botocore.exceptions import InvalidDNSNameError, ClientError

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: python3-botocore 1.5.75-1
ProcVersionSignature: Ubuntu 4.10.0-22.24-generic 4.10.15
Uname: Linux 4.10.0-22-generic x86_64
ApportVersion: 2.20.5-0ubuntu5
Architecture: amd64
Date: Wed Jun 28 10:24:59 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-09-04 (1028 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: python-botocore
UpgradeStatus: Upgraded to artful on 2016-12-05 (204 days ago)

Revision history for this message
Dan Watkins (oddbloke) wrote :
Revision history for this message
Dan Watkins (oddbloke) wrote :

This looks like it'll be fixed with a sync from Debian; -2 has the fix.

Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

Confirmed by an upstream bug

Changed in python-botocore (Ubuntu):
status: New → Confirmed
Changed in python-botocore (Debian):
status: Unknown → Fix Released
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.