Cannot get twitter-track python script to run!


#1

Errors in Twitter-track.py, not sure what to do here, plz help!

lnxpoc01:~ # python twitter-track.py "football"
Creating user…
Creating definition…
interaction.type == “twitter” and (interaction.content contains “football”)
Getting the consumer…
Traceback (most recent call last):
File “twitter-track.py”, line 58, in
consumer = definition.get_consumer(EventHandler(), ‘http’)
File “/root/datasift.py”, line 475, in get_consumer
return StreamConsumer.factory(self._user, consumer_type, self, event_handler)
File “/root/datasift.py”, line 1382, in factory
raise InvalidDataError(‘Consumer type “%s” is unknown’ % consumer_type)
datasift.InvalidDataError: Consumer type “http” is unknown


#2

nevermind, I figured it out. The package was not extracted from the tarball correctly.