maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   witter - a python twitter client (https://talk.maemo.org/showthread.php?t=35596)

dwould 2010-08-24 08:38

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796492)
gestures disabled

running tasks: 1
Exception in thread Thread-1:
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 41, in _start
File "/opt/witter/witter.py", line 907, 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 263, in getTweets
File "/home/user/src/witter/fremantle/src/opt/witter/twitter.py", line 1471, in GetFriendsTimeline
return [Status.NewFromJsonDict(x) for x in data]
File "/home/user/src/witter/fremantle/src/opt/witter/twitter.py", line 421, in NewFromJsonDict
if 'user' in data:
TypeError: argument of type 'NoneType' is not iterable

hey. Witter fails to load the timeline.

does it do this everytime? I think the implication is just that Twitter responded with an empty response, that code hasn't really changed, so I'm hoping that was just a rare instance of twitter fail.
I guess I can add code to try to guard against it.
But probably not for a couple of weeks now.

hotzigetty 2010-08-24 09:06

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 796625)
does it do this everytime? I think the implication is just that Twitter responded with an empty response, that code hasn't really changed, so I'm hoping that was just a rare instance of twitter fail.
I guess I can add code to try to guard against it.
But probably not for a couple of weeks now.

Yup happens all the time now. Any workaround from my end??
Btw, besto with the wedding! :D Been going to too many of late!!

dwould 2010-08-24 09:55

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796637)
Yup happens all the time now. Any workaround from my end??


hmm, not sure how you could work around it if it's wha tit looks like. there must be more to it, since it seems like twitter is just not responding with valid content. presumably other clients are fine though. do you have oauth configured? I know they're switching off basic auth support sometime soon, though I assume that will just cause access denied type probs.

does a manual refresh of the timeline work?
Quote:

Originally Posted by hotzigetty (Post 796637)
Btw, besto with the wedding! :D Been going to too many of late!!

Thanks, probably should get on with writing lists and making sure I don't forget anything

dwould 2010-08-24 11:03

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796637)
Yup happens all the time now. Any workaround from my end??
Btw, besto with the wedding! :D Been going to too many of late!!

FYI I just saw the exact same error happen to me, but i twas transitory, a minute later refreshed again just fine.
of course this only has to happen once to the background refresh thread to blow it for the whole session. I think it's twitter having problems.

hotzigetty 2010-08-24 12:41

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 796675)
hmm, not sure how you could work around it if it's wha tit looks like. there must be more to it, since it seems like twitter is just not responding with valid content. presumably other clients are fine though. do you have oauth configured? I know they're switching off basic auth support sometime soon, though I assume that will just cause access denied type probs.

does a manual refresh of the timeline work?

Nope. Hasn't been working. I do have oauth configured. Figure Basic Auth is being experimentally turned off an on coz tweego isn't working either. Kept trying over WiFi and GPRS. No luck.

Quote:

Thanks, probably should get on with writing lists and making sure I don't forget anything
Hehe.. :)

ofels 2010-08-24 19:37

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796824)
Nope. Hasn't been working. I do have oauth configured. Figure Basic Auth is being experimentally turned off an on coz tweego isn't working either. Kept trying over WiFi and GPRS. No luck.


Pretty much the same here. No luck till now trying to fix it.

dwould 2010-08-24 19:54

Re: witter - a python twitter client
 
Quote:

Originally Posted by ofels (Post 797140)
Pretty much the same here. No luck till now trying to fix it.

it seems this is a twitter problem, doing a search on twitterAPI I see a bunch of other clients complaining about the same thing.
Twitter say that they have a fix, not sure when they'll roll it out. But hopefully soon.

Uxi 2010-08-25 02:08

Re: witter - a python twitter client
 
Keep losing my Oauth, so I'm showing up as "API" again. Twitter is going to disable non-Oauth pretty soon...

ofels 2010-08-25 09:17

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 797154)
it seems this is a twitter problem, doing a search on twitterAPI I see a bunch of other clients complaining about the same thing.
Twitter say that they have a fix, not sure when they'll roll it out. But hopefully soon.

Interesting thing is that this issue is selective. It occurs with one of my two accounts only. Witter seems to load the DMs and mentions (as it notifies me about this) but does not show anything.
Pretty strange.

hotzigetty 2010-08-25 11:23

Re: witter - a python twitter client
 
Yup. DM & Mentions load, but timeline doesn't. The error message is something like "error retrieving tweet, (8, EOF in violation of something)"... damned if I know what.. Should I do a cleanup and try?

hotzigetty 2010-08-25 11:33

Re: witter - a python twitter client
 
And once I did that, it all started working again!!

ofels 2010-08-25 11:59

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 797759)
And once I did that, it all started working again!!

By "cleanup", you are refering to which activity? Because I already removed the $HOME/.witter* directories to no avail.

hotzigetty 2010-08-25 12:17

Re: witter - a python twitter client
 
Quote:

Originally Posted by ofels (Post 797785)
By "cleanup", you are refering to which activity? Because I already removed the $HOME/.witter* directories to no avail.

I actually removed all the files, loaded the extras version of witter, then loaded timeline. And then moved to the devel version!

dwould 2010-08-25 14:00

Re: witter - a python twitter client
 
ok, so the problem that most people were having relates to a bug in twitter, which is supposedly fixed, but doesn't seem to be to me. This bug causes twitter to start sending 'null' entries in the timeline responses, and lots of twitter clients fell over trying to handle them (people that pay for their twitter clients were particularly annoyed) but it presumably only effects ones using python, or generally using a library that didn't handle it.
Anyhow I have no edited the twitter library I'm using to cope with null amongst the statuses.
0.3.6-4 on it's way to DEVEL with this fix.
Also added SHIFT+UP and SHIFT+DOWN as key commands for scroll to top and bottom of timeline.

All this on the day before I get married. This really is it though, no more updates for a couple of weeks.

dwould 2010-08-25 14:01

Re: witter - a python twitter client
 
Quote:

Originally Posted by Uxi (Post 797448)
Keep losing my Oauth, so I'm showing up as "API" again. Twitter is going to disable non-Oauth pretty soon...

you mean witter keeps forgetting this setting? have you been removing the .witter files? I've never had witter forget my oauth once set. The only caviat to that is if you configure it, and witter crashes rather than gets closed normally, then it would never have had the chance to save the settings.

ofels 2010-08-25 15:07

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 797922)
0.3.6-4 on it's way to DEVEL with this fix.

Shoot, I wanted to stick with testing and not going to use the devel repos again :(

dwould 2010-08-25 15:39

Re: witter - a python twitter client
 
Quote:

Originally Posted by ofels (Post 797972)
Shoot, I wanted to stick with testing and not going to use the devel repos again :(

you could wait for Twitter to fix the underlying problem (the effected code has been this way for at least 6 months in witter, so definitely a twitter prob)

There are still too many issues with the devel version to push to testing, on the assumption twitter will fix this prob rather than render the testing/extras versions entirely broken.

toki 2010-08-27 07:14

Re: witter - a python twitter client
 
hi, i dont know if its something im missing or...
but my witter doesnt work.. iv tried unisntalling and reinstalling.. and it doesnt work
it will load, tell me i have xx new tweets... but it will just keep loading and i cant do anything
and when i try closing it down, it says app not responding properly

so is there something im missing?

ofels 2010-08-27 08:26

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 798003)
you could wait for Twitter to fix the underlying problem (the effected code has been this way for at least 6 months in witter, so definitely a twitter prob)

There are still too many issues with the devel version to push to testing, on the assumption twitter will fix this prob rather than render the testing/extras versions entirely broken.

Just wanted to note that it is working again since yesterday. I did not do anything so it looks as somebody else did.
Thanks for caring.

dwould 2010-08-27 11:48

Re: witter - a python twitter client
 
Quote:

Originally Posted by toki (Post 799799)
hi, i dont know if its something im missing or...
but my witter doesnt work.. iv tried unisntalling and reinstalling.. and it doesnt work
it will load, tell me i have xx new tweets... but it will just keep loading and i cant do anything
and when i try closing it down, it says app not responding properly

so is there something im missing?

the only thing you're missing is the logs that would help me help you...check the sig, i can normally figure out what went wrong, if it was my app or twitter etc. but without the logs there is nothing i can do.

El Amir 2010-08-27 12:10

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 797922)
All this on the day before I get married. This really is it though, no more updates for a couple of weeks.

I think you deserve a round of applause!
Go get married, we can can wait for the updates later on.

There ARE priorities in life you know! ;)

Uxi 2010-08-30 20:13

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 797924)
you mean witter keeps forgetting this setting? have you been removing the .witter files? I've never had witter forget my oauth once set. The only caviat to that is if you configure it, and witter crashes rather than gets closed normally, then it would never have had the chance to save the settings.

Haven't been removing the .witter files... I've done the OAuth twice now. I haven't noticed it crashing. I'll set it up again.

Does the N900 keep crash logs anywhere?

frozensummers 2010-08-30 23:40

Re: witter - a python twitter client
 
1 Attachment(s)
Quote:

Originally Posted by dwould (Post 799959)
the only thing you're missing is the logs that would help me help you...check the sig, i can normally figure out what went wrong, if it was my app or twitter etc. but without the logs there is nothing i can do.

I have the same issue as this guy, so I logged it.

Then it worked fine.

I've attached the log anyway, and yeah its still broken when I open it normally

qwenjis 2010-08-31 09:15

Re: witter - a python twitter client
 
"tweet location" doesn't work for me.

Even if phone shows gps on and everything looks like witter gained my coordinates, I can't see later on twitter site my location.

johnny_knoe 2010-09-01 19:40

Re: witter - a python twitter client
 
Can someone tell me where witter stores the user settings? I want to reset witter, but uninstall and reinstall doesn't work. Seems some configuration files are left on the device.

Thank you!

freemanamg 2010-09-01 22:26

Re: witter - a python twitter client
 
I'm having issues while starting up. Witter just became unresponsive. I tried to delete .witter files, and also reinstalling, and nothing.

Looking at the startup log, it seems to be related to the "oAuthapocalypse", because Witter is trying to log using basic auth:
Code:

gestures enabled
tweet with location disabled
no service setting
No more users to load
Establishing api for Twitter using basic auth
Connection working ok
failed to read timeline file
failed to read timeline file
failed to read timeline file
UI elements loaded from file
signals connected to buttons
Loading Theme Icons
pixbufs loaded for default theme
defining ui buttons
define portrait keyboard objects
define general window
adding button to panned area
time to show the window
pixbufs loaded for touch theme
pixbufs loaded for touch theme
running tasks: 1
getting tweets with freemanamg
base url = https://twitter.com/
base url of api object = https://twitter.com/
refreshing since22575435198
fetching tweets from https://twitter.com/statuses/friends_timeline.json
running tasks: 2
getting dms
refreshing since22571662323
running tasks: 3
getting mentions
refreshing since22571662323
end refresh setup
setting automatic
enabling accelerometer
getting profile info
quitting
lat = 25.200000, long = 0.000000
error
Error retrieving tweets Server returned 401 : Not authorised: check uid/pwd
running tasks: 2
error
Error retrieving dms Server returned 401 : Not authorised: check uid/pwd
running tasks: 1

But the thing is that, since Witter is frozen once it starts up, I cannot access to settings and fix this issue. Do you have any sugestion?

johnny_knoe 2010-09-02 06:46

Re: witter - a python twitter client
 
That is exactly my problem. Can't access the settings dialogue because witter is not responding. Therefore my question regarding the configuration files...

HellFlyer 2010-09-02 07:03

Re: witter - a python twitter client
 
Tweego is much better :)

johnny_knoe 2010-09-02 07:13

Re: witter - a python twitter client
 
...but doesn't work right now (authentication problems). It seems tweetgo.net is the best solution for twitter on n900 at the moment.

Rob1n 2010-09-02 08:19

Re: witter - a python twitter client
 
Quote:

Originally Posted by johnny_knoe (Post 804523)
Can someone tell me where witter stores the user settings? I want to reset witter, but uninstall and reinstall doesn't work. Seems some configuration files are left on the device.

There's a load of .witter files in /home/user - "rm -rf .witter*" should clear them all out.

johnny_knoe 2010-09-02 09:00

Re: witter - a python twitter client
 
Thank you, i'll try...

johnny_knoe 2010-09-02 14:15

Re: witter - a python twitter client
 
Had to delete .witteroauth and .witterUser to get it working again...

Thanks!

freemanamg 2010-09-02 22:45

Re: witter - a python twitter client
 
Where did you find them?

SpandexBob 2010-09-02 23:00

Re: witter - a python twitter client
 
I just posted this elsewhere in the forum. Seeing as other seem to be having the same problem as me I thought I'd better post this here as well:

I bumped into a problem with witter. I'd forgotten to configure OAuth and witter just hung on startup when trying to retrieve my timeline. I've posted a bug report about this.

If anyone else bumps into this problem I solved the issue with witter hanging on start up by opening xterm and typing:
Code:

mv .witter .witter.back
You then have to setup your twitter account details again making sure that you configure OAuth in the account setup screen.

freemanamg 2010-09-02 23:00

Re: witter - a python twitter client
 
Never mind, I found them. They are in Home/User in case you wondered. I delete them and everything worked just fine. Thanks!

wasserkuhl 2010-09-04 10:05

Re: witter - a python twitter client
 
I Just want to say thanks guys, my witter is back in business.......great community help here, CheeRS.

Xanxavier 2010-09-06 18:51

Re: witter - a python twitter client
 
Thanks for the help, this worked for me too

Spoke too soon, hangs on startup and doesnt get any further...

haj 2010-09-10 11:05

Re: witter - a python twitter client
 
I can't seem to make twitpic work as of lately (I havn't been using witter for some time because I thought it was broken in devel-rep, turned out to be oauth)..

Anyway, does twitpic work for others?

dwould 2010-09-10 11:29

Re: witter - a python twitter client
 
Quote:

Originally Posted by haj (Post 812515)
I can't seem to make twitpic work as of lately (I havn't been using witter for some time because I thought it was broken in devel-rep, turned out to be oauth)..

Anyway, does twitpic work for others?

I'd guess that twitpic is broken for similar reasons, twitpic is a separate service, and witter users it by providing username/password, I'm assuming now that basic auth isn't supported I'll need to figure out out to use oauth via twitpic.

gazza_d 2010-09-11 08:39

Re: witter - a python twitter client
 
i cannot get witter to work at all. I have setup my account, and managed to get an oauth number fro twitter and enter it into witter, but the app just does not pull any information in at all.

i have been through this thread, and have deleted the folders in /home/user and started again, but still at square1.

Code:

~ $ run-standalone.sh python2.5 /opt/witter/witter.py
no text colour setting
no text colour setting
no location setting
no service setting
No refresh_interval section
No refresh_interval section
end of file, probably no token
No users section, failed loading user accounts
Failed to establish api for Twitter
Failed to establish api for Twitter
failed to read timeline file
failed to read timeline file
failed to read timeline file
/opt/witter/ui/gtkWitter.py:82: GtkWarning: gtk_container_child_set_property: assertion `child->parent == GTK_WIDGET (container)' failed
  self.builder.add_from_file("/usr/share/witter/witter.ui")
UI elements loaded from file
signals connected to buttons
Loading Theme Icons
pixbufs loaded for default theme
defining ui buttons
define portrait keyboard objects
define general window
adding button to panned area
time to show the window
pixbufs loaded for default theme
pixbufs loaded for default theme
running tasks: 1
Failed to establish api for Twitter
running tasks: 0
running tasks: 1
Failed to establish api for Twitter
running tasks: 0
running tasks: 1
Failed to establish api for Twitter
running tasks: 0
end refresh setup
setting never rotate
trigger landscape orientation
getting profile info
Failed to load profile info
quitting
lat = 54.961398, long = -1.459508
lat = 54.961398, long = -1.459508



All times are GMT. The time now is 16:10.

vBulletin® Version 3.8.8