duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Re: Duplicity 0.4.4.RC3 Ready


From: Kenneth Loafman
Subject: Re: [Duplicity-talk] Re: Duplicity 0.4.4.RC3 Ready
Date: Tue, 02 Oct 2007 14:17:34 -0500
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

Andreas Schildbach wrote:
> Kenneth Loafman wrote:
>> Andreas Schildbach wrote:
>>> Kenneth Loafman wrote:
>>>
>>>> You need to set the Python path to add the site-packages, like this:
>>>>
>>>>     sys.path.insert(0, '/root/dupl/lib/python2.4/site-packages/')
>>>>
>>>> immediately after the imports in bin/duplicity.  Without it, Python will
>>>> import from the normal places.  This overrides the Python path.
>>> This does not work either. I inserted at line 33:
>>>
>>> sys.path.insert(0,
>>> '/root/duplicity-0.4.4.RC3/lib/python2.4/site-packages/')
>>>
>>> The directory exists, it contains one subdirectory "duplicity" which
>>> contains a bunch of .py and .pyc files.
>> Add the duplicity at the end, i.e.
>> sys.path.insert(0, '/root/dupl/lib/python2.4/site-packages/duplicity')
> 
> I'm afraid this still does not work. Is there a debug facility that
> could help to trace down this problem?

I'm sorry, I said something backwards.  The path needs to be modified
*before* we import, so go back to your original bin/duplicity and add
the following lines:

    import sys
    sys.path.insert(0, '/root/dupl/lib/python2.4/site-packages/')

immediately after the comments and *before* the imports.  Remove the
other line.  This is the correct form.

Also, please verify that the site-packages/duplicity/globals.py has the
string 'version = "0.4.4.RC3"' in the first part of the file.

...Thanks,
...Ken

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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