rdiff-backup-users
[Top][All Lists]
Advanced

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

Re: [rdiff-backup-users] installation on Suse 9.2


From: Dave Howorth
Subject: Re: [rdiff-backup-users] installation on Suse 9.2
Date: Thu, 18 Jan 2007 14:47:01 +0000
User-agent: Thunderbird 1.5.0.8 (X11/20060911)

Charles Duffy wrote:
> Dave Howorth wrote:
>> Charles Duffy wrote:
>>  
>>> Dave Howorth wrote:
>>>    
>>>> --prefix=/usr/local
>>>>       
>>> Well, yeah. You manually specify a prefix that's not in Python's default
>>> sys.path, and you're going to get the issue you see here.
>>
>> Could you expand a bit on that, please?
>>
>> I'm not sure what you think I should be doing.
> 
> Leave the "--prefix=/usr/local" off your "python setup.py install" command.

Hmm, I still think /usr/bin is the wrong place for rdiff-backup, unless
I make an RPM and install it that way, which seems like a lot of effort
for something I'm just trying to test.

> Python modules will only be found if they're in a location in sys.path.
> You can change this to include additional locations (say, via a site.py
> file); however, if you're not feeling up to anything fancy, Python
> modules will only be found if they're installed in one of the locations
> listed by the command
>  python -c "for path in __import__('sys').path: print path"

A bit longer than  perl -e 'print "@INC"'  :)

> ...which typically *won't* list anything under /usr/local. So, since
> anything under /usr/local isn't in your default sys.path, telling Python
> to install a module there means that it won't be found.

In a clean shell it prints this:

/usr/lib64/python23.zip
/usr/lib64/python2.3
/usr/lib64/python2.3/plat-linux2
/usr/lib64/python2.3/lib-tk
/usr/lib64/python2.3/lib-dynload
/usr/lib64/python2.3/site-packages

If the site-packages directory has the same purpose as site_perl does, I
guess that's where the modules ought to be, and just moving them there
makes everything work :)

So I'm happy now. Thanks very much.

Seems like a bug in the rdiff-backup install script to me. The README
specifically gives the example of using --prefix=/usr/local to change
the bin directory and doesn't say the modules will be installed in the
wrong place if you do. Either the docs or setup.py needs updating, IMHO.

Thanks again, Dave




reply via email to

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