![]() |
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 !!!! |
Re: witter - a python twitter client
Quote:
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. |
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 |
Re: witter - a python twitter client
Quote:
I'll think about how to solve this problem properly. but just warning you it may happen again. |
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:)... |
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 |
Re: witter - a python twitter client
Quote:
cd /home/user/.witterPics/twitter/ rm * this will remove all the cached avatars forcing a reload next time. This should fix the problem |
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' |
Re: witter - a python twitter client
Quote:
|
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. |
Re: witter - a python twitter client
Quote:
|
Re: witter - a python twitter client
Quote:
|
Re: witter - a python twitter client
Quote:
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. |
Re: witter - a python twitter client
Quote:
The twitpic is working?, i try to use it before but without results |
Re: witter - a python twitter client
Quote:
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. |
Re: witter - a python twitter client
Quote:
|
Re: witter - a python twitter client
Quote:
|
Re: witter - a python twitter client
Quote:
|
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! :) |
Re: witter - a python twitter client
Quote:
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? |
Re: witter - a python twitter client
Quote:
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 |
Re: witter - a python twitter client
Quote:
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.... |
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 |
Re: witter - a python twitter client
Quote:
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 |
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 |
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. |
Re: witter - a python twitter client
Quote:
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 |
Re: witter - a python twitter client
Quote:
|
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! :) |
Re: witter - a python twitter client
Quote:
|
Re: witter - a python twitter client
Quote:
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. |
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. |
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 |
Re: witter - a python twitter client
Quote:
I've fixed it, but haven't had time to upload the fix. might get a moment this evening. |
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. |
Re: witter - a python twitter client
Quote:
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. |
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.
|
Re: witter - a python twitter client
The update stop working, if i update manually it dont work. There is a way to fix this?
|
Re: witter - a python twitter client
Quote:
hard to know though. let me know if you see this happening again. |
Re: witter - a python twitter client
Quote:
|
All times are GMT. The time now is 16:28. |
vBulletin® Version 3.8.8