Bug 1138 - Pysol fails to start
: Pysol fails to start
Status: RESOLVED FIXED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Contributed Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-30 12:17 MSK by Denis Silakov
Modified: 2013-10-21 14:38 MSD (History)
1 user (show)

See Also:
RPM Package: PySolFC-2.0-9-rosa2012.1.noarch.rpm
ISO-related:
Bad POT generating:
Upstream:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Silakov 2012-11-30 12:17:49 MSK
pysol fails to start with the following error, it seems something is wrong with PNG handling in Tk (and this can affect other packages, not only pysol):

Traceback (most recent call last):
  File "/usr/games/pysol", line 26, in <module>
    init()
  File "/usr/lib/python2.7/site-packages/pysollib/init.py", line 120, in init
    root = Tkinter.Tk(className=settings.TITLE)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1685, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable tk.tcl in the following directories:
    /usr/share/tk8.6 /usr/share/tcl8.6/tk8.6 /usr/lib/tcl8.6/tk8.6 /usr/lib/tk8.6/tk8.6 /usr/lib/tk8.6 /lib/tk8.6 /usr/library

/usr/share/tk8.6/tk.tcl: unfinalized data stream in PNG data
unfinalized data stream in PNG data
    while executing
"image create photo ::tk::icons::warning -data {
    iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAABSZJREFU
    WIXll1toVEcYgL+Zc..."
    (file "/usr/share/tk8.6/icons.tcl" line 15)
    invoked from within
"source /usr/share/tk8.6/icons.tcl"
    (in namespace eval "::" script line 1)
    invoked from within
"namespace eval :: [list source [file join $::tk_library $file.tcl]]"
    (procedure "SourceLibFile" line 2)
    invoked from within
"SourceLibFile icons"
    (in namespace eval "::tk" script line 2)
    invoked from within
"namespace eval ::tk {
        SourceLibFile icons
        SourceLibFile button
        SourceLibFile entry
        SourceLibFile listbox
        SourceLibFile menu
        SourceLibFile panedw..."
    invoked from within
"if {$::tk_library ne ""} {
    proc ::tk::SourceLibFile {file} {
        namespace eval :: [list source [file join $::tk_library $file.tcl]]
    }
   ..."
    (file "/usr/share/tk8.6/tk.tcl" line 462)
    invoked from within
"source /usr/share/tk8.6/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.
Comment 1 Denis Silakov 2012-12-03 11:53:38 MSK
The problem was that /usr/share/tk8.6/icons.tcl contained PNG data generated using old png library. It seems that when using newer libpng, that data caused failures.

I've regenerated PNG data for the icons.tcl file with the new libpng and everything seems to work ok now.

If you are affected by this bug - update the 'tk' and 'libtk' packages (up to 8.6-0.b2.4).
Comment 2 Postnikov Dmitry 2013-10-19 12:04:36 MSD
Pysol fails start:

pysol-4.82-14-rosa2012.1.x86_64
tkinter-2.7.5-3-rosa2012.1.x86_64
lib64png0-1.2.49-4-rosa2012.1.x86_64
lib64png15-1.5.17-1-rosa2012.1.x86_64
python-2.7.5-3-rosa2012.1.x86_64

=======================
[pastordi@mindlife ~]$ pysol
Traceback (most recent call last):
  File "/usr/share/games/pysol/BINARIES/pysol.py", line 121, in <module>
    sys.exit(main(sys.argv))
  File "/usr/share/games/pysol/BINARIES/main.py", line 424, in main
    r = pysol_main(args)
  File "/usr/share/games/pysol/BINARIES/main.py", line 371, in pysol_main
    app.mainloop()
  File "/usr/share/games/pysol/BINARIES/app.py", line 454, in mainloop
    self.statusbar = PysolStatusbar(self.top)
  File "/usr/share/games/pysol/BINARIES/tk/statusbar.py", line 150, in __init__
    self._widgets[0].grid_configure(column=0, row=0, sticky="ew")
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1963, in grid_configure
    + self._options(cnf, kw))
_tkinter.TclError: cannot use geometry manager grid inside .24182152.24182440 which already has slaves managed by pack
[pastordi@mindlife ~]$
===============
Comment 3 Denis Silakov 2013-10-21 14:38:46 MSD
Dmitry, note that his bug was against PySolFC package, not pysol.

For pysol we have a separate bug #2828.