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.

Bug: "Import Error _DEFAULT_CA_CERTS" With tornado 5.0

See original GitHub issue

Since tornado updated to 5.0, the latest version of pynsq has conflict with this new tornado:

>>> import nsq
Traceback (most recent call last):
  File "/Users/tom/Virtualenvs/athena/lib/python3.5/site-packages/nsq/async.py", line 31, in <module>
    from tornado.simple_httpclient import _default_ca_certs as default_ca_certs
ImportError: cannot import name '_default_ca_certs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/tom/Virtualenvs/athena/lib/python3.5/site-packages/nsq/__init__.py", line 29, in <module>
    from .async import AsyncConn
  File "/Users/tom/Virtualenvs/athena/lib/python3.5/site-packages/nsq/async.py", line 34, in <module>
    from tornado.simple_httpclient import _DEFAULT_CA_CERTS
ImportError: cannot import name '_DEFAULT_CA_CERTS'

This bug causes huge consequences on my application and plz fix this ASAP. Currently my way to fix this bug is to put these lines in requirements.txt to force tornado use 4.5.3:

tornado==4.5.3
pynsq

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
kimixsxcommented, Mar 26, 2018

Encountered this issue + 1, where did you find out pynsq-0.8.3 fixed it?

1reaction
mreifersoncommented, Sep 19, 2018

Given that actual compatibility is a ways off, yea, should probably issue a point release for the patch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tornado 5.0 raises error on install with older Python versions ...
This means " ImportError: Tornado requires an up-to-date SSL module. This means Python 2.7.9+ or 3.4+ (although some distributions have backported the ...
Read more >
Unable to launch Jupyter Notebook - Stack Overflow
The error explains what the problem is that you're encountering. You'll need to upgrade your version of tornado to at least v5.0.
Read more >
1748170 – No module named 'tornado.stack_context'
Hackish fix: #Remove tornado package sudo rpm -e --nodeps python3-tornado #install last supported tornado version from python repos sudo pip3 install ...
Read more >
tornado - PyPI
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Read more >
Configuration options - Tornado - Bugsnag docs
from bugsnag import BreadcrumbType bugsnag.configure(enabled_breadcrumb_types=[BreadcrumbType.ERROR, BreadcrumbType.LOG]).
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