Uncaught error 'invalid literal for int() with base 10: '/ = 0'' when processing invalid configuration files

Bug #689016 reported by Francesco Toniolo
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sbackup
Status tracked in Trunk
0.11
Fix Released
Low
Jean-Peer Lorenz
Trunk
Fix Released
Low
Jean-Peer Lorenz

Bug Description

I had changed destination folder
from /var/backups
to /var/backup
I had saved configuration e SBackup crashed

distribution: UBUNTU 10.10
sbackup version: 0.11.3ubuntu1
Simple Backuip Suite GTK+ graphical user interface (sbackup-gtk) installed from PPA

SBackup 'Default Profile' Logger

==============

2010-12-11 19:41:42,263 - INFO: Log output for [Default Profile] is directed to file '/var/log/sbackup/sbackup.2010-12-11_19.41.42.252498.log'.
2010-12-11 19:41:42,264 - INFO: Profile settings are being read from file '/etc/sbackup.conf'.
2010-12-11 19:41:42,266 - INFO: Log output for [Default Profile] is directed to file '/var/log/sbackup/sbackup.2010-12-11_19.41.42.265664.log'.
2010-12-11 19:41:42,267 - INFO: Profile settings are being read from file '/etc/sbackup.conf'.
2010-12-11 19:41:42,989 - ERROR: Uncaught exception: invalid literal for int() with base 10: '/ = 0'
2010-12-11 19:41:42,990 - ERROR: Traceback (most recent call last):
  File "/usr/bin/sbackup-config-gtk", line 45, in <module>
    main(sys.argv)
  File "/usr/share/sbackup/sbackup/ui/configgui.py", line 2092, in main
    window = SBconfigGTK()
  File "/usr/share/sbackup/sbackup/ui/configgui.py", line 199, in __init__
    self._fill_widgets_from_config(probe_fs = True)
  File "/usr/share/sbackup/sbackup/ui/configgui.py", line 586, in _fill_widgets_from_config
    self.__fill_dir_widgets_from_config()
  File "/usr/share/sbackup/sbackup/ui/configgui.py", line 251, in __fill_dir_widgets_from_config
    dirconfig = self.configman.get_dirconfig_local()
  File "/usr/share/sbackup/sbackup/core/ConfigManager.py", line 544, in get_dirconfig_local
    _res.append((_item[0].replace("\\x3d", "="), int(_item[1])))
ValueError: invalid literal for int() with base 10: '/ = 0'

Related branches

Revision history for this message
Francesco Toniolo (francescotoniolo) wrote :
Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Thank you for using SBackup and for taking the time reporting this bug.

In order to track down the cause of the problem some more information are required. Please post your (anonymized) configuration file that caused this error.

Thanks for your help.

Changed in sbackup:
status: New → Confirmed
Changed in sbackup:
status: Confirmed → Incomplete
Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

@Francesco Toniolo:

In order to track down the cause of the problem some more information are required. Please post your (anonymized) configuration file that caused this error.

Thanks for your help.

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

I've added proper handling for errors of this kind to series 0.11.

summary: - invalid literal for int() with base 10: '/ = 0'
+ Uncaught error 'invalid literal for int() with base 10: '/ = 0'' when
+ processing invalid configuration files
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.