question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when reusing logging Handlers with unhashable type: 'types.SimpleNamespace'

See original GitHub issue

Hello, 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:open
  • Created a year ago
  • Reactions:1
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

12reactions
rsalmeicommented, Aug 2, 2022

Hey, this is fixed!! Should be available in the next release! 👍

3reactions
rsalmeicommented, Dec 19, 2022

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!! 👋

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found