error on startup: invalid literal for int() with base 10: 'icons'

Bug #1180103 reported by Adam Dingle
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
uPdf
New
Undecided
Unassigned

Bug Description

I'm running Ubuntu 13.10 (Saucy). I downloaded updf from bzr, built and installed. When I run it dies on startup with this error:

ValueError: invalid literal for int() with base 10: 'icons'

Revision history for this message
ValHue (valhue) wrote :

ArchLinux x64, installed updf from bzr:

Traceback (most recent call last):
  File "/usr/bin/updf", line 36, in <module>
    main()
  File "/usr/share/updf/updf.py", line 994, in main
    main_without_splash_screen()
  File "/usr/share/updf/updf.py", line 1002, in main_without_splash_screen
    uPDF = UPDF()
  File "/usr/share/updf/updf.py", line 238, in __init__
    toolbar.set_property("toolbar_style",'icons')
ValueError: invalid literal for int() with base 10: 'icons'

Revision history for this message
Odin Hørthe Omdal (velmont) wrote :

Open /usr/share/updf/updf.py as root and search for 'toolbar_style'.
Comment out those two lines you find by putting a "#" in front (they are in different locations):

# toolbar.set_property("toolbar_style",'icons')
# toolbar2.set_property("toolbar_style",'icons')

That will make it work again.

Revision history for this message
Ross Reedstrom (reedstrm) wrote :

A better fix (at least, fitting w/ the intent of the author)
Make them both:

                toolbar.set_property("toolbar_style", Gtk.ToolbarStyle(0)) # icons only

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.