Re: anaconda barfs (ZeroDivisionError)

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

 



armijn:
 
I am having the exact same problem but I am kind of a newbee to anaconda compiling. I am also working on a customized RH9 distro w/ ximian xd2.
 
I am getting the same error message. Now you are saying you did
 
def setPackageScale(self, amount, total):
        #self.s.set(int(((amount * 1.0)/ total) * 100))
        self.s.set(50)
 
to fix the problem.
 
Could I ask for help on how to exactely go about doing this change? I found the progress_text.py file and did the change. Do I now need to re-compile anaconda? How do I go about this since I have never done this before.
 
Help is appreciated.
 
Thank you
 
AR

 
[cut]
> Looking at the source, it seems like  something goes wrong in 's the code
> that updates the progress bar. I added a "try" statement in the function
> where it fails, I rebuilt anaconda and I'm about to test it. But, it
> feels very hackish, so I was wondering if this is a known problem and if
> there is a proper fix available.

I "solved" this by setting the progress bar to be at 50% all the time.

In anaconda-9.0/textw/progress_text.py I did the following.

    def setPackageScale(self, amount, total):
        #self.s.set(int(((amount * 1.0)/ total) * 100))
        self.s.set(50)

I tried to use newer versions of anaconda, but couldn't even get them
compiled...

Ah well, at least it's working :)

armijn

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux