![]() |
Re: witter - a python twitter client
Quote:
Another one: with 0.3.2-3 it works with status.net again. The tweets are shown in the right order but the timestamps all show the time when witter got them from the server - not the tweet timestamps. |
Re: witter - a python twitter client
Great application, best Twitter client for my N900.
Couple of questions: - Sometimes when I launch the app there are only one or two tweets or none but when I check on twitter.com there are dozens. - It does not auto refresh, is that correct or are my settings wrong ? - When I try to refresh it I get a message 'Error retrieving tweets Server returned 400:' - The Friends page does not list anything, I assumed it would show followers ? - User History is also empty ? - The + tab brings up a menu at the bottom +20 +50... but this does not load more Tweets. I do not want you to think I am being in anyway negative, I just want to get the best from this great app. |
Re: witter - a python twitter client
firstly, it always help if you tell me which version of witter you have, as there are different ones in Extras, Extras-testing and extra-devel.
Also are you using basic auth or oAuth? Quote:
Sometimes the twitter api doesn't seem to return the full list of tweets, I think it's their side rather than mine, as it happens occasionally. Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: witter - a python twitter client
Version 0.3.2-4
I am using Oauth 'Error retrieving tweets Server returned 400:' No this only happens once or twice a day. Usually when I try to refresh by pressing the circular arrows bottom left; speech bubble to left; circular arrows bottom left. I am not sure what the api rate limit actually is but I was playing around with the settings and may have moved away from the most efficient way of setting it up. I have: Time line - 1 sec Mention - 5 secs DM - 30 Public - 90 Followers: selected Friends and refresh and got the error 'Error retrieving tweets Server returned 400:' four times. The + tab brings up a menu at the bottom +20 +50... but this does not load more Tweets. hmm, it's supposed to, again helps to know if basic auth or oauth No does not work, no not even get the timer spinning in the top bar. "Sometimes when I launch the app there are only one or two tweets or none but when I check on twitter.com there are dozens." Sometimes the twitter api doesn't seem to return the full list of tweets, I think it's their side rather than mine, as it happens occasionally. Occurs more with retweets if that is helpful information. Your pint should have been delivered to you. Many thanks |
Re: witter - a python twitter client
Quote:
it should in theory prompt you for login, unless you are already logged in, and it should show you whether you are at your api usage limit on your account. I kept blowing this limit in development of witter and consequently got my account white-listed to remove the limit ;-) Basically if twitter returns a 400 there is not much I can do other than report that's what it told me. Quote:
Quote:
run-standalone.sh python2.5 /opt/witter/witter.py this will spit out lots of output whilst it runs. It will be quite noisy to begin with, once it's stopped, then hit the +20 button and see what it says, it's possible that I'm not handling some error condition properly. Though I did try it this morning with 0.3.2-4 and it works ok for me Quote:
I have considered making witter always log to a file, but I'm not sure that I want to incur the cost of this, it may well adversely effect performance, but would help in these situations. Quote:
EDIT: also may be relevant that twitter is currently showing the fail whale, and nothing is working ;-) |
Re: witter - a python twitter client
My issues have also been caused by the way I was using Witter and had it configured. I have set the time line to refresh every 5 mins (I did mean mins but typed secs) and Mention every 10, I also did an uninstall and reinstall.
Running from the terminal as requested: After about 25 mins one Retweet and three other tweets appeared on Twitter.com none on timeline after doing a refresh, the timer was still spinning around. I closed twitter.com to reduce the api hit. After further 5 mins with the timer spinning I closed Witter Xterminal did not capture it all but this is what I got: 2010-05-20 18:03:27 updating all stored images for 27915827 offset hours = +0 None 2010-05-20 18:03:23 updating all stored images for 17181843 offset hours = +0 None 2010-05-20 18:03:22 offset hours = +0 None 2010-05-17 23:46:39 reply to skr0 updating all stored images for 110376411 offset hours = +0 None 2010-05-20 18:03:17 running tasks: 2 offset hours = +0 None 2010-05-12 20:21:41 reply to skr0 offset hours = +0 None 2010-05-11 22:12:09 reply to skr0 offset hours = +0 None 2010-05-11 13:17:50 reply to skr0 offset hours = +0 None 2010-05-06 20:14:56 reply to skr0 offset hours = +0 None 2010-05-05 22:22:49 reply to skr0 offset hours = +0 None 2010-05-05 10:21:21 reply to skr0 offset hours = +0 None 2010-05-04 20:07:15 reply to skr0 offset hours = +0 None 2010-04-28 20:50:17 reply to skr0 offset hours = +0 None 2010-04-24 00:59:54 reply to skr0 offset hours = +0 None 2010-04-23 19:46:41 reply to skr0 offset hours = +0 None 2010-04-23 19:12:24 reply to skr0 offset hours = +0 None 2010-04-23 17:24:23 reply to skr0 offset hours = +0 None 2010-04-22 20:49:44 running tasks: 1 running tasks: 2 getting tweets with Skr0 base url = https://twitter.com/ base url of api object = https://twitter.com/ refreshing since14373468123 fetching tweets from https://twitter.com/statuses/friends_timeline.json running tasks: 1 running tasks: 2 performing search nothing to search running tasks: 1 running tasks: 2 performing search nothing to search running tasks: 1 running tasks: 2 getting mentions refreshing since14362663963 running tasks: 1 running tasks: 2 performing search nothing to search running tasks: 1 <hildon.Button object at 0x41b2e828 (HildonButton at 0x3a5008)> timeline running tasks: 2 getting tweets with Skr0 base url = https://twitter.com/ base url of api object = https://twitter.com/ refreshing since14373468123 fetching tweets from https://twitter.com/statuses/friends_timeline.json Exception in thread Thread-7: Traceback (most recent call last): File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner self.run() File "/usr/lib/python2.5/threading.py", line 446, in run self.__target(*self.__args, **self.__kwargs) File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 69, in _refresh File "/opt/witter/witter.py", line 700, in getTweetsWrapper self.activeAccount.getTweets(auto=autoval, older=get_older, get_count=more) File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 215, in getTweets File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 857, in set_pic_for_id File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 884, in set_pix GError: Image file '/home/user/.witterPics/Twitter/20635230.jpg' contains no data running tasks: 3 performing search nothing to search running tasks: 2 running tasks: 3 getting mentions refreshing since14362663963 running tasks: 2 <hildon.Button object at 0x41b2e530 (HildonButton at 0x3a5008)> timeline running tasks: 3 getting tweets with Skr0 base url = https://twitter.com/ base url of api object = https://twitter.com/ refreshing since14374661104 fetching tweets from https://twitter.com/statuses/friends_timeline.json running tasks: 2 <hildon.Button object at 0x41b2e530 (HildonButton at 0x3a5008)> timeline running tasks: 3 getting tweets with Skr0 base url = https://twitter.com/ base url of api object = https://twitter.com/ refreshing since14374661104 fetching tweets from https://twitter.com/statuses/friends_timeline.json <hildon.Button object at 0x41b2e530 (HildonButton at 0x3a50a8)> mentions running tasks: 2 <hildon.Button object at 0x41b29b70 (HildonButton at 0x3a5008)> timeline running tasks: 3 getting tweets with Skr0 base url = https://twitter.com/ base url of api object = https://twitter.com/ refreshing since14374661104 fetching tweets from https://twitter.com/statuses/friends_timeline.json running tasks: 2 running tasks: 3 performing search nothing to search running tasks: 2 <hildon.Button object at 0x41b29210 (HildonButton at 0x3a5008)> timeline running tasks: 3 getting tweets with Skr0 base url = https://twitter.com/ base url of api object = https://twitter.com/ refreshing since14374661104 fetching tweets from https://twitter.com/statuses/friends_timeline.json running tasks: 2 Stop Wittering shutting down refresh loop written config object to file stopping thread stopping thread stopping thread stopping thread stopping thread killing thread killing thread killing thread killing thread ~ $ Opened Witter again from the command line and left for 6 mins, no tweets displayed, hit refresh time 18:46. One Tweet displayed. Opened twitter.com and there were 3 tweets inc one retweet. Code from this: jpg' contains no data updating all stored images for 123643330 offset hours = +0 None 2010-05-20 18:37:18 offset hours = +0 None 2010-05-20 14:56:03 reply to skr0 updating all stored images for 9266222 offset hours = +0 None 2010-05-20 18:37:17 updating all stored images for 143500048 offset hours = +0 None 2010-05-20 18:37:15 updating all stored images for 50941753 offset hours = +0 None 2010-05-20 18:37:14 offset hours = +0 None 2010-05-19 00:27:57 reply to skr0 updating all stored images for 28147340 offset hours = +0 None 2010-05-20 18:37:10 updating all stored images for 44293405 offset hours = +0 None 2010-05-20 18:37:08 updating all stored images for 24420975 offset hours = +0 None 2010-05-20 18:37:05 offset hours = +0 None 2010-05-18 10:51:57 reply to skr0 updating all stored images for 50649568 offset hours = +0 None 2010-05-20 18:37:00 updating all stored images for 120753292 offset hours = +0 None 2010-05-20 18:36:57 updating all stored images for 14789018 offset hours = +0 None 2010-05-20 18:36:56 updating all stored images for 19114679 offset hours = +0 None 2010-05-20 18:36:55 offset hours = +0 None 2010-05-17 23:46:39 reply to skr0 updating all stored images for 72116831 offset hours = +0 None 2010-05-20 18:36:49 updating all stored images for 118537891 offset hours = +0 None 2010-05-20 18:36:48 updating all stored images for 17856771 offset hours = +0 None 2010-05-20 18:36:45 updating all stored images for 133815891 offset hours = +0 None 2010-05-20 18:36:44 offset hours = +0 None 2010-05-12 20:21:41 reply to skr0 updating all stored images for 9081932 offset hours = +0 None 2010-05-20 18:36:42 offset hours = +0 None 2010-05-11 22:12:09 reply to skr0 updating all stored images for 70172755 offset hours = +0 None 2010-05-20 18:36:41 updating all stored images for 123945973 offset hours = +0 None 2010-05-20 18:36:39 updating all stored images for 144329040 offset hours = +0 None 2010-05-20 18:36:38 offset hours = +0 None 2010-05-11 13:17:50 reply to skr0 updating all stored images for 14687806 offset hours = +0 None 2010-05-20 18:36:36 running tasks: 2 offset hours = +0 None 2010-05-06 20:14:56 reply to skr0 offset hours = +0 None 2010-05-05 22:22:49 reply to skr0 offset hours = +0 None 2010-05-05 10:21:21 reply to skr0 offset hours = +0 None 2010-05-04 20:07:15 reply to skr0 offset hours = +0 None 2010-04-28 20:50:17 reply to skr0 offset hours = +0 None 2010-04-24 00:59:54 reply to skr0 offset hours = +0 None 2010-04-23 19:46:41 reply to skr0 offset hours = +0 None 2010-04-23 19:12:24 reply to skr0 offset hours = +0 None 2010-04-23 17:24:23 reply to skr0 offset hours = +0 None 2010-04-22 20:49:44 running tasks: 1 running tasks: 2 performing search nothing to search running tasks: 1 running tasks: 2 getting tweets with Skr0 base url = https://twitter.com/ base url of api object = https://twitter.com/ refreshing since14374661104 fetching tweets from https://twitter.com/statuses/friends_timeline.json offset hours = +0 None 2010-05-20 18:43:09 Exception in thread Thread-6: Traceback (most recent call last): File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner self.run() File "/usr/lib/python2.5/threading.py", line 446, in run self.__target(*self.__args, **self.__kwargs) File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 69, in _refresh File "/opt/witter/witter.py", line 700, in getTweetsWrapper self.activeAccount.getTweets(auto=autoval, older=get_older, get_count=more) File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 215, in getTweets File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 857, in set_pic_for_id File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 884, in set_pix GError: Couldn't recognise the image file format for file '/home/user/.witterPics/Twitter/122994639.jpg' Stop Wittering shutting down refresh loop written config object to file stopping thread stopping thread stopping thread stopping thread stopping thread killing thread killing thread killing thread killing thread From api.twitter.com I got: 150 150 1274381219 2010-05-20T18:46:59+00:00 Hope this help |
Re: witter - a python twitter client
Quote:
Ah ha! two interesting problems. the first is that one of the avatar images has either failed to download properly, leaving an empty file, and by the looks a corrupted file. When witter tries to reload these from it's cache it dies, basically whenever a tweet from either of these to twitter ids shows up in your timeline it dies. if you delete: /home/user/.witterPics/Twitter/20635230.jpg '/home/user/.witterPics/Twitter/122994639.jpg' or perhaps just ot be safe, delete every image in that folder, then it should return to normal. if it happens again I will presume something more sinister afoot. I will also see if I can code defensively against this possible error |
Re: witter - a python twitter client
I have deleted all the files in that folder will let you know how I get on, I feel you may need another pint.
|
Re: witter - a python twitter client
On my N900, using AutoDisconnect, I get "Error retrieving tweets (-2 'Name or service not known'" if the N900 isn't already online when checking for tweets.
I was thinking, is it possible to make it connect automatically? The N900 is doing this with (most) other apps, so I guess it's down to the app to ask for a connection. |
Re: witter - a python twitter client
Quote:
|
All times are GMT. The time now is 21:47. |
vBulletin® Version 3.8.8