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.

Tests failing with Tornado 6.x version due to missing `stack_context`

See original GitHub issue

Tornado removed the stack_context module (see https://github.com/tornadoweb/tornado/commit/45d9f6d0a23f3ca90d23e00e5c1ed40b955b335d ) so current test runs are failing with:

==================================== ERRORS ====================================
____________ ERROR collecting tests/scope_managers/test_tornado.py _____________
tests/scope_managers/test_tornado.py:27: in <module>
    from opentracing.scope_managers.tornado import TornadoScopeManager
opentracing/scope_managers/tornado.py:24: in <module>
    import tornado.stack_context
E   ModuleNotFoundError: No module named 'tornado.stack_context'
===================== 104 passed, 1 error in 0.89 seconds ======================
make: *** [test] Error 1
The command "make test testbed lint" exited with 2.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yurishkurocommented, Dec 31, 2019

we’re already testing with tornado >= 6, and all tests are green in master, so I don’t think this is an issue any longer.

0reactions
vissssacommented, Dec 30, 2019

Should remind ’tornado<6,>=4.1‘

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stack context no longer works with async methods on 5.0.2
The tornado.stack_context module is deprecated and will be removed in Tornado 6.0. The reason for this is that it is not feasible to...
Read more >
tornado.stack_context — Exception handling across ...
Run this callback when the StackContext is no longer needed to ensure that it is not propagated any further (note that deactivating a...
Read more >
Tornado Documentation - Read the Docs
Tornado is different from most Python web frameworks. It is not based on WSGI, and it is typically run with only one thread...
Read more >
tornadoweb/tornado - Gitter
I am trying to attach an async function to tornado's IOloop and have it be spawned periodically. However, there is no periodic version...
Read more >
Tornado unit test with web sockets - what about stack context?
I would like to use AsyncTestCase with web sockets, The client is not a problem, i can send and receive messages without problems....
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