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.


All times are GMT. The time now is 03:56.

vBulletin® Version 3.8.8