verigak / progress

Easy to use progress bars for Python
ISC License
1.41k stars 179 forks source link

Nothing shows up on screen in Python 3.8 #84

Open hanss0n opened 4 years ago

hanss0n commented 4 years ago

Is the package deprecated for newer versions of python?

zhaowb commented 4 years ago

Tried with docker 3.8.4 it looks fine

To repeat:

> docker run -itd --name py3.8 python:3.8
> docker exec -it py3.8 pip install progress ipython
> docker exec -it py3.8 ipython
Python 3.8.4 (default, Jul 14 2020, 02:56:59) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from progress.bar import Bar        

In [2]: Bar().next()                        
 |                                | 1/100
asiltureli commented 4 years ago

Have the same issue.

Unbenannt2

sgolestanian commented 4 years ago

I have the same problem too in Python 3.8

from progress.bar import Bar

with Bar('Processing', max=20) as bar:
    for i in range(20):
        bar.next()
maash3r commented 4 years ago

@sgolestanian I ran the same code and it works fine for me. On what OS are you running the code and maybe even the terminal? Untitled

sgolestanian commented 4 years ago

@sgolestanian I ran the same code and it works fine for me. On what OS are you running the code and maybe even the terminal? Untitled

On windows 10 and spyder IDE

maash3r commented 4 years ago

On windows 10 and spyder IDE

I tried it out on Spyder and yes it doesn't work. Spyder uses an integrated IPython console to run code. Although this snippets works with running IPython directly from terminal instead of from inside Spyder, so the problem maybe caused by how Spyder manages stdout for IPython. I would suggest you try running the same snippet from a terminal emulator.

Andresnotch commented 3 years ago

I had the same problem with pycharm console. The solution in #83 solves it perfectly. You just need to set check_tty=False like: ChargingBar("Mixing", max=100, check_tty=False)

fogx commented 3 years ago

might be worth it to post the solution in the readMe. I also stumbled upon this