Active Topics

 


Reply
Thread Tools
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#1
Hi
I am about to publish a Gui front end to sqlite3

Name:  shot-2008-01-21-20-24-01.jpg
Views: 685
Size:  31.1 KB

There are a lot of firsts here. This is my first Python program, my first gtk
my first debian package etc.

Any help apreciated.

I have a problem with the packaging.


I have a sources structure as below:-

~/sources/usr/bin/datable
~/sources/usr/share/applications/hildon/datables.desktop
~/sources/usr/share/pixmaps/datables.png ( 26X26 icon )

contents of .desktop

[Desktop Entry]
Encoding=UTF-8
Version=0.0.1
Type=Application
Name=datable
Exec=/usr/bin/datable
Icon=datable
X-Window-Icon=datable
X-Window-Icon-Dimmed=datable
X-Osso-Service=datable
X-Osso-Type=application/x-executable

used pypackager to create .deb

installed through 'application manager' puts datables with icon into extras
menu and datables executable into /usr/bin. The png is in the pixmaps folder.

When selected from menu I get 'datable - loading' and then nothing.

EDIT: Missed a bit.

when run from the command line the prog runs fine with no errors.

when run on my Linux box ( without the hildon bits ) xprop reports
WM_CLASS(STRING) = "datable", "Datable" --- Which one is right ?
Does it matter ?

Any suggestions welcome

Thanks Rick

Last edited by rcull; 2008-01-23 at 19:15.
 
Posts: 111 | Thanked: 31 times | Joined on Nov 2007
#2
you need a .service file

EDIT: it's also possible you have a runtime error: have you tried running your app from the command line?

Last edited by cripes; 2008-01-23 at 19:20.
 

The Following User Says Thank You to cripes For This Useful Post:
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#3
Cripes

Thanks for the reply.
I had edited my original post with extra info while you were answering. It works fine from the command line.

I've looked up .service files and added the following in /usr/share/dbus-1/services/datable.service

[D-BUS Service]
Name=datable
Exec=/usr/bin/datable

and restarted - still no joy any suggestions gratefully recieved.

Thanks Rick

Last edited by rcull; 2008-01-23 at 20:02.
 
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#4
Originally Posted by rcull View Post
[D-BUS Service]
Name=datable
Exec=/usr/bin/datable
Try with:
[D-BUS Service]
Name=com.nokia.datable
Exec=/usr/bin/datable
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#5
Moreover, you need initialize the osso service in your python app:

import osso
context = osso.Context("datable", "0.0.1", False)
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 

The Following User Says Thank You to yerga For This Useful Post:
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#6
Thanks guys.

The combination now runs. I will be publishing in the garage shortly.

Thanks again for your help - Please try the prog out when published

Rick
 
Posts: 111 | Thanked: 31 times | Joined on Nov 2007
#7
post again when its ready.

btw, you don't have to use com.nokia as the domain prefix, you just have to use some domain prefix otherwise libosso will prepend com.nokia. Also I don't think that you actually need to import the osso module unless you actually want to make or receive osso dbus calls (for e.g. file manager will pass a mime_open dbus message when you double click on a file to an apps that has a compatible mime type association -- in your case you could set up a mimetype assocation to sqlite3 compatible databases)
 
bizshop's Avatar
Posts: 98 | Thanked: 8 times | Joined on Apr 2007 @ Port Angeles, WA
#8
Will this be running under 2008OS? If so, will it include an install of sqlite3? I and several others have been unable to locate sqlite version 3 - all we've managed so far is 2.8.17

So the GUI is kind of a moot point without the db
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#9
dpkg -l | grep sqli
ii libsqlite3-0 3.4.1-1osso3 SQLite 3 shared library


sqlite3 is installed by default
Or did I misunderstand the question?

and there are already a lot of default installed package using this lib:

apt-cache rdepends libsqlite3-0
libsqlite3-0
Reverse Depends:
libimlogger0
libmetalayer0
osso-chat-ui
osso-software-version
osso-mission-control
pidgin
osso-software-version
osso-imlogviewer
osso-mission-control
osso-imlogviewer
mapper
libsqlite3-dev
rapier
liblightmediascanner0
libgda3-sqlite
libgda3-virtual
libgda3-report
libgda3-sqlite
libgda3-virtual
libgda3-report
python2.5-lightmediascanner
pidgin
python2.5
maemo-mapper
maemopadplus
maemoscrobbler
gcompris

And here is a command line tool

Last edited by free; 2008-01-30 at 19:47.
 
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#10
Bizshop
The thread title is probably misleading what is actually used here is pysqlite3 - part of the python 2.5 install. The program is for all architectures and is available at :

https://garage.maemo.org/frs/downloa...-0.0.4.all.deb

see also the Announce thread :

http://www.internettablettalk.com/fo...ad.php?t=15594

The app will open ( and or create ) all sqlite3 dbs.

Rick
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:13.