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

Got attribute error when import tensorflow #207

Closed vagitablebirdcode closed 1 year ago

vagitablebirdcode commented 1 year ago

When I import tensorflow which has its python plugine logging, I got an attribute error after using the alive_it. The output contents are as follow:

/lib/python3.9/site-packages/alive_progress/core/hook_manager.py", line 134, in _set_stream
    return handler.setStream(stream)
/lib/python3.9/logging/__init__.py", line 1108, in setStream
    self.stream = stream
AttributeError: can't set attribute

My shell and terminal can't flush the cursor and words When I run this programme unless I restart it.

xiachenrui commented 1 year ago

I meet same problem when use debug mode in VScode

rsalmei commented 1 year ago

This is the same as #217, and it is fixed in 3.0.1, enjoy!