Comments (5)
I have the same issue with Python 3.6 and Gooey 1.2.0-alpha
from gooey.
This seems to be a duplicate of #701
Workaround: Add flush=True
to all print statements:
print("foo", flush=True)
Alternatively, modify the print
statement to always flush (careful with this, it's usually a bad idea to modify/overwrite built-ins):
import functools
print = functools.partial(print, flush=True)
print("foo") # this uses flush=True now
from gooey.
Finally I use loguru ... put all printout to debug.log...
from gooey.
Finally I use loguru ... put all printout to debug.log...
The same problem, I finally modified the functions _extract_progress
and _forward_stdout
in processor.py
to change the decoding method to gbk
οΌit seems to be working normally
from gooey.
When building it with pyinstaller you need to set the option u
for unbuffered. Then flushing on print is not needed.
Example:
pyinstaller --onefile --windowed --python-option u python_script.py
see more details here
from gooey.
Related Issues (20)
- installing version 1.2.0 on m1 chip
- update release requirements for Python 3.11 on conda-forge HOT 2
- Current package via pip & system install throws RuntimeError HOT 1
- Do you have a download button component HOT 1
- Subparser sections not switching due to a wxPython problem?
- Is there a TUI equivalent of this? HOT 1
- "ArguementParser" Undefined HOT 1
- problem with pyinstaller. 'NoneType' object has no attribute 'isatty' HOT 1
- program_name missed while launching gooeyparser
- Gooey 1.0.8.1 Validation Not Working HOT 2
- Question: Can a script decorated with gooey be invoked without gooey? HOT 1
- Gooey outputs characters after completion "[0m" HOT 3
- `increment` field in `Slider` widget not working HOT 3
- Problem with "colored" library for richtext-control HOT 4
- Is there a way to retain global state upon "Edit" (i.e going back to the first screen and running script again)
- DecimalField: "Field is required" message despite entering a number HOT 4
- Python 3.12 release on pypi (and preferrably also on conda-forge)
- Tabbed output tab title is not rendered properly on tabs other than first
- ModuleNotFoundError: No module named 'rewx' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gooey.