After upgrade to Xenial Duplicity crashes "No module named lockfile"

Bug #1576514 reported by Gaussian
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
duplicity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After upgrade to Xenial Duplicity crashes with:

----------------------------------------
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 45, in <module>
    from lockfile import LockFile as FileLock
ImportError: No module named lockfile
-----------------------------------------

The solution suggested here https://bugs.launchpad.net/duplicity/+bug/1284880
does not work since python-lockfile is installed

Gaussian (saku)
description: updated
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1576514] [NEW] After upgrade to Xenial Duplicity crashes "No module named lockfile"

What version of duplicity?

On Fri, Apr 29, 2016 at 12:22 AM, Gaussian <email address hidden>
wrote:

> Public bug reported:
>
> After upgrade to Xenial Duplicity crashes with:
>
> ----------------------------------------
> Traceback (most recent call last):
> File "/usr/bin/duplicity", line 45, in <module>
> from lockfile import LockFile as FileLock
> ImportError: No module named lockfile
> -----------------------------------------
>
> The solution suggested here
> https://bugs.launchpad.net/duplicity/+bug/1284880
> does not work since python-lockfile is installed
>
> ** Affects: duplicity (Ubuntu)
> Importance: Undecided
> Status: New
>
> ** Description changed:
>
> After upgrade to Xenial Duplicity crashes with:
>
> - [code]
> + ----------------------------------------
> Traceback (most recent call last):
> - File "/usr/bin/duplicity", line 45, in <module>
> - from lockfile import LockFile as FileLock
> + File "/usr/bin/duplicity", line 45, in <module>
> + from lockfile import LockFile as FileLock
> ImportError: No module named lockfile
> - [/code]
> + -----------------------------------------
>
> The solution suggested here
> https://bugs.launchpad.net/duplicity/+bug/1284880
> does not work since python-lockfile is installed
>
> --
> You received this bug notification because you are subscribed to
> duplicity in Ubuntu.
> https://bugs.launchpad.net/bugs/1576514
>
> Title:
> After upgrade to Xenial Duplicity crashes "No module named lockfile"
>
> Status in duplicity package in Ubuntu:
> New
>
> Bug description:
> After upgrade to Xenial Duplicity crashes with:
>
> ----------------------------------------
> Traceback (most recent call last):
> File "/usr/bin/duplicity", line 45, in <module>
> from lockfile import LockFile as FileLock
> ImportError: No module named lockfile
> -----------------------------------------
>
> The solution suggested here
> https://bugs.launchpad.net/duplicity/+bug/1284880
> does not work since python-lockfile is installed
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/1576514/+subscriptions
>

Revision history for this message
Gaussian (saku) wrote :

Version 0.7.06 (Under Ubuntu 16.04)

My further investigation found that this is not an Ubuntu bug. This happened because my home directory has an Anaconda installation. Changing the order in the PATH statement to make use of the Ubuntu Python2 installation fixed the problem (i.e. putting /home/$USER/anaconda last). So should be marked invalid.

Gaussian (saku)
Changed in duplicity (Ubuntu):
status: New → Invalid
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.