rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.53k stars 206 forks source link

Problems with pyinstaller #143

Closed m1ch4elx closed 2 years ago

m1ch4elx commented 2 years ago

Previously I was getting error like #123 did. I downgraded to version 1.6.2 like he said but now I'm getting error like this:

File "C:\Users\Micha\AppData\Local\Programs\Python\Python310\Scripts\tkt.py", line 15, in <module>
    from alive_progress.styles import showtime, Show
ImportError: cannot import name 'showtime' from 'alive_progress.styles' (C:\Users\Micha\AppData\Local\Programs\Python\Python310\lib\site-packages\alive_progress\styles\__init__.py)
Shivam-Shrivastav commented 2 years ago

Please visit:

(C:\Users\Micha\AppData\Local\Programs\Python\Python310\lib\site-packages\alive_progress\styles\__init__.py)

and check if there is an element name 'showtime' in tuple or not if not present then, let it be as:


__all__ = (
    'BARS', 'SPINNERS', 'THEMES', 'Show', 'showtime', 'show_spinners', 'show_bars', 'show_themes',
)
m1ch4elx commented 2 years ago

Please visit:

(C:\Users\Micha\AppData\Local\Programs\Python\Python310\lib\site-packages\alive_progress\styles\__init__.py)

and check if there is an element name 'showtime' in tuple or not if not present then, let it be as:


__all__ = (
    'BARS', 'SPINNERS', 'THEMES', 'Show', 'showtime', 'show_spinners', 'show_bars', 'show_themes',
)

I realised that I don't need showtime and Show at all but I need to have function to hide receipt, it comes with version 2.2.0 but when I install it I again get error like mentioned at #123

m1ch4elx commented 2 years ago

And yes, it is in init.py image

rsalmei commented 2 years ago

That's weird, I don't know yet what that could be. But to hide the receipt you do not need to import anything, just send to alive_bar the param receipt=False.

m1ch4elx commented 2 years ago

I removed showtime and Show as I don't need it but considering your reply: It does come with version 2.2.0 and besides that I need customizable monitor, elapsed, and stats core widgets which comes with version 2.3.0. Something wrong with grapheme

Mettwasser commented 2 years ago

I have the EXACT same problem. I don't know what to do..

rsalmei commented 2 years ago

But what problem?? Show me the command you used, and the outcome. The only exception in this thread is one trying to import showtime.

Mettwasser commented 2 years ago

Oh I just realised this was issue #123 I had.. I have the problem mentioned in issue #123. I'm sorry. I got 1:1 the same error as pranjay there. I downgraded to the mentioned version and now it works, tho I would like to have the new features..

rsalmei commented 2 years ago

I see, no problem! I'm going to close this one and reopen that one then.