duplicity 0.8.00 doesn't work with python 2.7

Bug #1833573 reported by az
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

...as the code insists in two places on python 3.

--- a/bin/duplicity
+++ b/bin/duplicity
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python
 # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
 #
 # duplicity -- Encrypted bandwidth efficient backup
--- a/testing/find_unadorned_strings.py
+++ b/testing/find_unadorned_strings.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python
 # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
 #
 # Copyright 2018 Aaron Whitehouse <email address hidden>
--- a/testing/fix_unadorned_strings.py
+++ b/testing/fix_unadorned_strings.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python
 # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
 #
 # Copyright 2018 Aaron Whitehouse <email address hidden>

Changed in duplicity:
milestone: none → 0.8.01
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

Those changes create issue when building with python3 on an env where python is python2 it looks like...

$ cd /tmp
$ bzr branch lp:duplicity
$ cd duplicity
$ bzr revno
1389
$ python3.7 setup.py build --force
$ PYTHONPATH=/tmp/duplicity/build/lib.linux-i686-3.7/ python3.7 ./setup.py test
(that's on an i386 chroot, path to adapt for amd64)

ends up with that error

b' File "/build/duplicity/duplicity/librsync.py", line 33, in <module>'
b' from . import _librsync'
b'ImportError: cannot import name _librsync'

which is because bin/duplicity uses python2 but the .so is built for python3 only in that scenario

Changed in duplicity:
status: Fix Committed → 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.