Crash when reusing logging Handlers with unhashable type: 'types.SimpleNamespace'
See original GitHub issueHello, First of all thank you for all the effort you’ve put in to this project so far.
I am running into an issue I can’t seem to resolve and would love it if you could give your opinion.
I am trying to use both alive-progress and sshtunnel together. All I’ve done is create the sshtunnel definition before the alive example code as below, and I am getting the error from the headline :\
from alive_progress import alive_bar
import time
from sshtunnel import SSHTunnelForwarder
ssh_tun = SSHTunnelForwarder(
"0.0.0.0",
ssh_username="mooo",
remote_bind_address=('127.0.0.1', 8080)
)
for x in 1000, 1500, 700, 0:
with alive_bar(x) as bar:
for i in range(1000):
time.sleep(.005)
bar()
Thoughts? Thank you in advance for any reply.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Issues · rsalmei/alive-progress - GitHub
Crash when reusing logging Handlers with unhashable type: 'types.SimpleNamespace' bug Something isn't working as expected ready for release.
Read more >TypeError : Unhashable type - python - Stack Overflow
You are creating a set via set(...) call, and set needs hashable items. You can't have set of lists. Because list's arent hashable....
Read more >Changelog — Python 3.11.1 documentation
gh-96046: PyType_Ready() now initializes ht_cached_keys and performs additional checks to ensure that type objects are properly configured. This avoids crashes ...
Read more >ActivePython 3.7.4 Documentation
The acquire/release pattern was leading to deadlocks in code that has implemented any form of chained logging handlers that depend upon one another...
Read more >更新日志 — Python 3.9.6 文档
bpo-44184: Fix a crash at Python exit when a deallocator function removes the last strong reference to a heap type. Patch by Victor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, this is fixed!! Should be available in the next release! 👍
Hi folks!
I’d just like to let you know I’m committing it at this exact moment! Should be released soon!! 👍
Thanks, @Crinibus, you have a great week!! 👋