Active Topics

 



Notices


Reply
Thread Tools
Posts: 16 | Thanked: 1 time | Joined on Jan 2010
#11
Yes I used the packet manager to download it.

I tried the version you attached and the problem is the same: if I launch python command as root I get this message: "QGtkStyle cannot be used together wit GTK_Qt engine. Segmentation fault".

If I launch python command as normal user I get this (with your version and also with the one I've previously installed):

Traceback (most recent call last):
File "/home/opt/www2sms/www2sms.py", line 451, in <module>
ui = MainWindow()
File "/home/opt/www2sms/www2sms.py", line 55, in __init__
self.my_phone_book = self.get_contacts()
File "/home/opt/www2sms/www2sms.py", line 200, in get_contacts
contact_and_numbers = [item.decode('utf-8')]
AttributeError: 'list' object has no attribute 'decode'

Hope it will help,

thanks!
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#12
If I only start "/opt/www2sms/www2sms.py" from command line it works but it won't start from the shortcut in the menu.
 
Posts: 16 | Thanked: 1 time | Joined on Jan 2010
#13
no, it shows me always the same error
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#14
Originally Posted by MaRRo81 View Post
Yes I used the packet manager to download it.

I tried the version you attached and the problem is the same: if I launch python command as root I get this message: "QGtkStyle cannot be used together wit GTK_Qt engine. Segmentation fault".

If I launch python command as normal user I get this (with your version and also with the one I've previously installed):

Traceback (most recent call last):
File "/home/opt/www2sms/www2sms.py", line 451, in <module>
ui = MainWindow()
File "/home/opt/www2sms/www2sms.py", line 55, in __init__
self.my_phone_book = self.get_contacts()
File "/home/opt/www2sms/www2sms.py", line 200, in get_contacts
contact_and_numbers = [item.decode('utf-8')]
AttributeError: 'list' object has no attribute 'decode'

Hope it will help,

thanks!
Okay, I fixed the "AttributeError: 'list' object has no attribute 'decode' "

When neither a name, family name or alias was found for a contact I add "No name found" but instead of a string, I added it as a list item, which of course has no decode attribute ;-) (was left over from some previous code)

I am wondering at that point: Do you really have a contact without name, family name, alias? Could you check that and try the attached version if it fixes the the error for you?


But by no means I can replicate the "QGtkStyle cannot be used together wit GTK_Qt engine. Segmentation fault". Anyone else with this error?

Do you have any special Desktop environment?
Attached Files
File Type: tar www2sms-1.0.1.tar (284.0 KB, 143 views)
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#15
Originally Posted by DaSilva View Post
If I only start "/opt/www2sms/www2sms.py" from command line it works but it won't start from the shortcut in the menu.
Two ideas:

in www2sms.py change the first line from

#!/usr/bin/env python
to
#!/usr/bin/python

if this does not help, try do edit the desktopfile (/usr/share/applications/hildon/www2sms.desktop) from:
Exec=/opt/www2sms/www2sms.py
to
Exec=/usr/bin/python /opt/www2sms/www2sms.py
or
Exec=python /opt/www2sms/www2sms.py


But I am not shure about that ;-)

Thanks for testing, I appreciate it very much!

Cheers
Bjoern

Last edited by blubbi; 2010-05-17 at 21:18.
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#16
I don't know why but it starts now from the menu shortcut.
Maybe only the first run wasn't successful but after that but I don't know why, sorry.
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#17
Originally Posted by DaSilva View Post
I don't know why but it starts now from the menu shortcut.
Maybe only the first run wasn't successful but after that but I don't know why, sorry.
Mmmh, might be due to the fact that python byte-compiles all modules. Maybe I should distribute the package pre-compiled.
This would speed up the first start (Well, there is some room for startup speed improvement anyway by only loading the really neede QT modules)

Thanks for reporting back.

Cheers
Bjoern
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#18
Does www2sms already add sent messages to the conversations?
If not how long does it take to implement it approx.?
Thanks
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#19
Originally Posted by DaSilva View Post
Does www2sms already add sent messages to the conversations?
No

Originally Posted by DaSilva View Post
If not how long does it take to implement it approx.?
Thanks
First I would like to stabilize the app and then throw myself into this problem. There is, as far as I investigated, no pythonic way to insert send SMS into conversations, so I would have to mess around with ctypes for python or somehow play around with D-Bus...

So as soon as all these little nasty bugs have vanished (like not launching from Desktop-Icon, and the Segmentation fault) I'll head straight forward to the SMS insertion to conversation.

Any help or suggestions on this particular topic are highly appreciated! ;-)

Thanks for the feedback,
Bjoern
 
Posts: 16 | Thanked: 1 time | Joined on Jan 2010
#20
Hi! Now it works as normal user (the one you attached) - didn't try as root yet.

The strange thing is that the first time I launched it, it didn't work ..unfortunatelly I didn't write the message down It was always a problem related to name, surname and alias.

Then I checked my address book and I saw that there was a duplication of some contacts..I adjusted them and then the program started working...

I hope it was useful..Now I'm gonna see how it works

PS: I don't have any particular Desktop enviroment .. I also thought it was a problem related to the theme I use but the problem arises also with the standard ones
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:51.