bugrdiff-backup - Bugs: bug #20167, AttributeError: class ErrorLog has...

 
 

bug #20167: AttributeError: class ErrorLog has no attribute '_log_inc_rp'

Submitter:  thiago <tvst>
Submitted:  Wed 13 Jun 2007 08:11:30 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 18 Jun 2007 03:02:17 AM UTC, comment #1: 

The fix from bug #19612 was applied to CVS and was included in the release of 1.1.11.

Andrew Ferguson <owsla>
Group administrator
Wed 13 Jun 2007 08:11:30 PM UTC, original submission:  

I was trying to run rdiff-backup without compression (on Ubuntu 7.04 Feisty), but I was getting a complaint about log.py, line 216. The issue is that there is no _log_inc_rp in the class ErrorLog. So, I changed that line to:
 
else: cls._log_fileobj = base_rp.open("wb", compress = 0)
 
And things seemed to work after that. I was wondering if that fix is indeed correct (I only took a quick look at the sources...).

This is the original error message:

Exception 'class ErrorLog has no attribute '_log_inc_rp'' raised of class '<type 'exceptions.AttributeError'>':
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main
    try: Main(arglist)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main
    take_action(rps)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 271, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 328, in Backup
    backup_final_init(rpout)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 430, in backup_final_init
    ErrorLog.open(Time.curtimestr, compress = Globals.compression)
  File "/var/lib/python-support/python2.5/rdiff_backup/log.py", line 216, in open
    else: cls._log_fileobj = cls._log_inc_rp.open("wb", compress = 0)

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main
    try: Main(arglist)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main
    take_action(rps)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 271, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 328, in Backup
    backup_final_init(rpout)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 430, in backup_final_init
    ErrorLog.open(Time.curtimestr, compress = Globals.compression)
  File "/var/lib/python-support/python2.5/rdiff_backup/log.py", line 216, in open
    else: cls._log_fileobj = cls._log_inc_rp.open("wb", compress = 0)
AttributeError: class ErrorLog has no attribute '_log_inc_rp'


FYI, the rdiff backup on Ubuntu 7.04 is version 1.1.5-3build1

thiago <tvst>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by owsla (Posted a comment)
  • -email is unavailable- added by tvst (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-18 owsla StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code