duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] strange error when doing a backup


From: Kenneth Loafman
Subject: Re: [Duplicity-talk] strange error when doing a backup
Date: Fri, 23 Sep 2016 10:10:34 -0500

Hmmm, was Python installed from macports or homebrew?  Mine came from homebrew and defaults to 'UTF-8'.  That could be the problem.  I'm kinda new to the Mac ecosystem, so maybe someone could jump in.

Another thing to check is the "Terminal / Preferences / Advanced / Text encoding" setting.  Mine is set to UTF-8 and the "Set locale... " box is checked.


On Fri, Sep 23, 2016 at 8:32 AM, John Covici <address@hidden> wrote:
Thanks for your quick response.

I get  'US-ASCII'  I wonder how to changeto unicode?

On Fri, 23 Sep 2016 09:02:40 -0400,
Kenneth Loafman wrote:
>
> [1  <text/plain; UTF-8 (7bit)>]
> [2  <text/html; UTF-8 (quoted-printable)>]
> This is actually two levels of error.  The traceback is because Python can't decode the gpg error.  The real error is in gpg itself, but we can't see it because the decode error is triggering while trying to report the gpg error.
>
> So, what is the encoding on your Mac?  You can find out what Python thinks it is by doing this
>
> $ python2
> Python 2.7.12 (default, Jun 29 2016, 14:05:02)
> [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import locale
> >>> locale.getpreferredencoding()
> 'UTF-8'
>
> That's the first level.  After we get that fixed, we'll see the gpg error message itself on the next run.
>
> On Fri, Sep 23, 2016 at 7:25 AM, John Covici via Duplicity-talk <address@hidden> wrote:
>
>  I am trying to do a backup  using duplicity 7.10 on a Mac operating
>  system 10.11.6.  I am getting the following error which I don't
>  understand what to do with:
>  After adding all the incremental backup sets, I get
>  Last full backup date: Wed May  4 17:14:16 2016
>  Traceback (most recent call last):
>    File "/opt/local/bin/duplicity", line 1546, in <module>
>      with_tempdir(main)
>    File "/opt/local/bin/duplicity", line 1540, in with_tempdir
>      fn()
>    File "/opt/local/bin/duplicity", line 1391, in main
>      do_backup(action)
>    File "/opt/local/bin/duplicity", line 1521, in do_backup
>      check_last_manifest(col_stats)  # not needed for full backup
>    File "/opt/local/bin/duplicity", line 1222, in check_last_manifest
>      last_backup_set.check_manifests()
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/collections.py", line 199, in check_manifests
>      remote_manifest = self.get_remote_manifest()
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/collections.py", line 234, in get_remote_manifest
>      manifest_buffer = self.backend.get_data(self.remote_manifest_name)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/backend.py", line 679, in get_data
>      assert not fin.close()
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/dup_temp.py", line 226, in close
>      assert not self.fileobj.close()
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/gpg.py", line 259, in close
>      self.gpg_failed()
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/gpg.py", line 223, in gpg_failed
>      msg += unicode(line.strip(), locale.getpreferredencoding(), 'replace') + u"\n"
>  LookupError: unknown encoding:
>
>  Any ideas as to how to fix this error would be appreciated.
>
>  --
>  Your life is like a penny.  You're going to lose it.  The question is:
>  How do
>  you spend it?
>
>           John Covici
>           address@hidden
>
>  _______________________________________________
>  Duplicity-talk mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/duplicity-talk

--
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         address@hidden


reply via email to

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