Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Graphical programming error on save file
20-07-2016, 11:34 PM,
Graphical programming error on save file

I´m using pinguino stable 11.0-beta.4 on windows 10 64bits.

When I programming with graphical blocks I don´t have any problem. But if I save the file .gpde and reopen it, the blocks are all disconnected and IDE sometimes freeze. It´s impossible to rearrange the blocks. I have tested this in two computers.

I have the same behaviour using developement version 12!

Using version 11 on Linux I don´t have any problems.  

Open the blink.gpde example and save it renamed to blink_saved.gpde result apparently in one file with problem. See the differences in attachments.

Any suggestions to fix it?

Attached Files
.txt   blink_saved_gpde.txt (Size: 2 KB / Downloads: 2)
.txt   blink _gpde.txt (Size: 2.07 KB / Downloads: 3)
01-08-2016, 03:22 PM,
RE: Graphical programming error on save file
You are right!
Windows 8, IDE V11 beta 04
1. I have downloaded your blink_gpde.txt
2. renamed to blink.gpde
3. opened in pinguino
4. saved as blink_saved.gpde
5. restarted pinguio
6. after loading blink_saved.gpde the blocks are disconnected!

I will try looking into it, but it's not a priority because I don't use blocks.
06-08-2016, 04:08 PM,
RE: Graphical programming error on save file
I don't use blocks too. It's for my wife teach microcontrollers for children.
I found the error, but I don't know how to solve.

The error is in the line 352 of file qtgui/gide/app/ in the re.findall() function. In the Linux the function returns the correct widget id, in the windows not.
Look the pictures in annex.
This problems affects pinguino (v11 and v12) using the python2.7(32 or 64 bits) or python3.4 (32 or 64 bits) in the windows 10 (64 bits).

I'm c programmer, I know a little bit of python, and nothing of regular expressions, hence I have difficult to solve this problem.

I appreciate any help.

Attached Files Thumbnail(s)
06-08-2016, 06:22 PM,
RE: Graphical programming error on save file
Studying how regular expressions work in python I managed to solve the problem.
The problem is the capital letters in windows 10 64 bits expression.

replace the line 352 of file qtgui/gide/app/
               id_ = re.findall("[.]*0x[\dabcdef]*[.]*", widget.__str__())[0]
               id_ = re.findall("[.]*0x[\dabcdefABCDEF]*[.]*", widget.__str__())[0]
solve the error.

Forum Jump:

Users browsing this thread: 2 Guest(s)