duplicity 0.8.00 doesn't work with python 2.7
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-
#
# duplicity -- Encrypted bandwidth efficient backup
--- a/testing/
+++ b/testing/
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python
# -*- Mode:Python; indent-
#
# Copyright 2018 Aaron Whitehouse <email address hidden>
--- a/testing/
+++ b/testing/
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python
# -*- Mode:Python; indent-
#
# Copyright 2018 Aaron Whitehouse <email address hidden>
Changed in duplicity: | |
milestone: | none → 0.8.01 |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Those changes create issue when building with python3 on an env where python is python2 it looks like...
$ cd /tmp /tmp/duplicity/ build/lib. linux-i686- 3.7/ python3.7 ./setup.py test
$ bzr branch lp:duplicity
$ cd duplicity
$ bzr revno
1389
$ python3.7 setup.py build --force
$ PYTHONPATH=
(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