duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Duplicity emerge on gentoo (problem)


From: Richard Scott
Subject: Re: [Duplicity-talk] Duplicity emerge on gentoo (problem)
Date: Sun, 21 Sep 2008 09:43:47 +0100 (BST)
User-agent: SquirrelMail/1.5.1

Hi,

You'll most likely find that the latest version available via the Gentoo 
portage system is only
0.4.9 at best. This is way out of date, given the latest is 0.5.01.

What not do the following:

edit /etc/make.conf and add:
PORTDIR_OVERLAY=/opt/portage

then at the command line do this:

# mkdir -p /opt/portage/app-backup/duplicity
# cd /opt/portage/app-backup/duplicity
# cp /usr/portage/app-backup/duplicity/duplicity-0.4.9.ebuild 
duplicity-0.5.01.ebuild
# ebuild duplicity-0.5.01.ebuild digest
# emerge -av duplicity

This should then install the latest version of duplicity :-)

Thanks,

Richard.


> My system is gentoo linux 2.6.20 #7 (vanilla).  I recently emerged the
> duplicity tool.
>
> When I first installed it and attempted to execute it I received the
> following error:
>
> # duplicity -v9
> Traceback (most recent call last):
> File "/usr/bin/duplicity", line 29, in <module>
> from duplicity import collections, commandline, diffdir, dup_temp, \ 
> ImportError: No module named
> duplicity
>
> I figured that I was missing some dependency or something and I
> finally figured out the problem.  The reason duplicity was not working was 
> because python could not
> find the installed duplicity module.  I first checked for the duplicity 
> module in my python
> install directory like so:
>
> # ls -R /usr/lib/python2.5/site-packages/duplicity
> ls: cannot access /usr/lib/python2.5/site-packages/duplicity: No such
> file or directory
>
> It was not installed there.  I then noticed that I had two version of
> python installed (2.4 and 2.5).  So, naturally, I ran:
>
> # ls -R /usr/lib/python2.4/site-packages/duplicity
> <a whole bunch of files were listed>
>
>
> Okay, so it's installed for python v2.4 but not 2.5.  Hmmm...so I wonder:
>
>
> # ls /usr/bin/python
> lrwxrwxrwx 1 root root 9 Sep 19 05:00 /usr/bin/python -> python2.5*
>
> So even though the symlink is (and was) pointing to python v2.5 when I
> installed duplicity, duplicity was still installed for the older version of 
> python.
>
> Just to be sure that duplicity really would work with the old version
> of python I changed the symlink to point to python2.4 instead - and duplicity 
> worked great.
>
> So I know how to fix the bug, the only thing is I would like to put
> the symbolic link back the way it was (pointing to python2.5).  How can I do 
> that and still get
> duplicity to use python2.4?
>
> The gentoo emerge tool tells me that I have dependencies for both
> python 2.4 and 2.5 so I don't want to uninstall either of them permanently.
>
> I tried copying & pasting the duplicity module files from the
> python2.4 site-packages directory and into the python2.5 site-package 
> directory and (as I expected)
> python spits out a ton of errors (when I try to run duplicity) about the 
> duplicity modules having
> been built with an older (2.4) API and that duplicity will not work with 2.5.
>
> I figured out the major bug but I need some help on this little one.
> That is, how can I point the python symlink back to python2.5 and
> still have duplicity work?  Can anyone offer some help with this? Please. :-)
>
>
> Thanks!
>
>
> --
> Jonathon
>
>
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]