我得到了以下错误:
_________________ ERROR collecting tests/test_python.py _________________
ImportError while importing test module '/Users/py/tests/test_python.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_python.py:9: in <module>
...
from confluent_kafka import Producer
.tox/py2/lib/python2.7/site-packages/confluent_kafka/__init__.py:2: in <module>
from .cimpl import (Consumer, # noqa
E ImportError: dlopen(/Users/py/.tox/py2/lib/python2.7/site-packages/confluent_kafka/cimpl.so, 2): Symbol not found: _syslog$DARWIN_EXTSN
E Referenced from: /Users/py/.tox/py2/lib/python2.7/site-packages/confluent_kafka/.dylibs/libcrypto.1.0.0.dylib (which was built for Mac OS X 10.13)
E Expected in: /usr/lib/libSystem.B.dylib
E in /Users/py/.tox/py2/lib/python2.7/site-packages/confluent_kafka/.dylibs/libcrypto.1.0.0.dylib
那么,如何解决这个问题呢?无法在macOS 10.12上导入confluent_kafka?
谢谢