package dput 0.9.6.4ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1696709 reported by yarko
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dput (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

dput looks like it's depending on python2 (without using `from __future__ import print_function`)

Details:
----
Setting up dput (0.9.6.4ubuntu3) ...
*** Error compiling '/usr/share/dput/ftp.py'...
  File "/usr/share/dput/ftp.py", line 9
    print "D: FTP-Connection to host: %s" % fqdn
                                        ^
SyntaxError: Missing parentheses in call to 'print'

*** Error compiling '/usr/share/dput/helper/dputhelper.py'...
  File "/usr/share/dput/helper/dputhelper.py", line 12
    print "Error: Failed to execute '"+file+"'."
                                     ^
SyntaxError: Missing parentheses in call to 'print'

*** Error compiling '/usr/share/dput/http.py'...
  File "/usr/share/dput/http.py", line 55
    except ValueError, e:
                     ^
SyntaxError: invalid syntax

*** Error compiling '/usr/share/dput/https.py'...
  File "/usr/share/dput/https.py", line 3
    exec open("/usr/share/dput/http.py") in d
            ^
SyntaxError: invalid syntax

*** Error compiling '/usr/share/dput/local.py'...
  File "/usr/share/dput/local.py", line 20
    print "D: Uploading with cp to %s" % (incoming)
                                     ^
SyntaxError: invalid syntax

*** Error compiling '/usr/share/dput/rsync.py'...
  File "/usr/share/dput/rsync.py", line 25
    print "D: Uploading with rsync to %s%s:%s" % \
                                             ^
SyntaxError: Missing parentheses in call to 'print'

*** Error compiling '/usr/share/dput/scp.py'...
  File "/usr/share/dput/scp.py", line 29
    if not stat.S_IMODE(os.lstat(file)[stat.ST_MODE])==0644:
                                                          ^
SyntaxError: invalid token

*** Error compiling '/usr/share/dput/sftp.py'...
  File "/usr/share/dput/sftp.py", line 13
    except Exception, e:
                    ^
SyntaxError: invalid syntax

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

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: dput 0.9.6.4ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-79.100-generic 4.4.67
Uname: Linux 4.4.0-79-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
Date: Thu Jun 8 05:36:28 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-12-11 (179 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: dput
Title: package dput 0.9.6.4ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
yarko (yarkot) wrote :
tags: removed: need-duplicate-check
Revision history for this message
yarko (yarkot) wrote :

Oh! This is my environment:

I have (in /usr/local/bin - ahead of /usr/bin, in my path) `python` refering to python3.6;

Temporarily changing my /usr/local/bin/python to point to /usr/bin/python2.7 (as /usr/bin/python links to), and dput installed.

Perhaps something as simple as being explicit in the dput install to use / call python2 would help.

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

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

Changed in dput (Ubuntu):
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.