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)

mscarrot 2010-07-13 19:54

Re: witter - a python twitter client
 
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ run-standalone.sh python2.5 /opt/witter/witter.py
gestures enabled
no service setting
No more users to load
Establishing api for Twitter using basic auth
Establishing api for Twitter using oauth
Connection working ok
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1166, in <module>
app = Witter()
File "/opt/witter/witter.py", line 169, in __init__
self.activeAccount.tweetstore = self.reload_timeline_data('/home/user/.wittertl',self.activeAccount.getTimeline())
File "/opt/witter/witter.py", line 641, in reload_timeline_data
source = config.get("tweets", "source" + str(counter));
File "/usr/lib/python2.5/ConfigParser.py", line 525, in get
return self._interpolate(section, option, value, d)
File "/usr/lib/python2.5/ConfigParser.py", line 568, in _interpolate
value = value % vars
ValueError: unsupported format character '$' (0x24) at index 1204
~ $
Here you go and thanks for your help !!!!

dwould 2010-07-13 20:53

Re: witter - a python twitter client
 
Quote:

Originally Posted by mscarrot (Post 750717)
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ run-standalone.sh python2.5 /opt/witter/witter.py
gestures enabled
no service setting
No more users to load
Establishing api for Twitter using basic auth
Establishing api for Twitter using oauth
Connection working ok
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1166, in <module>
app = Witter()
File "/opt/witter/witter.py", line 169, in __init__
self.activeAccount.tweetstore = self.reload_timeline_data('/home/user/.wittertl',self.activeAccount.getTimeline())
File "/opt/witter/witter.py", line 641, in reload_timeline_data
source = config.get("tweets", "source" + str(counter));
File "/usr/lib/python2.5/ConfigParser.py", line 525, in get
return self._interpolate(section, option, value, d)
File "/usr/lib/python2.5/ConfigParser.py", line 568, in _interpolate
value = value % vars
ValueError: unsupported format character '$' (0x24) at index 1204
~ $
Here you go and thanks for your help !!!!

Ok, so this implies that someone you follow had an odd character in the name of their twitter client. The source of a tweet that was stored in the file /home/user/.wittertl is failing to be parsed when witter tries to start up again.
It would be helpful to me if you could go look in that file, and see if anything stands out as unusual on a line that starts source=
you can do this by opening xterm and entering:

more /home/user/.wittertl
then hitting the space bar to page through the file.
I would assume that you'll find something that has a $ in the source name (but assumptions can be dangerous)

Once you've done that, just delete the file:
rm /home/user/.wittertl
then run witter again and all should be well.

mscarrot 2010-07-13 20:56

Re: witter - a python twitter client
 
Ok thanks will try and give it a look :) will report back later if it helped :)

EDIT:
Found a few ��テ���������������ϼ� signs......

deleted the file and YAY !!! my favorite app is back.

Thanks Daniel for your quick help !!!!:D

dwould 2010-07-13 21:33

Re: witter - a python twitter client
 
Quote:

Originally Posted by mscarrot (Post 750787)
Ok thanks will try and give it a look :) will report back later if it helped :)

EDIT:
Found a few ��テ���������������ϼ� signs......

deleted the file and YAY !!! my favorite app is back.

Thanks Daniel for your quick help !!!!:D

so it's worth mentioning that in all likelihood someone that you follow uses a twitter app which has characters in it's name that blow up the config parser. Any time you close witter whilst such a tweet is in the last 20, this will happen again.

I'll think about how to solve this problem properly. but just warning you it may happen again.

mscarrot 2010-07-14 21:20

Re: witter - a python twitter client
 
No Problem Daniel,
if it happens again I will just delete the file
like you told me in the earlier post
and then the problem should be solved again:),
glad to know now how to do it:)...

laughingguy 2010-07-15 16:37

Re: witter - a python twitter client
 
HELPPPP
My witter was going very well before ths afternoon suddenly when I wanted to lauch it as usual, it loaded, but then go back to desktop wthout appearin the witter app. I've tried so many times, swith on and off the cell, unsintstall and reinstall, but still the same case

tried to launch in frm xterm, but this rport appear:

~ $ run-standalone.sh python2.5 /opt/witter/witter.py
gestures enabled
no service setting
No more users to load
Establishing api for Twitter using basic auth
Establishing api for Twitter using oauth
Connection working ok
corrupted avatar file found, deleting it
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1168, in <module>
app = Witter()
File "/opt/witter/witter.py", line 169, in __init__
self.activeAccount.tweetstore = self.reload_timeline_data('/home/user/.wittertl',self.activeAccount.getTimeline())
File "/opt/witter/witter.py", line 654, in reload_timeline_data
os.remove("/home/user/.witterPics/" + self.accountdata.servicename + "/" + filename)
AttributeError: Witter instance has no attribute 'accountdata'



any help? pleaseeeeee . I really need witter

dwould 2010-07-15 18:09

Re: witter - a python twitter client
 
Quote:

Originally Posted by laughingguy (Post 752989)
HELPPPP
My witter was going very well before ths afternoon suddenly when I wanted to lauch it as usual, it loaded, but then go back to desktop wthout appearin the witter app. I've tried so many times, swith on and off the cell, unsintstall and reinstall, but still the same case

tried to launch in frm xterm, but this rport appear:

~ $ run-standalone.sh python2.5 /opt/witter/witter.py
gestures enabled
no service setting
No more users to load
Establishing api for Twitter using basic auth
Establishing api for Twitter using oauth
Connection working ok
corrupted avatar file found, deleting it
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1168, in <module>
app = Witter()
File "/opt/witter/witter.py", line 169, in __init__
self.activeAccount.tweetstore = self.reload_timeline_data('/home/user/.wittertl',self.activeAccount.getTimeline())
File "/opt/witter/witter.py", line 654, in reload_timeline_data
os.remove("/home/user/.witterPics/" + self.accountdata.servicename + "/" + filename)
AttributeError: Witter instance has no attribute 'accountdata'


any help? pleaseeeeee . I really need witter

you have a corrupted avatar download, and the code that is supposed to cope with that is not working yet. go to xterm:
cd /home/user/.witterPics/twitter/
rm *
this will remove all the cached avatars forcing a reload next time. This should fix the problem

raothmist 2010-07-16 06:07

Re: witter - a python twitter client
 
Hi!!! great program is the best i found but i have some problems, it loads but crash and dont start

/home/user # run-standalone.sh python2.5 /opt/witter/witter.py
gestures enabled
no service setting
No more users to load
Establishing api for Twitter using basic auth
Establishing api for Twitter using oauth
Connection working ok
corrupted avatar file found, deleting it
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1166, in <module>
app = Witter()
File "/opt/witter/witter.py", line 169, in __init__
self.activeAccount.tweetstore = self.reload_timeline_data('/home/user/.wittertl',self.activeAccount.getTimeline())
File "/opt/witter/witter.py", line 652, in reload_timeline_data
os.remove("/home/user/.witterPics/" + self.accountdata.servicename + "/" + filename)
AttributeError: Witter instance has no attribute 'accountdata'

raothmist 2010-07-16 06:14

Re: witter - a python twitter client
 
Quote:

Originally Posted by raothmist (Post 753549)
Hi!!! great program is the best i found but i have some problems, it loads but crash and dont start

/home/user # run-standalone.sh python2.5 /opt/witter/witter.py
gestures enabled
no service setting
No more users to load
Establishing api for Twitter using basic auth
Establishing api for Twitter using oauth
Connection working ok
corrupted avatar file found, deleting it
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1166, in <module>
app = Witter()
File "/opt/witter/witter.py", line 169, in __init__
self.activeAccount.tweetstore = self.reload_timeline_data('/home/user/.wittertl',self.activeAccount.getTimeline())
File "/opt/witter/witter.py", line 652, in reload_timeline_data
os.remove("/home/user/.witterPics/" + self.accountdata.servicename + "/" + filename)
AttributeError: Witter instance has no attribute 'accountdata'

I solve it with your last post, dude you are awsome!!! keep working!!!

dwould 2010-07-16 06:54

Re: witter - a python twitter client
 
witter 0.3.5-1 went to extras-devel last night.
i beleve it fixes the failsafe code which failed to cope with corrupted avatars for the above posts.
in addition it allows the user to fix the rotation mode to portrait or landscape, or automatic
it also allows scrolling of tweets in landscape by using the cursor keys.

it should also fix 'missing tweet' problems. turns out the twitter api doesn't work as expected when you pass it the since-id. i presumed I'd get all tweets since that id... (crazy assumption) turns out they still imit that to 20 by defua*t. witter now asks for the max 200 since the last id.

raothmist 2010-07-16 06:58

Re: witter - a python twitter client
 
Quote:

Originally Posted by raothmist (Post 753555)
I solve it with your last post, dude you are awsome!!! keep working!!!

The problem continues, i need to do this each time i open witter any solution??

raothmist 2010-07-16 07:00

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 753580)
witter 0.3.5-1 went to extras-devel last night.
i beleve it fixes the failsafe code which failed to cope with corrupted avatars for the above posts.
in addition it allows the user to fix the rotation mode to portrait or landscape, or automatic
it also allows scrolling of tweets in landscape by using the cursor keys.

it should also fix 'missing tweet' problems. turns out the twitter api doesn't work as expected when you pass it the since-id. i presumed I'd get all tweets since that id... (crazy assumption) turns out they still imit that to 20 by defua*t. witter now asks for the max 200 since the last id.

ok let me try to update in devel :D

dwould 2010-07-16 07:01

Re: witter - a python twitter client
 
Quote:

Originally Posted by raothmist (Post 753582)
The problem continues, i need to do this each time i open witter any solution??

the implication is that you follow someone with an unusual avatar pic, perhaps not the same format as most? do you have any friends whose avatars don't show up in witter?

the new version 0.3.5-1 should at least hide this problem from you, but if it's not coping with a pic it will just delete it and try again.

raothmist 2010-07-16 07:36

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 753585)
the implication is that you follow someone with an unusual avatar pic, perhaps not the same format as most? do you have any friends whose avatars don't show up in witter?

the new version 0.3.5-1 should at least hide this problem from you, but if it's not coping with a pic it will just delete it and try again.

I update the witter, at the moment it works but some images dont show up. But just the old twitts, so i keep you update for other problems.

The twitpic is working?, i try to use it before but without results

dwould 2010-07-16 09:47

Re: witter - a python twitter client
 
Quote:

Originally Posted by raothmist (Post 753599)
I update the witter, at the moment it works but some images dont show up. But just the old twitts, so i keep you update for other problems.

The twitpic is working?, i try to use it before but without results

twitpic 'works' but I admit it is not at all intuitive and I couldn't get the nice file dialog working. The odd thing is that you have to write a comment to go with the twitpic, and you have to write it before you go select an image. So if the text box is empty when you hit twitpic it doesn't do anything. and I keep forgetting to make it flash up a message as to why. but I know that whole area needs re-writing really.

could you give me the user names of people that you aren't getting avatars for? I could check it out and see if there is anything odd that maybe witter isn't coping with.

tnhh 2010-07-16 09:47

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 753580)
it also allows scrolling of tweets in landscape by using the cursor keys.

This is a fantastic feature - thanks! Would it be possible to have shift-up and shift-down go to the first and last tweet (as MicroB does it)?

raothmist 2010-07-16 16:29

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 753695)
twitpic 'works' but I admit it is not at all intuitive and I couldn't get the nice file dialog working. The odd thing is that you have to write a comment to go with the twitpic, and you have to write it before you go select an image. So if the text box is empty when you hit twitpic it doesn't do anything. and I keep forgetting to make it flash up a message as to why. but I know that whole area needs re-writing really.

could you give me the user names of people that you aren't getting avatars for? I could check it out and see if there is anything odd that maybe witter isn't coping with.

The ones are UnderoathBand, Eztv, Onemanga and Melaniobar, the RT fuction cant be modify it tweet inmeditly. And thaks for the update of Twitcpic :D

raothmist 2010-07-16 16:33

Re: witter - a python twitter client
 
Quote:

Originally Posted by raothmist (Post 754021)
The ones are UnderoathBand, Eztv, Onemanga and Melaniobar, the RT fuction cant be modify it tweet inmeditly. And thaks for the update of Twitcpic :D

RT problem fixed my bad xD

cosmo200 2010-07-18 01:58

Re: witter - a python twitter client
 
Hey Daniel,

I have the same problem. It loads but crash.

gestures enable
no service setting
No more users to load
Estabilishing api for Twitter using basic auth
Connection working ok
failed to read timeline file
failed to read timeline file
failed to read timeline file
/opt/witter/ui/gtkWitter.py:77: 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
definings ui buttons
/opt/witter/ui/gtkWitter.py:454: GtkWarning: gtk_widget_shape_combine_mask: assertion `!GTK_WIDGET_NO_WINDOW (widget) ' failed
hbox2.shape_combine_mask (self.Mask,0,0)
define portrait keyboard objects
define general window
setting up treeview
adding button to panned area
time to show the window
probably nothing selected
couldn't scroll to item
Traceback (most recent call last) :
File "/opt/witter/witter.py", line 1184, in <module>
app = Witter()
File "/opt/witter/witter.py", line 181, in __init__
self.ui.load_theme_icons ()
File "/home/user/src/witter/fremantle/src/opt/witter/ui/gtkWitter.py", line 364, in load_theme_icons
glib.GError? Failed to open file ou directory

I hope you can help me! :)

dwould 2010-07-18 10:18

Re: witter - a python twitter client
 
Quote:

Originally Posted by cosmo200 (Post 755385)
Hey Daniel,

I have the same problem. It loads but crash.

Traceback (most recent call last) :
File "/opt/witter/witter.py", line 1184, in <module>
app = Witter()
File "/opt/witter/witter.py", line 181, in __init__
self.ui.load_theme_icons ()
File "/home/user/src/witter/fremantle/src/opt/witter/ui/gtkWitter.py", line 364, in load_theme_icons
glib.GError? Failed to open file ou directory

I hope you can help me! :)

this is a weird one. have you altered any files or folders that witter uses?
it seems to be failing to load the icons for your selected theme.
in xterm do:
more /home/user/.witter
this will show you the settings witter has saved.
one line will be
theme =
whatever is after the = is the selected theme. this then directly relates to a folder. you should be able to :

cd /opt/witter/icons

then list the folders with:

ls

is the theme from the config file present here? if you cd into that folder does it have icon files in it?

cosmo200 2010-07-18 23:01

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 755633)
this is a weird one. have you altered any files or folders that witter uses?
it seems to be failing to load the icons for your selected theme.
in xterm do:
more /home/user/.witter
this will show you the settings witter has saved.
one line will be
theme =
whatever is after the = is the selected theme. this then directly relates to a folder. you should be able to :

cd /opt/witter/icons

then list the folders with:

ls

is the theme from the config file present here? if you cd into that folder does it have icon files in it?

Hey Daniel,

After it crashed for the first time, I removed the timeline cache, since witter was having problems loading it. But I guess that I might've removed the whole folder. (I did the same thing with the mentions and DMs).
I'm using the Touch theme and it appears on the folder, but I couldn't find any icons in the Touch folder. I don't know if I'm using the wrong command line or if there isn't any icon files in it.
Hopefully this can't help!!
Thx

dwould 2010-07-19 09:01

Re: witter - a python twitter client
 
Quote:

Originally Posted by cosmo200 (Post 756196)
Hey Daniel,

After it crashed for the first time, I removed the timeline cache, since witter was having problems loading it. But I guess that I might've removed the whole folder. (I did the same thing with the mentions and DMs).
I'm using the Touch theme and it appears on the folder, but I couldn't find any icons in the Touch folder. I don't know if I'm using the wrong command line or if there isn't any icon files in it.
Hopefully this can't help!!
Thx

Case is important here, so could you confirm, does your theme line say:
theme = touch
and do you have
/opt/witter/icons/touch
and are you saying that /opt/witter/icons/touch is empty?
Note all lower case

To fix you'd need to find one of the folders in /opt/witter/icons that does have icons in it, and then edit the .witter file to have that folder name as the configured theme. However this really shouldn't have been able to happen, so I'm obviously missing something....

dwould 2010-07-19 12:07

Re: witter - a python twitter client
 
looks like I've screwed up the packaging and included a Touch as well as a touch folder. only the lower case version has a real set of icons in. the other should not exist. I'll fix it in the next version, but in the mean time you need to make sure you change .witter to have
theme = touch
NOT
theme = Touch

cosmo200 2010-07-20 02:03

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 756679)
looks like I've screwed up the packaging and included a Touch as well as a touch folder. only the lower case version has a real set of icons in. the other should not exist. I'll fix it in the next version, but in the mean time you need to make sure you change .witter to have
theme = touch
NOT
theme = Touch

Hey Daniel,

Mine theme says Touch (with a T). It started to crash after I set it. My question is (it might be pretty basic, but I'm still learning how to use the x-term) how do I set the theme to one theme that works?

Thx

RalphK87 2010-07-20 17:29

Re: witter - a python twitter client
 
Download Midnight Commander...

Start the Xterm

sudo gainroot

mc

then in midnight commander, find the .witter file and press edit... find the text where it says theme=Touch

edit that into theme=touch

For me this worked... let me know if it worked for you

dwould 2010-07-20 21:38

Re: witter - a python twitter client
 
I was hoping to have time to package a fix for this, so that you wouldn't have to learn how to edit the file. But I've been too busy.
there are lots of ways, the way I know is to use an editor called 'vi' but this is not exactly a user friendly way to do anything.
basically....at xterm enter:

vi /home/user/.witter

this will load up a screen with the contents of the file, navigate using the arrow keys to put the cursor under the T of Touch then enter:

rt

this will 'replace' the current caracter with 't'
then enter

:wq

the colon will take you to a menu, then w will save the file, and the q will quit.

cosmo200 2010-07-21 03:58

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 758451)
I was hoping to have time to package a fix for this, so that you wouldn't have to learn how to edit the file. But I've been too busy.
there are lots of ways, the way I know is to use an editor called 'vi' but this is not exactly a user friendly way to do anything.
basically....at xterm enter:

vi /home/user/.witter

this will load up a screen with the contents of the file, navigate using the arrow keys to put the cursor under the T of Touch then enter:

rt

this will 'replace' the current caracter with 't'
then enter

:wq

the colon will take you to a menu, then w will save the file, and the q will quit.

Hey Daniel,

I chanced the theme to monochrome (I tried the touch as well) but witter keeps crashing. When I run the command more /home/user/.witter, it shows me theme = monochrome.
Running the command run-standalone.sh.... it shows this:

gestures enabled
no service setting
Traceback (most recent call last) :
File "/opt/witter/witter.py", line 1184, in <module>
app = Witter ()
File "/opt/witter/witter.py", line 149, in __init__
self.readConfig ()
File "/opt/witter/witter.py", line 455, in readConfig
self.search_terms = config.get ("search", "search_terms")
File "/usr/lib/python2.5/ConfigParser.py", line 520, in get

raise NoOptionError: No option 'search_terms' in section: 'search'

Either I screwed it up for good or we are getting close to fix it. I'm almost waiting for the next update to be released, but I really like this app. Hopefully it works again.
Thx

dwould 2010-07-21 20:04

Re: witter - a python twitter client
 
Quote:

Originally Posted by cosmo200 (Post 758681)
Hey Daniel,

I chanced the theme to monochrome (I tried the touch as well) but witter keeps crashing. When I run the command more /home/user/.witter, it shows me theme = monochrome.
Running the command run-standalone.sh.... it shows this:

gestures enabled
no service setting
Traceback (most recent call last) :
File "/opt/witter/witter.py", line 1184, in <module>
app = Witter ()
File "/opt/witter/witter.py", line 149, in __init__
self.readConfig ()
File "/opt/witter/witter.py", line 455, in readConfig
self.search_terms = config.get ("search", "search_terms")
File "/usr/lib/python2.5/ConfigParser.py", line 520, in get

raise NoOptionError: No option 'search_terms' in section: 'search'

Either I screwed it up for good or we are getting close to fix it. I'm almost waiting for the next update to be released, but I really like this app. Hopefully it works again.
Thx

looks like you may have deleted an extra line. In any case 0.3.5-2 is on it's way to extras-devel which should fix your problem and the previous ones. I've also (hopefully) removed the erroneous extra folder from the package.

eothred 2010-07-21 21:52

Re: witter - a python twitter client
 
I think you are making a wonderful effort and you have a very advanced application going here.

I have one gripe, there are very many buttons in my opinion, which makes it all feel a bit cluttered. In addition, in landscape mode, they are stealing precious vertical screen space. I would therefore suggest if it would be possible to:
- Perhaps align the buttons vertically on one side when in landscape mode?
- Perhaps hide the less significant buttons under a dropdown menu somehow?
- You could also consider to hide the field where you write your tweet, and bring it up when you click the t in the corner.

To sum up, keep up your great efforts, and thank you very much! :)

cosmo200 2010-07-22 01:57

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 759836)
looks like you may have deleted an extra line. In any case 0.3.5-2 is on it's way to extras-devel which should fix your problem and the previous ones. I've also (hopefully) removed the erroneous extra folder from the package.

Ok... thanks for the help anyway! I'll wait anxiously for the next update. :)

dwould 2010-07-22 12:08

Re: witter - a python twitter client
 
Quote:

Originally Posted by eothred (Post 759963)
I think you are making a wonderful effort and you have a very advanced application going here.

I have one gripe, there are very many buttons in my opinion, which makes it all feel a bit cluttered. In addition, in landscape mode, they are stealing precious vertical screen space. I would therefore suggest if it would be possible to:
- Perhaps align the buttons vertically on one side when in landscape mode?
- Perhaps hide the less significant buttons under a dropdown menu somehow?
- You could also consider to hide the field where you write your tweet, and bring it up when you click the t in the corner.

To sum up, keep up your great efforts, and thank you very much! :)

if you manually refresh a feed, then the entire tweet box/refresh/tweet button area dissapears to give you more realestate for scrolling. It will come back if you start typing, or switch to another view.

As for the other suggestions, it really boils down to what GTK lets me do easily. I am occasionally tempted to totally re-write the ui ignoring such toolkits, or to try qt etc etc. But that's a huge effort. GTK gives me all the basics, hopefully reasonable performance, and reliability.
However the downsides are that it's not easy to have pop out menus of buttons, or sexy animations etc.
I also am dependant on what event hooks I can use to trigger things. I originally wanted to hide everything when you start scrolling, and bring it back a few seconds after scrolling stops. But that's much harder to do that I wanted, for a start there is no 'scrolling started, scrolling stopped' type events (that I've seen)

As ever if you can point to an open source python prog on maemo that does have elements you like, then I'll happily go look at what I can learn from it. But at the moment I don't have any large chunks of time I can spend doing serious work on witter. So focusing on minor tweaks in reliability, and smaller functional improvements.

extechop 2010-07-23 11:24

Re: witter - a python twitter client
 
Thanks, this seems to be a fairly comprehensive twitter application.

However, I actually had to look at the debug output to figure out what I was doing wrong when trying to tweet pictures. Turns out, one is supposed to first write your tweet, then add your image file. If you just start off with the image file, without anything written in the tweet, witter will fail in a rather mysterious way.

How about adding a warning pop-up for those of us who try to do this? I, for one, was assuming what would happen is that the image would get uploaded to twitpic and the URL appended to the tweet text field, without it being immediately submitted.

planetf1 2010-07-25 22:30

Re: witter - a python twitter client
 
1 Attachment(s)
I'm having an issue with witter 0.3.5-2 whereby the automatic refresh does not appear to be working correctly.

Refresh for timeline is set to 5 minutes, but typically I see
- The "updating" rotating circle indicator continuing to rotate near-continuously
- Tweets often not getting updated for 30 mins or longer -- though sometimes they do
- A manual refresh sometimes updating correctly.

I took a debug log (start, leave for 10 mins+, shutdown, copy log) which is attached

dwould 2010-07-29 10:57

Re: witter - a python twitter client
 
Quote:

Originally Posted by planetf1 (Post 764590)
I'm having an issue with witter 0.3.5-2 whereby the automatic refresh does not appear to be working correctly.

Refresh for timeline is set to 5 minutes, but typically I see
- The "updating" rotating circle indicator continuing to rotate near-continuously
- Tweets often not getting updated for 30 mins or longer -- though sometimes they do
- A manual refresh sometimes updating correctly.

I took a debug log (start, leave for 10 mins+, shutdown, copy log) which is attached

Sorry I've been busy. Weirdly it looks like I hit return accidentally in that file and caused that but, but it's not affected me (but then I run from latest source rather than installed version most of the time)
I've fixed it, but haven't had time to upload the fix. might get a moment this evening.

msaalli 2010-07-29 14:19

Re: witter - a python twitter client
 
Hey Daniel, tried loading my witter and it doesn't update the timeline while the mentions and dms r blank. Ran d xterm command and got:

$ run-standalone.sh python2.5 /opt/witter/witter.py
no text colour setting
no text colour 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 load cached timeline
Failed to load cached timeline
Failed to load cached timeline
/opt/witter/ui/gtkWitter.py:77: 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
/opt/witter/ui/gtkWitter.py:456: GtkWarning: gtk_widget_shape_combine_mask: assertion `!GTK_WIDGET_NO_WINDOW (widget)' failed
hbox2.shape_combine_mask(self.Mask,0,0)
define portrait keyboard objects
define general window
setting up treeview
adding button to panned area
time to show the window
probably nothing selected
couldn't scroll to item
probably nothing selected
couldn't scroll to item
pixbufs loaded for default theme
pixbufs loaded for default theme
probably nothing selected
couldn't scroll to item
probably nothing selected
couldn't scroll to item
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

Great job on this app.

dwould 2010-07-29 14:25

Re: witter - a python twitter client
 
Quote:

Originally Posted by msaalli (Post 769257)
Hey Daniel, tried loading my witter and it doesn't update the timeline while the mentions and dms r blank. Ran d xterm command and got:

$ run-standalone.sh python2.5 /opt/witter/witter.py
no text colour setting
no text colour 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


Great job on this app.

Basically this shows that you have no user account configured. Did you delete the file /home/user/.witter at some point?
if that file is there, does it contain any content that looks like a user account setup?

I'm afraid it looks at though you'd need to reconfigure your account.

msaalli 2010-07-29 14:42

Re: witter - a python twitter client
 
Don't know how the account was removed. Was using it just before it stopped reloading. Thanks a lot for the help and also for the app.

raothmist 2010-07-29 15:00

Re: witter - a python twitter client
 
The update stop working, if i update manually it dont work. There is a way to fix this?

dwould 2010-07-29 15:16

Re: witter - a python twitter client
 
Quote:

Originally Posted by msaalli (Post 769281)
Don't know how the account was removed. Was using it just before it stopped reloading. Thanks a lot for the help and also for the app.

The only thing I could guess is if something bad went wrong at just the wrong time, eg whilst witter was closing and writing a fresh version of the config file, but before it wrote most of the useful attributes, then it could have this effect.
hard to know though. let me know if you see this happening again.

dwould 2010-07-29 15:18

Re: witter - a python twitter client
 
Quote:

Originally Posted by raothmist (Post 769296)
The update stop working, if i update manually it dont work. There is a way to fix this?

Read the sig. without a log I can't help you.


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

vBulletin® Version 3.8.8