Add duplicity (Encrypted bandwidth-efficient backup using the rsync algorithm)
Hi,I have tried to get duplicity (http://duplicity.nongnu.org/index.html) working on /hipster:
- Had to install prerequisite package:
pfexec pkg install -v library/librsync
- Got latest duplicity downloaded:
wget https://code.launchpad.net/duplicity/0.7-series/0.7.07.1/+download/duplicity-0.7.07.1.tar.gz tar xf duplicity-0.7.07.1.tar.gz cd duplicity-0.7.07.1 pfexec /usr/bin/python2.7 setup.py install --prefix=/opt/SFW
- Fixed python call (to use python2.7):
pfexec vim /opt/SFW/bin/duplicity
- Calling produces error:
$ duplicity -V Traceback (most recent call last): File "/opt/SFW/bin/duplicity", line 45, in <module> from lockfile import LockFile as FileLock ImportError: No module named lockfile
Looked after that error on google and in most cases some "python-lockfile", or "py27-lockfile", etc package was fix.
Searched around and could not find it in OI (/hipster). Is it complicated to add one (e.g. python lockfile)?
From the other side, https://pypi.python.org/pypi/lockfile suggests that it is obsoleted and one has to use https://pypi.python.org/pypi/fasteners or http://docs.openstack.org/developer/oslo.concurrency/
- Fastener is already there:
$ pfexec /usr/bin/pip-2.7 install fasteners Requirement already satisfied (use --upgrade to upgrade): fasteners in /usr/lib/python2.7/site-packages
- Installing oslo.concurenty is as simple as:
pfexec /usr/bin/pip-2.7 install oslo.concurrency
- Even tried to add lockfile:
$ pfexec /usr/bin/pip-2.7 install lockfile
but neither does help... Somehow I am lost here.
BTW, tried also with default python - no changes...
Maybe someone else knows how to get this done properly?