SourceForge has been redesigned. Learn more.
Close

#4 invalid literal for float(): expected

closed
None
5
2002-09-12
2002-09-12
No

I'm attempting to use the latest stable release of
UML-Builder to setup a UML with RH-7.2. I got as far
as the very last screen where its supposed to create
the UML for me, and then it errors out:

Unexpected exception occurred:
Traceback (innermost last):
File "/usr/lib/uml/umlbuilder/gui.py", line 803, in run
error=self.error, system=self.system)
File "/usr/lib/uml/umlbuilder/uml_mkdistro.py", line
373, in install
self.index(progress)
File "/usr/lib/uml/umlbuilder/uml_mkdistro.py", line
399, in index
self.packages.index(progress)
File "/usr/lib/uml/umlbuilder/pkg_collection.py",
line 121, in index
progress.progress(1,1,"(cache)
"+os.path.basename(self.cachefile))
File "/usr/lib/uml/umlbuilder/gui.py", line 883, in
progress
self.page.progress.progress(cur,max,str)
File "/usr/lib/uml/umlbuilder/widgets.py", line 96,
in progress
self.p.progress(cur,max)
File "/usr/lib/uml/umlbuilder/widgets.py", line 63,
in progress
self.coords(self.rect, 0,0,(cur*self.w)/max,self.h)
File
"/usr/lib/python1.5/site-packages/lib-tk/Tkinter.py",
line 1205, in coords
self.tk.splitlist(
ValueError: invalid literal for float(): expected

What do i do now??

Discussion

  • Anonymous

    Anonymous - 2002-09-12
    • assigned_to: nobody --> rogerb
     
  • Anonymous

    Anonymous - 2002-09-12

    Logged In: YES
    user_id=30737

    That is a strange one. It is occuring in the code that converts
    stuff so that TCL/Tk can use it. In this case, one of the
    coordinates is being transformed into an ascii representation of
    a floating point number, and for whatever reason isn't liked.

    Can you please insert a line 63 that prints out each of the
    parameters:

    print self.rect, 0, 0, (cur*self.w)/max,self.h

    Is this repeatable? Which modules did you pick?

    Did you resize the UML Builder at all?

     
  • Anonymous

    Anonymous - 2002-09-12

    Logged In: YES
    user_id=107912

    I'm not quite sure which file i'm supposed to insert that
    line into. I inserted it as line 63 in
    /usr/lib/uml/umlbuilder/gui.py and now when i run
    umlbuilder_gui and click next after selecting Redhat7.2, i
    see this error:
    Unexpected exception occurred:
    Traceback (innermost last):
    File "/usr/lib/uml/umlbuilder/gui.py", line 63, in gettext
    print self.rect, 0, 0, (cur*self.w)/max,self.h
    AttributeError: rect

    Unexpected exception occurred:
    Traceback (innermost last):
    File "/usr/lib/uml/umlbuilder/gui.py", line 63, in gettext
    print self.rect, 0, 0, (cur*self.w)/max,self.h
    AttributeError: rect

    That error basically appears each time i click next, and
    instead of seeing any explanation all i see is "Dummy help
    text because of exception in gettext()".

    As for it being repeatable, yes, each time i've tried to run
    umlbuilder_gui, the same error occured at the very end.
    I've tried with all the modules, and without all but KDE,
    and the result is the same.

    I'm not sure what you mean by "resize UML Builder".

    thanks for your help.

     
  • Anonymous

    Anonymous - 2002-09-12

    Logged In: YES
    user_id=30737

    Apologies for not being clear enough. The file you need to
    modify is widgets.py and you need to insert the line before the
    existing line 63. (Line 63 is the last line of my code from the
    stacktrace above).

    By resize, I mean did you resize the main UML Builder window.

    Somehow one of those parameters in line 63 which are the
    coordinates for the progress bar are ending up as non-
    numbers. What is your host version of Linux?

     
  • Anonymous

    Anonymous - 2002-09-12
    • status: open --> closed
     
  • Anonymous

    Anonymous - 2002-09-12

    Logged In: YES
    user_id=107912

    OK, this is quite weird. After adding that line to the
    wrong file, i was able to complete the install successfully.
    Nothing else was changed.

     

Log in to post a comment.