Skip to content Skip to sidebar Skip to footer

Traceback When Updating Status On Twitter Via Tweepy

I've been trying to post the readings from my Rpi on Twitter using tweepy, but first I wanted to check if tweepy was working properly, but it's not. I installed the packages proper

Solution 1:

The first positional argument to the update_status() method is interpreted as the media_ids parameter. You need to explicitly name your status parameter to avoid this:

api.update_status(status=single_tweet)

This is a recent change in Tweepy and it looks like their documentation hasn't been updated yet to reflect this.

The different signature has been reported as a bug for the project.

The bug was fixed in August 2015; version 3.5 or newer of Tweepy once again treat the first positional argument as the status parameter.

Post a Comment for "Traceback When Updating Status On Twitter Via Tweepy"