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-16 07:23

Re: witter - a python twitter client
 
Quote:

Originally Posted by bertolt (Post 787731)
why can't i do search anymore with the new version?

i don't know, why can't you do search anymore with the new version?

dwould 2010-08-16 07:25

Re: witter - a python twitter client
 
Quote:

Originally Posted by CYPHERC (Post 787323)
Can u pls add the frinds button again? please :D and check that every time we put a @ we get the list of friends w the first letter after the @ please

if you use gestures to swipe in new version it shows up, but havn't settled on final arrangement. missed it when i first restructured.
will look into what autocomplete options i have with a gtk.textview

bertolt 2010-08-16 07:26

Re: witter - a python twitter client
 
i enter a text into the search field, click on the search button and nothing happens..or am i missing something?

...the magnifying lens is the search button, right?

dwould 2010-08-16 07:29

Re: witter - a python twitter client
 
Quote:

Originally Posted by CYPHERC (Post 786673)
i will like to get help at this, i cat see the trending topics, and i cant search... the precious virtual qwerty keyboard in portrait is impossible to see do u remove it?

**************

I just saw the new version, WOW mayor improvement the main screen is so cool, that screen will be cool for everyuser when u click on them, just a suggestion... still not able to use the portrait keyboard... u did remove it right?

i didn't remove the portrait keyboard as such, but it was tied to the old layout. i've started work on putting it in the new layout, and integrating with the textview. at the moment i can type, but not delete yet. once i have that fixed the next version will have it back

dwould 2010-08-16 07:30

Re: witter - a python twitter client
 
Quote:

Originally Posted by bertolt (Post 787739)
i enter a text into the search field, click on the search button and nothing happens..or am i missing something?

...the magnifying lens is the search button, right?

hit the refresh button. not intuitive i guess, but it's how all the views are updated. search has always worked this way in witter.

kill_bill 2010-08-16 07:33

Re: witter - a python twitter client
 
New version crashed on load for me :-(

dwould 2010-08-16 07:37

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 786562)
This build works brilliantly for the most part. Like I mentioned before, it's close to a complete client.

Request: In the next build, can you put an icon for Geotaggin neart the text entry box? That way, you can select whether you want to use cell tower info or Proper GPS from the preferences itself..

Thanks Again btw..

at the moment i have location toggle on the 'home' screen, to but it next to the tweet field would require a small icon that makes it obvious what it's for.

hotzigetty 2010-08-16 13:41

Re: witter - a python twitter client
 
Removed .witter files from /home/user (i may be an idiot) to reset witter and guess what, it's now frozen! :( Did that coz I has set another account as active, and then i couldnt remove it! Anyway, here's the log. Help pls!!

No config file, prompt for uid / pwd
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:80: 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
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1232, in <module>
app = Witter()
File "/opt/witter/witter.py", line 205, in __init__
self.activeAccount.setProfileInfo()
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 143, in setProfileInfo
AttributeError: 'NoneType' object has no attribute 'GetUser'
quitting

hotzigetty 2010-08-16 14:31

Re: witter - a python twitter client
 
If I read the log right, it means it cant find the .witter files in /home/user ? I thought removing it and reinstalling it should repopulate the files (bring it back to first login state)... Doesnt seem to work that way... hmmm.. What to do.. (ps: no more rm - r for me.. Don't wanna bug you, especially if it's wedding time! :D)

ikirk 2010-08-16 15:20

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 788098)
Removed .witter files from /home/user (i may be an idiot) to reset witter and guess what, it's now frozen! :( Did that coz I has set another account as active, and then i couldnt remove it! Anyway, here's the log. Help pls!!

No config file, prompt for uid / pwd
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:80: 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
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1232, in <module>
app = Witter()
File "/opt/witter/witter.py", line 205, in __init__
self.activeAccount.setProfileInfo()
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 143, in setProfileInfo
AttributeError: 'NoneType' object has no attribute 'GetUser'
quitting

I get the exact same error - witter opens now (it didnt on previous version) but the interface is completely frozen and no actual data/posts are displayed, just the headings like "TweeterCount:" etc.

Any ideas? Thanks.

PS.: Is it OK to post these issues/errors here or should we log them elsewhere?

dwould 2010-08-16 15:59

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 788098)
Removed .witter files from /home/user (i may be an idiot) to reset witter and guess what, it's now frozen! :( Did that coz I has set another account as active, and then i couldnt remove it! Anyway, here's the log. Help pls!!

No config file, prompt for uid / pwd
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:80: 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
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1232, in <module>
app = Witter()
File "/opt/witter/witter.py", line 205, in __init__
self.activeAccount.setProfileInfo()
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 143, in setProfileInfo
AttributeError: 'NoneType' object has no attribute 'GetUser'
quitting

oops, that means some of the new code is expecting certain values to always exist, but without a user account setup it clearly doesn't Which was silly of me. I shall try to fix it.
in the mean time you'd have to go back to the extras-testing version to configure the account.

hotzigetty 2010-08-16 16:53

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 788225)
oops, that means some of the new code is expecting certain values to always exist, but without a user account setup it clearly doesn't Which was silly of me. I shall try to fix it.
in the mean time you'd have to go back to the extras-testing version to configure the account.

ah!! thanks!!

hotzigetty 2010-08-16 18:42

Re: witter - a python twitter client
 
in the process, i realized how much faster the app manager is with extra devel disabled!!

si_wardo 2010-08-16 21:56

Re: witter - a python twitter client
 
still no joy for me really miss this app :(

ikirk 2010-08-17 09:00

Re: witter - a python twitter client
 
Quote:

Originally Posted by si_wardo (Post 788635)
still no joy for me really miss this app :(

As Daniel said, if you want to run the most stable version of witter then uninstall it, disable extras-devel, enable extras-testing, download/install it again - the version there isn't the most recent one but works a treat.

si_wardo 2010-08-17 09:05

Re: witter - a python twitter client
 
doesnt worka treat for me im afraid :( any work around?

bertolt 2010-08-17 09:16

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 787746)
hit the refresh button. not intuitive i guess, but it's how all the views are updated. search has always worked this way in witter.

no. in all twitter apps including the previous version of witter, the search button will initially display the searched items. refreshing it will redisplay the items with new ones, if any. otherwise, what is the search button for. but anyway, the refresh button now displays the intial search items too.

dwould 2010-08-17 13:45

Re: witter - a python twitter client
 
Quote:

Originally Posted by bertolt (Post 789104)
no. in all twitter apps including the previous version of witter, the search button will initially display the searched items. refreshing it will redisplay the items with new ones, if any. otherwise, what is the search button for. but anyway, the refresh button now displays the intial search items too.

The search button switches you to the search view. If you ahve previously searched, or configured a saved search and an auto-refresh then it will show results.
The refresh button is the only way to trigger a manual request to fetch new search results. and has always been that way.
But then, what do I know?...

dwould 2010-08-17 13:46

Re: witter - a python twitter client
 
For those that had issues yesterday, if you didn't go back to the testing version and were waiting for a fix. The latest version in devel *should* avoid those issues.
It also brings a new 'profile' view,m if you select a tweet, one of the buttons will load the profile of the person that tweeted, eg picture, tweet count, follower/friend counts, bio etc...

hotzigetty 2010-08-17 19:25

Re: witter - a python twitter client
 
One issue with yesterdays version though: I've set the Timeline to be updated every minute... Somehow it gets a lotta tweets together and all of them pop up at one time!

si_wardo 2010-08-17 19:37

Re: witter - a python twitter client
 
i think im gonna have to give up on this till whenever all problems are sorted its doing my head in doing everything im being told and nothing is happening. back to the n97 i go and in the drawer goes the n900 :(

Uxi 2010-08-17 20:35

Re: witter - a python twitter client
 
nice app! I still find myself missing Gravity on my N97, though.

some suggested improvements:

1) auto-fullscreen/hide menu bar (I'd say hiding the toolbar itslf would be advisable). with a corner key to bring it back like the browser.

2) tap entry to bring up menu to reply, retweet, etc

3) use swiping to change category (timeline to mention, etc)

4) use kinetic "spring" when at top of page to reload/refresh (like Twitter for iPhone)

5) improve/optimize kinetics

hawaii 2010-08-17 21:25

Re: witter - a python twitter client
 
Daniel, have any changes been made to provide a proper client name instead of API?

Uxi 2010-08-17 23:12

Re: witter - a python twitter client
 
ah yeah, forgot about that. Fix that, too. want to see 'posted by Witter N900.' :)

Just discovered I can hide the bottom bar, too. Auto-hide the menu, toolbar and update bar by default makes navigation much smoother and takes advantage of the screen res. I'm also down 2-3 clicks on the vol in font size and enjoying it much better.

mece 2010-08-18 06:07

Re: witter - a python twitter client
 
you need to use the other authorization method, I forget what it's called (uauth or something?) to get the app name. It works fine.

hawaii 2010-08-18 13:03

Re: witter - a python twitter client
 
OAuth. Thank you for posting this.

Daniel - can I request a feature for having the ability to modify the reported client through the configuration file?

dwould 2010-08-18 13:46

Re: witter - a python twitter client
 
Quote:

Originally Posted by si_wardo (Post 789707)
i think im gonna have to give up on this till whenever all problems are sorted its doing my head in doing everything im being told and nothing is happening. back to the n97 i go and in the drawer goes the n900 :(

You could try sticking with Extras? if you have no tolerance for problems, then don't pick up software until it is in the stable repository. The whole point of providing a 3 tier repository system is that you can chose the amount of risk you're prepared to live with.

mece 2010-08-18 13:48

Re: witter - a python twitter client
 
Quote:

Originally Posted by si_wardo (Post 789707)
i think im gonna have to give up on this till whenever all problems are sorted its doing my head in doing everything im being told and nothing is happening. back to the n97 i go and in the drawer goes the n900 :(

To get to downgrade to the stable version, fire up xterm and issue these commands: (you need rootsh installed)
Code:

root
apt-get install witter=0.3.4-8

After that you have the version that is in extras, and it works very well.

dwould 2010-08-18 13:50

Re: witter - a python twitter client
 
Quote:

Originally Posted by Uxi (Post 789750)
nice app! I still find myself missing Gravity on my N97, though.

some suggested improvements:

1) auto-fullscreen/hide menu bar (I'd say hiding the toolbar itslf would be advisable). with a corner key to bring it back like the browser.

interesting idea, I guess I could play around and see what I can do with this
Quote:

Originally Posted by Uxi (Post 789750)
2) tap entry to bring up menu to reply, retweet, etc

double tap an entry does exactly this...? single tap versus scroll start can be difficult for maemo to differentiate so not ideal to map anything to single tap
Quote:

Originally Posted by Uxi (Post 789750)
3) use swiping to change category (timeline to mention, etc)

erm... enable gestures.. it does exactly this
Quote:

Originally Posted by Uxi (Post 789750)
4) use kinetic "spring" when at top of page to reload/refresh (like Twitter for iPhone)

interesting idea, but I don't get any signal for end of scrolling (at least I've not found one), if you can tell me which signal to hook onto, I'll gladly do so
Quote:

Originally Posted by Uxi (Post 789750)
5) improve/optimize kinetics

The kinetics is provided by hildon.Panable area. whilst in theory I can try setting some different options, I have zero input into it's optimization. Though it would be great if pymaemo want to optimize all the built in UI stuff for better performance.

dwould 2010-08-18 13:54

Re: witter - a python twitter client
 
Quote:

Originally Posted by hawaii (Post 790442)
OAuth. Thank you for posting this.

Daniel - can I request a feature for having the ability to modify the reported client through the configuration file?

Twitter doesn't let you do this. The reason witter only shows up when using Oauth is that this is the only way twitter allows an app to show as it's own name, eg the oauth is tied to my app via a key specific to witter. They used to allow any client to simply specify source=whatever, but switched that off ages ago(long before witter was created)

hawaii 2010-08-18 19:33

Re: witter - a python twitter client
 
I had a feeling they would do that.

Thanks for replying. Is there any way to remove the separator lines for differentiating tweets, or even perhaps changing the style? From "||||||" to something horizontal perhaps?

leojab 2010-08-18 20:35

Re: witter - a python twitter client
 
Is it possible to setup multiple tweet searches and also have them cached. I can use this as I have many keyword search which i can set and load it up when i am in wireless range.

dwould 2010-08-18 20:55

Re: witter - a python twitter client
 
Quote:

Originally Posted by hawaii (Post 790917)
I had a feeling they would do that.

Thanks for replying. Is there any way to remove the separator lines for differentiating tweets, or even perhaps changing the style? From "||||||" to something horizontal perhaps?

remove the lines? i spent a long time trying to make it give me some kind of separator, through lots of alternate api calls that should have done it, and the current division is the only thing i got working at all. in theory it's all controlled via 'styles' but i have no idea how to make it do anything i want it to do.

if anyone knows how, feel free to provide code examples

dwould 2010-08-18 21:00

Re: witter - a python twitter client
 
Quote:

Originally Posted by leojab (Post 790976)
Is it possible to setup multiple tweet searches and also have them cached. I can use this as I have many keyword search which i can set and load it up when i am in wireless range.

i'm not certaing what you mean, but you can perform multiple searches by separating search terms with commas.
eg

#N900, #witter

searches both those terms independantly but shows them in a combined view

currently no support for entirely separate searches, it's an area i'm still thinking about.

hotzigetty 2010-08-20 06:22

Re: witter - a python twitter client
 
Does witter store thumbnail images ffrom users in the timeline? Asking because it doesn't refresh when users change thumbnails..

dwould 2010-08-20 10:38

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 792687)
Does witter store thumbnail images ffrom users in the timeline? Asking because it doesn't refresh when users change thumbnails..

Yes witter caches avatars, too save on unnecessary data download (this is a mobile device afterall) In theory if it sees the same avatar 10 times in a given use of witter then it should go re-load the avatar from the URL. One way to force this is to load that specific users timeline in the user history view.

hotzigetty 2010-08-20 13:13

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 792888)
Yes witter caches avatars, too save on unnecessary data download (this is a mobile device afterall) In theory if it sees the same avatar 10 times in a given use of witter then it should go re-load the avatar from the URL. One way to force this is to load that specific users timeline in the user history view.

Thanks for the tip!:)

skr0 2010-08-20 17:33

Re: witter - a python twitter client
 
I am using the Extras Testing (0.3.4 I think). I had a look at the version in Extras Devel but had to down grade as the development version froze on me.

It looked great with the changes to the icons; summery of followers and following; GPS location; etc.

Really looking forward to this reaching Extras Testing any idea of time frame ?

Uxi 2010-08-20 23:03

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 790522)
interesting idea, I guess I could play around and see what I can do with this


excellent. Thanks!

Quote:

Originally Posted by dwould (Post 790522)
double tap an entry does exactly this...? single tap versus scroll start can be difficult for maemo to differentiate so not ideal to map anything to single tap

I was thinking it would be contextual and not go to a new screen, but dynamically expand out.

Quote:

Originally Posted by dwould (Post 790522)
erm... enable gestures.. it does exactly this

I had them enabled. was kinda jerky (probably a Hildon issue) but also hard to tell what tab you're in. I'd suggest shading the background icons more maybe and maybe looking at longer or more stark transitions

hotzigetty 2010-08-24 04:57

Re: witter - a python twitter client
 
gestures disabled
tweet with location disabled
no service setting
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 since21893788404
fetching tweets from https://twitter.com/statuses/friends_timeline.json
running tasks: 2
getting dms
refreshing since21973876763
running tasks: 3
getting mentions
refreshing since21973876763
end refresh setup
setting never rotate
trigger landscape orientation
getting profile info
quitting
reply to RaghuKannan
None
2010-08-24 10:14:31
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.


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

vBulletin® Version 3.8.8