duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Can't find _librsync?


From: edgar . soldin
Subject: Re: [Duplicity-talk] Can't find _librsync?
Date: Sun, 22 Nov 2009 17:23:27 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4

a successfull setup should compile a file called _librsync.so in the folder [/usr/local/lib/python2.6 /]site-packages/duplicity/ . duplicity then works with this library, not the one needed for the compilation. Did the setup complain about anything? Is the file there?

.. ede
duply.net

On 22.11.2009 16:54, Scott Hannahs wrote:
Mac OS X 10.6 and Python 2.6

I have beat my head on this a bit and seem not to be able to figure out why 
duplicity can't find this library.  Duplicity seems to be looking for the 
library _librsync which as far as I can tell does not exist.  This is called 
from the librsync.py which does exist.  When I run duplicity I get the 
following traceback:

% export PYTHONPATH=/usr/local/lib/python2.6/site-packages:/sw/lib/
% /usr/local/bin/duplicity --encrypt-key XXXXXXXX --sign-key YYYYYYYY 
--gpg-options='--default-key=ZZZZZZZZ' $HOME/Documents/ file:///tmp/Documents/
Traceback (most recent call last):
   File "/usr/local/bin/duplicity", line 41, in<module>
     from duplicity import collections
   File "/usr/local/lib/python2.6/site-packages/duplicity/collections.py", line 29, 
in<module>
     from duplicity import path
   File "/usr/local/lib/python2.6/site-packages/duplicity/path.py", line 33, 
in<module>
     from duplicity import librsync
   File "/usr/local/lib/python2.6/site-packages/duplicity/librsync.py", line 37, 
in<module>
     blocksize = _librsync.RS_JOB_BLOCKSIZE
NameError: name '_librsync' is not defined

I have set the PYTHONPATH variable and if I check, it seems that /sw/lib is in 
my path correctly if I print sys.path.

At /sw/lib exist both librsync.a and librsync.dylib

Just for completeness here is the build command for duplicity that I use to 
reference the librsync that I installed with fink.

sudo python setup.py install --prefix=/usr/local --librsync-dir=/sw

It appears that the librsync.py code tries to load the _librsync module and 
then skips over it if that fails.  Then when it tries to reference a variable 
inside that module it has problems.  I am sure that there is something really 
obvious here, but I just don't see it.

Thanks in advance.

Scott



_______________________________________________
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]