Страница 1 из 1

Issues in Python script

Добавлено: 22 апр 2013, 16:52
GiuX
Hello Guys,
i've a problem with an tk interface with python 2.7, whenever it run return me this callback:

Код: Выделить всё

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
    return self.func(*args)
  File "/home/ribes/Documenti/Tesi/Workspace/openwsn-sw/software/openvisualizer/bin/moteStateGui/../../../openUI/OpenFrameLbr.py", line 131, in _retrieveConnectionDetails
    ("All types", "*.*"),
  File "/usr/lib64/python2.7/lib-tk/tkFileDialog.py", line 146, in askopenfile
    filename = Open(**options).show()
  File "/usr/lib64/python2.7/lib-tk/tkCommonDialog.py", line 48, in show
    s = w.tk.call(self.command, *w._options(self.options))
TclError: unfinalized data stream in PNG data
I've seen that there's a bug in rosa Bugzilla, i've update the indicated rpm but the issue persist...
I need of this because it part of my thesis....

Re: Issues in Python script

Добавлено: 22 апр 2013, 17:02
ДроноваЮ
Could you please comment on the bug ( http://bugs.rosalinux.ru/show_bug.cgi?id=1138 ) ? Also the problem of

Код: Выделить всё

TclError: unfinalized data stream in PNG data
seems to be on your side, not related to the bug

Re: Issues in Python script

Добавлено: 22 апр 2013, 17:10
GiuX
I. e. there's a problem with my program?

Re: Issues in Python script

Добавлено: 22 апр 2013, 17:14
ДроноваЮ
GiuX писал(а):I. e. there's a problem with my program?
According to the devs — yes.

Re: Issues in Python script

Добавлено: 22 апр 2013, 17:29
GiuX
It's a project of berkeley... How could I try to debug this? I'm a newbie in python programming...

Re: Issues in Python script

Добавлено: 25 апр 2013, 18:30
d_uragan
It seems that somewhere in that project there is a creation of image from raw data (e.g., "image create ... -data {iVB...").

This data is actually an image, likely encoded with base64. It seems that the data was obtained using old png library and can't be handled by the new one. As a possible solution, you can find the original image, transform it to base64 and put the new value for the '-data' option. Or you can just use '-file' instead of '-data' to load image from file.