Refresh of Python Interpreter in PyScripter

213 views
Skip to first unread message

Vítor Carvalho

unread,
Jan 15, 2020, 9:47:58 AM1/15/20
to PyScripter
Hi all,

I update my PyScripter from 3.1.0 to a more recent version 3.6.2 and I found the following problem:
In the old version, when I run scripts with "print's" all of then appear in the python interpreter window in the correct moment.
In the new version only after run the full script the "print's" are visible in the python interpreter window, it seams that this window frezze and only be refreshed in the end.
To following the execution of one script we should see the output messages in a real time and do not wait to the script finish... someone can help me to solve this problem please?

Thanks,
Vitor




PyScripter

unread,
Jan 15, 2020, 1:20:03 PM1/15/20
to PyScripter
Could you please post a simple script that reproduces the issue?

D H

unread,
May 5, 2020, 12:03:19 AM5/5/20
to PyScripter
A bit late, but I noticed this a while back and reported issue #949 some time ago. 
Most of my scripts run with 32 bit python import ESRI arcpy, and the worst offender is the one with the lengthiest processes which is why the print notifications exist.
It consists of multiple functions with print notifiers called from the main function
Usually this script finishes all of the tasks but does not print the statements nor notify the interpreter of completion which needs to be reset manually. 
I can check completion from the output, but it is not really satisfactory
WingIDE runs the script as expected

Generally, simple scripts work as expected in PyScripter too

Thanks

Duncan 

Duncan Hornby

unread,
Feb 16, 2021, 1:04:01 PM2/16/21
to PyScripter
I've noticed this behaviour too and its frustrating, like Duncan my scripts typically run using the 32 bit python import ESRI arcpy

Try putting a sleep command within your loop, I found this much improved the reporting that I wanted to see in the interpreter window.

time.sleep(0.2)

Duncan (I too am a Duncan!)
Reply all
Reply to author
Forward
0 new messages