pynsq: Bug: "Import Error _DEFAULT_CA_CERTS" With tornado 5.0

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

About this issue

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

Most upvoted comments

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

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