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)

itpastorn 2010-09-11 11:23

Re: witter - a python twitter client
 
Quote:

Originally Posted by gazza_d (Post 813288)
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 can't even enter the oauth number.

I press the "Configire Oauth" button in "Edit Account", I get the web page and authorize Witter. Having written down the number I return to the Witter app, but then there is no way to enter the number!

I've done this, because Witter has been broken for a few weeks. It just hangs as soon as I start using it. So I deleted all .witter* folders in $HOME and thought I'd start over.

Why can't I enter the oauth number?!

BTW, neither Tweego or Mauku works. The latter just says "Rate limit exceeded" no matter what I do. (And I really think Witter is a far superior app anyway.)

Tweego refuses to log me in.

(Bonus rant: I wish all apps would keep their settings in a subdirectory to $HOME/.config/ and not pollute $HOME even if it's a hidden directory.)

itpastorn 2010-09-11 11:31

Re: witter - a python twitter client
 
Just a quick note. It must sound like I'm not appreciating the hard labor done on the apps for my n900. I am! Please do not take my post above as an indication to the contrary. I am just a bit frustrated that a favourite app stopped working. I would not care if I did not like it.

dwould 2010-09-11 22:30

Re: witter - a python twitter client
 
Quote:

Originally Posted by gazza_d (Post 813288)
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

did you configure an account, then save then restart to get that log? or did you start, configure and fail to get tweets in that time?
it shows that witter didn't load any user account. there is no indication of configuring and account or requesting a refresh of the timeline.

dwould 2010-09-11 22:32

Re: witter - a python twitter client
 
Quote:

Originally Posted by itpastorn (Post 813354)
I can't even enter the oauth number.

I press the "Configire Oauth" button in "Edit Account", I get the web page and authorize Witter. Having written down the number I return to the Witter app, but then there is no way to enter the number!

I've done this, because Witter has been broken for a few weeks. It just hangs as soon as I start using it. So I deleted all .witter* folders in $HOME and thought I'd start over.

Why can't I enter the oauth number?!

BTW, neither Tweego or Mauku works. The latter just says "Rate limit exceeded" no matter what I do. (And I really think Witter is a far superior app anyway.)

Tweego refuses to log me in.

(Bonus rant: I wish all apps would keep their settings in a subdirectory to $HOME/.config/ and not pollute $HOME even if it's a hidden directory.)

please take a screen shot of what you see on witter when you say there is no way to enter the oauth number. i'm assuming this is the development version you are using?

Uxi 2010-09-13 22:38

Re: witter - a python twitter client
 
I've seen before where if the entry popup for oauth is there and I use the task switcher to go back to the browser, I can't get it to come back without exiting and reopening Witter...

hotzigetty 2010-09-21 11:50

Re: witter - a python twitter client
 
@Dwould: New error with the last few versions of Witter. (I just updated to the newest version, still same problem)..

It loads all DMs and mentions, but only loads the latest 3 tweets from the timeline! ... Attached the log below:

"tweet with location disabled
no service setting
clear search results on new search disabled
No more users to load
Establishing api for Twitter using basic auth
Establishing api for Twitter using oauth
Connection working ok
Failed to load cached timeline
Failed to load cached timeline
Failed to load cached timeline
/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 Monochrome theme
pixbufs loaded for Monochrome theme
running tasks: 1
getting tweets with Raghukannan
base url = https://twitter.com/
base url of api object = https://twitter.com/
refreshing since25102359306
fetching tweets from https://twitter.com/statuses/friends_timeline.json
running tasks: 2
getting dms
refreshing since25095580271
running tasks: 3
getting mentions
refreshing since25095580271
end refresh setup
setting never rotate
trigger landscape orientation
getting profile info
quitting
lat = 22.000000, long = 82.600000
lat = 22.000000, long = 82.600000
running tasks: 2
reply to RaghuKannan
formatting tweet
getting saved search terms
https://api.twitter.com/1/saved_searches.json
offset hours = +0
None
2010-09-21 16:12:34
running tasks: 1
[]
reply to clintonjeff
offset hours = +0
None
2010-09-21 17:07:34
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 44, in _start
File "/opt/witter/witter.py", line 921, 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 322, in getTweets
File "/opt/witter/witter.py", line 1079, in expandBitlyUrls
longurl = bitlyapi.expand(word)
File "/home/user/src/witter/fremantle/src/opt/witter/bitly.py", line 83, in expand
self._CheckForError(json)
File "/home/user/src/witter/fremantle/src/opt/witter/bitly.py", line 167, in _CheckForError
for key in data['results']:
TypeError: 'NoneType' object is not iterable"

dwould 2010-09-21 18:54

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 822247)
@Dwould: New error with the last few versions of Witter. (I just updated to the newest version, still same problem)..

It loads all DMs and mentions, but only loads the latest 3 tweets from the timeline! ... Attached the log below:
<snip>
"File "/opt/witter/witter.py", line 1079, in expandBitlyUrls
longurl = bitlyapi.expand(word)
File "/home/user/src/witter/fremantle/src/opt/witter/bitly.py", line 83, in expand
self._CheckForError(json)
File "/home/user/src/witter/fremantle/src/opt/witter/bitly.py", line 167, in _CheckForError
for key in data['results']:
TypeError: 'NoneType' object is not iterable"

Is this a persistant error? it happens every time? This looks like bitly gave some bad/empty response and the bitly library didn't handle it, attempting to look for information in a null object. That hasn't changed in several releases, so it's not a new problem. I'm inclined to believe that bitly is at fault for a bad response. I could try to add guard code here, that would just not expand the URL in the event of a similar error, but I would expect the problem to go away on it;s own.

hotzigetty 2010-09-22 07:03

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 822642)
Is this a persistant error? it happens every time? This looks like bitly gave some bad/empty response and the bitly library didn't handle it, attempting to look for information in a null object. That hasn't changed in several releases, so it's not a new problem. I'm inclined to believe that bitly is at fault for a bad response. I could try to add guard code here, that would just not expand the URL in the event of a similar error, but I would expect the problem to go away on it;s own.

Yup.. just cleared bitly api key and tried on the latest version of witter.. still loads only newest 3 tweets.. some cache error (with the older cached tweets)??

dwould 2010-09-25 08:46

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 823090)
Yup.. just cleared bitly api key and tried on the latest version of witter.. still loads only newest 3 tweets.. some cache error (with the older cached tweets)??

could be, what is the new error? the previous was a bitly error, if you deleted those details and restarted witter, you would have had a new error, could still be due to similar root, maybe a weird char in a bit.ly url causing probs? no idea without a new log

hotzigetty 2010-09-27 09:09

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 825886)
could be, what is the new error? the previous was a bitly error, if you deleted those details and restarted witter, you would have had a new error, could still be due to similar root, maybe a weird char in a bit.ly url causing probs? no idea without a new log

PM'd the Log.. Along with some new stuff that came up for the first time! (Had to send as two pm's so it's truncated)..


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

vBulletin® Version 3.8.8