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

 
 

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

Submitted by:  thiago <tvst>
Submitted on:  Wed 13 Jun 2007 08:11:30 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 Jun 2007 03:02:17 AM UTCowslaStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1