duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] How to get link to oauth on Mac OS X?


From: edgar . soldin
Subject: Re: [Duplicity-talk] How to get link to oauth on Mac OS X?
Date: Wed, 26 Dec 2012 14:55:55 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 26.12.2012 04:25, Michael Terry wrote:
> Note that while trunk uses oauthlib, 0.6.20 did use oauth2.
> 
> While these imports could certainly be done lazily, I'd vote instead to just 
> disable similar backend errors as a whole by catching ImportErrors when 
> loading backends and only printing them on a higher log level.

why? how?
problem is we get "unknown protocol" errors because the backend does not 
initialize properly and register the protocols. this is misleading.

just for fun i implemented the lazy approach among other tidbits. it feels 
proper, because why importing modules that we don't immediately use anyway? 
importing them on first usage is the correct approach. no funny code to deal 
with errors, that never had to occur in the first place, nothing. see
https://code.launchpad.net/~ed.so/duplicity/u1_and_manpage/+merge/141237


happy holidays.. ede

> 
> -mt
> 
> 
> On 24 December 2012 18:22, <address@hidden <mailto:address@hidden>> wrote:
> 
>     On 24.12.2012 23:32, Scott Hannahs wrote:
>     > This error keeps showing up in my log files about the module named 
> oauth.   The module is listed as missing or not found.  I created the python 
> 2.7 oauth library but it may not be in the correct place.  I use "fink" to 
> update duplicity as a package manger.
>     >
>     > The script runs at a fairly verbose level:
>     > --verbosity Notice
>     >
>     > ### Backup ### bin Mon Dec 24 01:18:21 EST 2012
>     > Import of duplicity.backends.u1backend Failed: No module named oauth
>     > Local and Remote metadata are synchronized, no sync needed.
>     > Last full backup date: Sun Dec 23 11:32:41 2012
>     >
>     > The error seems to be harmless in that I don't believe I am using oauth 
> but since I maintain the fink installer package I thought if I have to tell 
> the setup.py program where to look for oauth I should tweak that.
>     >
>     > Mac OSX 10.8.2
>     > % fink list oauth
>     > Information about 6334 packages read in 6 seconds.
>     >  i   oauth2-py27      1.5.211-1    Library for Open Authentication 
> version 1.0
>     > % duplicity --version
>     > duplicity 0.6.20
>     > %
>     >
> 
>     this can be ignored as long as you don't plan to use ubuntu one...
>     also it looks like it needs oauthlib, not oauth2.
> 
>     Mike, should we rather lazily import oauth/httplib in _init so these 
> include issues only are shown to people actually planning to use U1?
> 
>     ..ede/duply.net <http://duply.net>
> 
> 



reply via email to

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