ImportError: No module named lockfile

Bug #1284880 reported by Mutschas on 2014-02-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Undecided
Unassigned

Bug Description

Hi,

i'm using Debian Squeeze and i updated now duply and duplicy to the latest versions. Now i get for every command this one:

##############################################

abcd:/home/xyz# /usr/local/bin/duply backup_profile purge 1D --force

Start duply v1.6.0, time is 2014-02-25 23:21:09.

INFO:

duplicity version check failed (please report, this is a bug)

Using profile '/root/.duply/backup_profile'.
Using installed duplicity version (not found), python 2.6.6, gpg 1.4.10 (Home: ~/.gnupg), awk 'GNU Awk 3.1.7', bash '4.1.5(1)-release (x86_64-pc-linux-gnu)'.
Autoset found secret key of first GPG_KEY entry '1234ABC' for signing.
Test - Encrypt to 1234ABC & Sign with 1234ABC (OK)
Test - Decrypt (OK)
Test - Compare (OK)
Cleanup - Delete '/tmp/duply.28110.1393336229_*'(OK)

--- Start running command PURGE at 23:21:09.608 ---
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 34, in <module>
    from lockfile import FileLock
ImportError: No module named lockfile
23:21:09.659 Task 'PURGE' failed with exit code '1'.
--- Finished state FAILED 'code 1' at 23:21:09.659 - Runtime 00:00:00.050 ---

##############################################

i've found in the www this "fix" but i cant find the MAKEFILE-file:
http://www.freebsd.org/cgi/query-pr.cgi?pr=186461

Version:
Using installed duplicity version (not found), python 2.6.6, gpg 1.4.10 (Home: ~/.gnupg), awk 'GNU Awk 3.1.7', bash '4.1.5(1)-release (x86_64-pc-linux-gnu)'.

It says "not found", but it's 0.6.23 ;)

Thanks.

description: updated
Tõnis B (bramanis) wrote :

Hi Mutschas

Did You try to install the 'python-lockfile' package via aptitude?

apt-get install python-lockfile

That helped me, but sorry, if this really is a bug and needs attention.

Regards
Tõnis Bramanis

Mutschas (wirdnichtabgerufen) wrote :

Hi Tõnis Bramanis,

thank you very much, that was it!

Sorry for that.

Thanks again!

gcc (chris+ubuntu-qwirx) wrote :

I think the official packages are missing this dependency on python-lockfile. At least the 0.6.23 RPMs don't list it in the Requires: line, but I think they should.

Changed in duplicity:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers