File "/private/var/folders/jb/smm0c4k544j2fs_vk3d_7ykc0000gn/T/tmpC5rDzV/resources/logging_example/line_spout.py", line 4, in
from kafka import KafkaConsumer
ImportError: No module named kafka
It is ok when I load the kafka module in python console.
Python 2.7.9 (default, Dec 10 2014, 23:46:04)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
【kafka-python-0.9.4】
from kafka import KafkaConsumer
File "/private/var/folders/jb/smm0c4k544j2fs_vk3d_7ykc0000gn/T/tmpC5rDzV/resources/logging_example/line_spout.py", line 4, in
from kafka import KafkaConsumer
ImportError: No module named kafka
It is ok when I load the kafka module in python console.
Python 2.7.9 (default, Dec 10 2014, 23:46:04) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin Type "help", "copyright", "credits" or "license" for more information.