scrapinghub / slackbot

A chat bot for Slack (https://slack.com).
MIT License
1.26k stars 394 forks source link

ImportError: cannot import name _thread , Need help #102

Closed KevinHu2014 closed 8 years ago

KevinHu2014 commented 8 years ago

Need help with this problem , thanks. Traceback (most recent call last): File "run.py", line 4, in <module> from slackbot.bot import Bot File "/usr/local/lib/python2.7/site-packages/slackbot/bot.py", line 9, in <module> from six.moves import _thread ImportError: cannot import name _thread

KevinHu2014 commented 8 years ago

I find the solution by adding import sys sys.path.insert(1,'/Library/Python/2.7/site-packages') http://stackoverflow.com/questions/27630114/matplotlib-issue-on-os-x-importerror-cannot-import-name-thread