FS#49796 - [duplicity] PLEASE ENTER SUMMARY

Attached to Project: Community Packages
Opened by aRozoh8o (aRozoh8o) - Wednesday, 22 June 2016, 02:16 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 22 June 2016, 03:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

duplicity croaks on import of 'lockfile'

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:

rob@lyle:~/src/flexget$ sudo pacman -S duplicity python2-lockfile
warning: duplicity-0.7.07.1-1 is up to date -- reinstalling
warning: python2-lockfile-0.12.2-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) duplicity-0.7.07.1-1 python2-lockfile-0.12.2-1

Total Installed Size: 3.05 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [###################################] 100%
(2/2) checking package integrity [###################################] 100%
(2/2) loading package files [###################################] 100%
(2/2) checking for file conflicts [###################################] 100%
(2/2) checking available disk space [###################################] 100%
:: Processing package changes...
(1/2) reinstalling python2-lockfile [###################################] 100%
(2/2) reinstalling duplicity [###################################] 100%
:: Running post-transaction hooks...
(1/1) Updating manpage index...
rob@lyle:~/src/flexget$ duplicity
Traceback (most recent call last):
File "/usr/bin/duplicity", line 45, in <module>
from lockfile import LockFile as FileLock
ImportError: No module named lockfile
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 22 June 2016, 03:51 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Wednesday, 22 June 2016, 02:29 GMT
Is "python2" python 2.7? Do you have $PYTHONPATH set?
Comment by aRozoh8o (aRozoh8o) - Wednesday, 22 June 2016, 03:18 GMT
rob@lyle:~/src/flexget$ echo $PYTHONPATH

rob@lyle:~/src/flexget$ head /usr/bin/duplicity
#!/usr/bin/env python2
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# duplicity -- Encrypted bandwidth efficient backup
# Version 0.7.07.1 released April 19, 2016
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
rob@lyle:~/src/flexget$ python2 --version
Python 2.7.11
Comment by Doug Newgard (Scimmia) - Wednesday, 22 June 2016, 03:27 GMT
How about `which python2`? $PYTHONHOME?

If you just run 'python2', then 'from lockfile import FileLock', does it work?
Comment by aRozoh8o (aRozoh8o) - Wednesday, 22 June 2016, 03:38 GMT
urgh, was a virtualenv hangover. ty for the rubber ducking.

Loading...