Hitting an error (event with the sample code) - 'Api' object has no attribute '_Api__auth'


#1

Hi there, im running through the Learn the Watson API and am on step 7.
However, even when i use the sample code provided i see this error on the right...

Traceback (most recent call last):
File "CelebrityMatch.py", line 17, in
statuses = twitter_api.GetUserTimeline(screen_name=handle, count=200, include_rts=False)
File "/usr/local/lib/python2.7/dist-packages/twitter/api.py", line 628, in GetUserTimeline
json = self._RequestUrl(url, 'GET', data=parameters)
File "/usr/local/lib/python2.7/dist-packages/twitter/api.py", line 3601, in _RequestUrl
auth=self.__auth,
AttributeError: 'Api' object has no attribute '_Api__auth'

Google suggests there may be a conflict between packages Twitter and Python_twitter - however i dont see the twitter package installed with i do 'pip freeze'

any thoughts?


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.