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)

raothmist 2010-07-29 15:34

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 769319)
Read the sig. without a log I can't help you.

Sorry for that. But i fix the problem, the account setting delete my user, i just configure all again. thats strange.......

But is working all again :D

esiravegna 2010-07-31 23:20

Re: witter - a python twitter client
 
Just wondering if anyobody else has, like me, troubles with the shorten url command: Never worked for me. I even created a bit.ly account, but It seems that no url reached bit.ly either.

Suggestions?

Thanks!

dwould 2010-08-02 12:47

Re: witter - a python twitter client
 
Quote:

Originally Posted by esiravegna (Post 771724)
Just wondering if anyobody else has, like me, troubles with the shorten url command: Never worked for me. I even created a bit.ly account, but It seems that no url reached bit.ly either.

Suggestions?

Thanks!

works for me. Without a log (see sig) I can't make any meaningful suggestions

esiravegna 2010-08-02 13:23

Re: witter - a python twitter client
 
Thanks dwolud. I gotthese errors:

Traceback:
File "/opt/witter/witter.py", line 1055, in getShortenedURL except bitly.BitleyError: AttributeError: 'module' object has no attribute 'BitleyError'

assertion error: witter.py:218 gtkwarning: file gtktreeview.c: line 7044 (validate_visible_area): assertion 'has_next' falied.
There is a disparity between the internal view of the GtkTreeView and the GtkTreeModel.

And a lot of 'failed cache timeline' at the start

Ideas?

Thanks again!

dwould 2010-08-02 14:11

Re: witter - a python twitter client
 
Quote:

Originally Posted by esiravegna (Post 773045)
Thanks dwolud. I gotthese errors:

Traceback:
File "/opt/witter/witter.py", line 1055, in getShortenedURL except bitly.BitleyError: AttributeError: 'module' object has no attribute 'BitleyError'

assertion error: witter.py:218 gtkwarning: file gtktreeview.c: line 7044 (validate_visible_area): assertion 'has_next' falied.
There is a disparity between the internal view of the GtkTreeView and the GtkTreeModel.

And a lot of 'failed cache timeline' at the start

Ideas?

Thanks again!

ah, unfortunately it seems I have a typo in the error handling code, so it fails on that, and hides the actual error that occured in the first place.
Have you double checked your account name/api key and made sure you didn't get odd capitalisation that you weren't expecting?

Trying to guess what would trigger an error from the bitly code.

esiravegna 2010-08-02 16:21

Re: witter - a python twitter client
 
Bloody caps. Issue solved, thanks!
BTW, it is supposed to work without a bit.ly account?

dwould 2010-08-06 08:29

Re: witter - a python twitter client
 
Quote:

Originally Posted by esiravegna (Post 773234)
Bloody caps. Issue solved, thanks!
BTW, it is supposed to work without a bit.ly account?

No it's not. at least at the time I added the support it was not obvious to me that there was any way to make it work without a bit.ly account. and I didn't spend a great deal of time worrying about it. I guess if I asked them nicely maybe they'd issue a key that I could hard code to witter? no idea.

hotzigetty 2010-08-06 08:40

Re: witter - a python twitter client
 
any new features planned? :D

dwould 2010-08-06 08:54

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 777549)
any new features planned? :D

I was screwing around with ui stuff last night, I was trying to get the pannable area to let me put controlls to the left or right of the main timeline, but I couldn't get it to let me pan horizontally ;-(

I want to add somewhere that shows your account details, eg tweet count, followers/following counts etc etc.

There is a long list of stuff that I might get around to, but in the very little time I have to spend looking at the moment it's mainly focused around trying to make gtk do nicer ui things. At some point I may give up and try something like qt, but that's a lot of work and I don't know for sure it will be much better.

It should be noted that I get married in 3 weeks, so I'm not really expecting to do much code for the next couple of months ;-)

M.IryanFaiq 2010-08-08 17:03

Re: witter - a python twitter client
 
Hi! First off, I'd like to thank you for the amazing app. Works like a charm. However, I encountered a problem that I hope someone can help me with.

I've read through the thread but hadn't found anybody who encountered the same problem as I had. Witter was working perfectly up until a few days ago when, when I opened it, it looked like it was loading, as usual, then closed suddenly. I've tried it multiple times with the same result. I even reinstalled the firmware and everything and it's still the same. I tried running it through the X-term and this is what I got:

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
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
defining ui buttons
define portrait keyboard objects
define general window
setting up treeview
time to show the window
running tasks: 1
getting tweets with IryanFaiq
base url = https://twitter.com/
base url of api object = https://twitter.com/
refreshing since20462357745
fetching tweets from https://twitter.com/statuses/friends_timeline.json
running tasks: 2
getting dms
refreshing since20461268334
running tasks: 3
getting mentions
refreshing since20461268334
end refresh setup
Segmentation fault

I hope someone can help. =/

dwould 2010-08-08 18:28

Re: witter - a python twitter client
 
Quote:

Originally Posted by M.IryanFaiq (Post 779648)
Hi! First off, I'd like to thank you for the amazing app. Works like a charm. However, I encountered a problem that I hope someone can help me with.

I've read through the thread but hadn't found anybody who encountered the same problem as I had. Witter was working perfectly up until a few days ago when, when I opened it, it looked like it was loading, as usual, then closed suddenly. I've tried it multiple times with the same result. I even reinstalled the firmware and everything and it's still the same. I tried running it through the X-term and this is what I got:
<snip>

Segmentation fault

I hope someone can help. =/

Segmentation fault means one of the libraries that witter uses did something bad with memory. In theory as a pure python app there is nothing I can do to cause a segmentation fault, so it's just that one of the libs I'm using has a bug.
I see this occasionally, but if you;re getting it every time, something very strange is happening. I guess you could try removing all the witter config files and cache files. but I have no idea why that would fix the issue.
does it give the same output every time you run it?

msaalli 2010-08-08 19:13

Re: witter - a python twitter client
 
Quote:

Originally Posted by esiravegna (Post 771724)
Just wondering if anyobody else has, like me, troubles with the shorten url command: Never worked for me. I even created a bit.ly account, but It seems that no url reached bit.ly either.

Suggestions?

Thanks!

U need to copy the API key from your bit.ly account. It is accessible by clicking on your username on the top right side. It works for me.

M.IryanFaiq 2010-08-09 00:14

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 779695)
Segmentation fault means one of the libraries that witter uses did something bad with memory. In theory as a pure python app there is nothing I can do to cause a segmentation fault, so it's just that one of the libs I'm using has a bug.
I see this occasionally, but if you;re getting it every time, something very strange is happening. I guess you could try removing all the witter config files and cache files. but I have no idea why that would fix the issue.
does it give the same output every time you run it?

Thanks for getting back so fast!
I've ran it about ten times or so and for all but one time it gave me that response. That other time, Witter tried to load continuosly; meaning the loading circle kept in motion. When tried to close, it responded with 'witter not responding'. Should I bother removing all config and cache files?

dwould 2010-08-09 09:19

Re: witter - a python twitter client
 
Quote:

Originally Posted by M.IryanFaiq (Post 779919)
Thanks for getting back so fast!
I've ran it about ten times or so and for all but one time it gave me that response. That other time, Witter tried to load continuosly; meaning the loading circle kept in motion. When tried to close, it responded with 'witter not responding'. Should I bother removing all config and cache files?

Well I guess it can't hurt to try at this point.
you want to remove all the files/folders that start with .witter in the /home/user/ folder

M.IryanFaiq 2010-08-09 11:57

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 780171)
Well I guess it can't hurt to try at this point.
you want to remove all the files/folders that start with .witter in the /home/user/ folder

I can't seem to find these files or folders. I didn't find anything beginning with .witter. I think I'm looking in the wrong place. =s

dwould 2010-08-09 12:08

Re: witter - a python twitter client
 
Quote:

Originally Posted by M.IryanFaiq (Post 780287)
I can't seem to find these files or folders. I didn't find anything beginning with .witter. I think I'm looking in the wrong place. =s

you need to do this from an x-term

rm -rf .witter*

be VERY CAREFUL executing this command. there is NO SPACE between the .witter and the *. if you accidentally do rm -rf * or rm -rf .witter * then you will completely erase everything in your home folder.
I take no responsibility for anything you do to your device.

Run correctly that will remove everything that witter stores in terms of state, and when you start it again it will be effectively the 'first time' it thinks it's run.
I would still be slightly surprised if this fixes segfault issues, though it might point the finger at image processing code.

M.IryanFaiq 2010-08-09 14:12

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 780297)
you need to do this from an x-term

rm -rf .witter*

be VERY CAREFUL executing this command. there is NO SPACE between the .witter and the *. if you accidentally do rm -rf * or rm -rf .witter * then you will completely erase everything in your home folder.
I take no responsibility for anything you do to your device.

Run correctly that will remove everything that witter stores in terms of state, and when you start it again it will be effectively the 'first time' it thinks it's run.
I would still be slightly surprised if this fixes segfault issues, though it might point the finger at image processing code.

IT WORKED! WOW! Thank you SO much! I was beginning to die without Witter. It's my most used application. Even more than Conversations and Phone. =D

dwould 2010-08-09 15:24

Re: witter - a python twitter client
 
Quote:

Originally Posted by M.IryanFaiq (Post 780412)
IT WORKED! WOW! Thank you SO much! I was beginning to die without Witter. It's my most used application. Even more than Conversations and Phone. =D

I'm glad it's fixed, though slightly concerned that state which witter retained was enough to cause reproducible segfaults.
The only thing I can think of is that somehow an avatar file got corrupted in just a certain way which caused the image libraries to segfault when trying to reload. I have no idea how to protect against that.

perhaps I should just write a wrapper script which magically relaunches if witter dies unexpectedly....kind of hides the problem rather than fixes it, but I believe segfaults are just out of my control.

Zekahz 2010-08-12 21:23

Re: witter - a python twitter client
 
Nice new features in the update. Only the width of the app now doens't fit the phone screen. Can you fix that?

dwould 2010-08-12 21:31

Re: witter - a python twitter client
 
Quote:

Originally Posted by Zekahz (Post 784676)
Nice new features in the update. Only the width of the app now doens't fit the phone screen. Can you fix that?

I'm still playing with layout and various options. it's not entirely unintended to have some buttons that are to the right of the screen by default.
Weirdly can't find how to set the width of the treeview.
in any case I wanted to get some changes out to the adventurous people using extras-devel so that people could have a play and see how things are looking.

hotzigetty 2010-08-13 04:46

Re: witter - a python twitter client
 
Love the new version.. Just realized there's a button on the right to move to the last tweet on the page. And geolocation!!
Request: could we have a button next to the "W" button to turn on/off the geotagging?
Also,is it possible to open witter to the last tweet that was read, rather than the newest one?

Thanks again btw, like i tweeted, it's almost complete!!

ikirk 2010-08-13 13:52

Re: witter - a python twitter client
 
Hi Daniel,

I had the update for witter last night and now I cant run it. :confused:

Have already tried removing all the .witter folders, uninstalling, then re-installing - just cannot get it to run. When I try I get the black screen and timer thing on title bar for 3-4 seconds then it disappears.

Did the run-standalone thing and last line reads this:

File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 41, in <module>
Import Error: No module name location


Any ideas what might be wrong here?

Thanks,
Ian

poka64 2010-08-13 14:34

Re: witter - a python twitter client
 
Quote:

Originally Posted by ikirk (Post 785343)
Hi Daniel,

I had the update for witter last night and now I cant run it. :confused:

Have already tried removing all the .witter folders, uninstalling, then re-installing - just cannot get it to run. When I try I get the black screen and timer thing on title bar for 3-4 seconds then it disappears.

Did the run-standalone thing and last line reads this:

File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 41, in <module>
Import Error: No module name location


Any ideas what might be wrong here?

Thanks,
Ian

the same thing for me too..

benoitstandre 2010-08-13 18:46

Re: witter - a python twitter client
 
Hello everyone

Trying to use the latest version from devel 0.3.6-0 . It keeped loading the timeline when I was starting witter (with the wait little circle continously going round and round), even though it told me I had 200 new tweets and 20 new DM.

I erased all files and folders related to witter (.witter and such), and tried restarting witter without any success. It is still opened, but I can't do anything in it, seems unresponsive (even for minutes). It doesn't even ask me to enter my login and pwd info for identi.ca and/or twitter.

Here is my log:

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:78: 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
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
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1215, 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'

hotzigetty 2010-08-13 20:06

Re: witter - a python twitter client
 
damn.. exact same problem as everyone else!! was working perfectly the whole day.. till ten minutes ago!!

UPDATE: It's working properly again now.. On wifi now, and the problem seemed to be happening only with 2g..

tnhh 2010-08-13 20:11

Re: witter - a python twitter client
 
Quote:

Originally Posted by ikirk (Post 785343)
Did the run-standalone thing and last line reads this:

File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 41, in <module>
Import Error: No module name location


Any ideas what might be wrong here?

There is a missing dependency. You need to do:

Code:

sudo gainroot
apt-get install python-location

I have already opened a bug and Daniel has indicated that it will be fixed in the next version.

CYPHERC 2010-08-14 00:41

Re: witter - a python twitter client
 
Quote:

Originally Posted by nosa101 (Post 589240)
a reboot fixed my virtual keyboard problem

Really? cause mine is not working and i already reboot my phone a lot of times... help?

mr_ian84 2010-08-14 06:38

Re: witter - a python twitter client
 
Quote:

Originally Posted by tnhh (Post 785680)
There is a missing dependency. You need to do:

Code:

sudo gainroot
apt-get install python-location

I have already opened a bug and Daniel has indicated that it will be fixed in the next version.

Yep i can confirm the missing package is the issue. Running the command fixes it.

msaalli 2010-08-14 08:15

Re: witter - a python twitter client
 
Hi Daniel, my witter stopped starting up, I tried the fix of installing the dependency. Now it starts up but doesn't load any tweet and is also unresponsive when active. Thanks.

~ $ run-standalone.sh python2.5 /opt/witter/witter.py
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:78: 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
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
Traceback (most recent call last):
File "/opt/witter/witter.py", line 1215, 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
lat = 39.400000, long = 0.000000
^C~ $

poka64 2010-08-14 08:30

Re: witter - a python twitter client
 
Geolocation seems to be a bit broken..

When I tried it was like 200km off my current position :(

hotzigetty 2010-08-14 08:56

Re: witter - a python twitter client
 
Quote:

Originally Posted by poka64 (Post 786115)
Geolocation seems to be a bit broken..

When I tried it was like 200km off my current position :(

Quick fix: use the location widget, turn it on, see if the map thumbnail is where you're at and then use geolocation for tweeting (regardless of whether you're using hahlo, tweego or witter). My n900 always seems to think that I'm 800km away at some Damn on first lock everday!! Hope this helps! :)

poka64 2010-08-14 09:18

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 786130)
Quick fix: use the location widget, turn it on, see if the map thumbnail is where you're at and then use geolocation for tweeting (regardless of whether you're using hahlo, tweego or witter). My n900 always seems to think that I'm 800km away at some Damn on first lock everday!! Hope this helps! :)

It works, thank you :)

Maybe Witter should activate the gps and get a location before it tries too send the tweet?

Gravity on symbian lets you cache the gps location before you tweet.

dwould 2010-08-14 12:37

Re: witter - a python twitter client
 
Hi guys, seems like a lot of people having trouble...quick reminder this was an update in extras-devel...I'm trying out new things, and some bigger restructuring so there is going to be instability.

There was a missing dependancy in location, that will be fixed in the next update.
There is a bunch of barely tested code here, but I wanted to give the brave a chance to give me feedback. I really recomment most people stick to the extras-testing repo.

as for granularity in location, I am intentionally asking for just teh coarse granularity based off of cell tower info, this doesn't drain battery. I didn't want to have witter sit waiting for a nice accurate location fix whenever you tweet, and I didn't want to leave gps running in the background all the time just to have an accurate fix when I need it.
I'm pretty sure it's still only getting a fix at startup, and not updating if you move locations at the moment.

Thanks for your interest, sorry for the problems, but please remember the devel repository is for development....things do break.

hotzigetty 2010-08-14 21:30

Re: witter - a python twitter client
 
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..

CYPHERC 2010-08-15 01:53

Re: witter - a python twitter client
 
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?

Zekahz 2010-08-15 08:42

Re: witter - a python twitter client
 
Really like the new update, showing the most important buttons together. Maybe it's a good idea to show the timeline, mentioned and direct message immediately at startup, with an extra buttons to the rest or something. Also the more buttons on the bottom are very large now.

Keep on the good work!

si_wardo 2010-08-15 18:35

Re: witter - a python twitter client
 
doesnt work for me now and ive done the missing dependicies tried on wifi too but still nothing. cat wait till this is fixed. cant cope with other twitter apps they all seem so basic and useless

hotzigetty 2010-08-15 20:18

Re: witter - a python twitter client
 
Just update to the new fix Love the fact that I have the option to only view timeline, replies and DM.. but is there a way I can set this view as default. Also, with this design, there is space to add the geotag option button at the bottom..

CYPHERC 2010-08-15 21:06

Re: witter - a python twitter client
 
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

bertolt 2010-08-16 07:09

Re: witter - a python twitter client
 
why can't i do search anymore with the new version?


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

vBulletin® Version 3.8.8