Front page

Errors with latest cliapp

2b24dbf381304fa7be7925900c580ae8
BRIEFCASE CAPRICORN SUSPENSE

From: Jan Niggemann <jn@hz6.de>
Date: Thu, 24 Aug 2017 20:22:23 +0200

   Without touching the machine I now get this error:
   
   
   Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 193, in _run
        self.process_args(args)
      File "/usr/lib/python2.7/dist-packages/obnamlib/app.py", line 228,  
   in process_args
        cliapp.Application.process_args(self, args)
      File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 593, in  
   process_args
        method(args[1:])
      File  
   "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py",  
   line 166, in backup
        self.backup_roots(root_urls)
      File  
   "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py",  
   line 369, in backup_roots
        self.backup_root(root_url, absroots)
      File  
   "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py",  
   line 396, in backup_root
        for pathname, metadata in self.find_files(absroot):
      File  
   "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py",  
   line 577, in find_files
        for pathname, st in self.fs.scan_tree(root, ok=self.can_be_backed_up):
      File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 337,  
   in scan_tree
        items = process_dir(filename, metadata, items)
      File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 324,  
   in process_dir
        for subname, submeta in list_files(dirname)]
      File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 304,  
   in list_files
        pairs = self.listdir2(pathname)
      File "/usr/lib/python2.7/dist-packages/obnamlib/vfs_local.py", line  
   418, in listdir2
        st = self.lstat(os.path.join(dirname, name))
      File "/usr/lib/python2.7/dist-packages/obnamlib/vfs_local.py", line  
   235, in lstat
        ctime_sec, ctime_nsec) = obnamlib._obnam.lstat(self.join(pathname))
   UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in  
   position 55: ordinal not in range(128)
   
   
   Debian 8.9 with the following packages:
   ii  python-cliapp                        1.20170823-1.debian8           
           all          Python framework for Unix command line programs
   ii  obnam                                1.22-1.debian8                 
           i386         online and disk-based backup application
From: Lars Wirzenius <liw@liw.fi>
Date: Thu, 24 Aug 2017 22:05:47 +0300

   On Thu, Aug 24, 2017 at 08:22:23PM +0200, Jan Niggemann wrote:
   > Without touching the machine I now get this error:
   >   File "/usr/lib/python2.7/dist-packages/obnamlib/vfs_local.py", line 235,
   > in lstat
   >     ctime_sec, ctime_nsec) = obnamlib._obnam.lstat(self.join(pathname))
   > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position
   > 55: ordinal not in range(128)
   
   I seem to get something similar when I run the Obnam test suite. I'll
   have look, though it will like be next week, as I'm going to another
   country to attend a social event this weekend. In the mean while, you
   can downgrade to the previous version, since the new version doesn't
   have any functional changes you should need for Obnam.
From: Lars Wirzenius <liw@liw.fi>
Date: Sun, 27 Aug 2017 10:23:13 +0100

   On Thu, Aug 24, 2017 at 10:05:47PM +0300, Lars Wirzenius wrote:
   > On Thu, Aug 24, 2017 at 08:22:23PM +0200, Jan Niggemann wrote:
   > > Without touching the machine I now get this error:
   > >   File "/usr/lib/python2.7/dist-packages/obnamlib/vfs_local.py", line 235,
   > > in lstat
   > >     ctime_sec, ctime_nsec) = obnamlib._obnam.lstat(self.join(pathname))
   > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position
   > > 55: ordinal not in range(128)
   > 
   > I seem to get something similar when I run the Obnam test suite. I'll
   > have look, though it will like be next week, as I'm going to another
   > country to attend a social event this weekend. In the mean while, you
   > can downgrade to the previous version, since the new version doesn't
   > have any functional changes you should need for Obnam.
   
   I believe I've fixed the bug in cliapp. I will be building and
   uploading version 1.20170827 with the fix once I'm online again.
   Meanwhile, drop the "unicode_literals" from the "from __future__
   import" line in settings.py.
From: Jan Niggemann <jn@hz6.de>
Date: Tue, 05 Sep 2017 21:25:32 +0200

   Zitat von Lars Wirzenius <liw@liw.fi>:
   
   > On Thu, Aug 24, 2017 at 10:05:47PM +0300, Lars Wirzenius wrote:
   >> On Thu, Aug 24, 2017 at 08:22:23PM +0200, Jan Niggemann wrote:
   >> > Without touching the machine I now get this error:
   >> >   File "/usr/lib/python2.7/dist-packages/obnamlib/vfs_local.py", line 235,
   >> > in lstat
   >> >     ctime_sec, ctime_nsec) = obnamlib._obnam.lstat(self.join(pathname))
   >> > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4'  
   >> in position
   >> > 55: ordinal not in range(128)
   >>
   >> I seem to get something similar when I run the Obnam test suite. I'll
   >> have look, though it will like be next week, as I'm going to another
   >> country to attend a social event this weekend. In the mean while, you
   >> can downgrade to the previous version, since the new version doesn't
   >> have any functional changes you should need for Obnam.
   >
   > I believe I've fixed the bug in cliapp. I will be building and
   > uploading version 1.20170827 with the fix once I'm online again.
   > Meanwhile, drop the "unicode_literals" from the "from __future__
   > import" line in settings.py.
   >
   I can confirm that the 1.20170827 version fixes the issue.
   
   Thank you Lars!