Issues in Python script

Non-LTS (non-Marathon) related topics
Ответить
GiuX
Сообщения: 68
Зарегистрирован: 29 окт 2012, 01:31
Operating system: RM2012.0lts

Issues in Python script

Сообщение GiuX » 22 апр 2013, 16:52

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....

Аватара пользователя
ДроноваЮ
Сообщения: 2636
Зарегистрирован: 01 июн 2011, 13:11
Operating system: Ubuntu/ROSA
Откуда: Москва

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

GiuX
Сообщения: 68
Зарегистрирован: 29 окт 2012, 01:31
Operating system: RM2012.0lts

Re: Issues in Python script

Сообщение GiuX » 22 апр 2013, 17:10

I. e. there's a problem with my program?

Аватара пользователя
ДроноваЮ
Сообщения: 2636
Зарегистрирован: 01 июн 2011, 13:11
Operating system: Ubuntu/ROSA
Откуда: Москва

Re: Issues in Python script

Сообщение ДроноваЮ » 22 апр 2013, 17:14

GiuX писал(а):I. e. there's a problem with my program?
According to the devs — yes.

GiuX
Сообщения: 68
Зарегистрирован: 29 окт 2012, 01:31
Operating system: RM2012.0lts

Re: Issues in Python script

Сообщение GiuX » 22 апр 2013, 17:29

It's a project of berkeley... How could I try to debug this? I'm a newbie in python programming...

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: Issues in Python script

Сообщение d_uragan » 25 апр 2013, 18:30

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.

Ответить

Вернуться в «ROSA Fresh R1-R3 (2012.1)»