Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41086

Can't get any output from python-sqlkit, how to diagnose?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From tinnews@isbd.co.uk
Newsgroups comp.lang.python
Subject Can't get any output from python-sqlkit, how to diagnose?
Date Mon, 11 Mar 2013 18:21:16 +0000
Lines 32
Message-ID <stj11a-b6k.ln1@chris.zbmc.eu> (permalink)
X-Trace individual.net KavLiJkrqabLtxgRfnKKiQRDJJiElhMw3iI3jsbi3p11QfxHnKkJ/GJcoyC+zb0Xw=
X-Orig-Path not-for-mail
Cancel-Lock sha1:ma/OoIOZ+tmAoUkx9B0dwVQdrBQ= sha1:Wh+zIG2NdiEDAH/tN4VSpml/ZBE=
User-Agent tin/2.1.1-20120623 ("Mulindry") (UNIX) (Linux/3.5.0-25-generic (x86_64))
Xref csiph.com comp.lang.python:41086

Show key headers only | View raw


I am trying to use python-sqlkit (https://pypi.python.org/pypi/sqlkit/0.9.5.1) 
but I'm not really getting over the first hurdle.

If I run sqledit (the ready made executable that needs no programming)
on my data then it works fine and displays my table data.

However if I enter the minimal example given in the documentation
(changing the database and table names to mine of course) I get no
output, no errors either, just nothing (apart from two warning
messages which are also output by the sqledit standalone).

My code is as follows:-

    #!/usr/bin/python

    from sqlkit.widgets import SqlTable, SqlMask
    from sqlkit import DbProxy

    db = DbProxy(engine='sqlite:////home/chris/.sqledit/money.db')
    t = SqlMask('jessica', dbproxy=db)
    t.reload()

... this is the example given at http://sqlkit.argolinux.org/sqlkit/sqlwidget.html

I'm not convinced that this is a complete example though (obviously
not as it doesn't work).  Can someone point me at a minimal python
program for getting the GUI off the ground using sqlkit please.  Or
alternatively tell me what I have to add to the above.


-- 
Chris Green

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Can't get any output from python-sqlkit, how to diagnose? tinnews@isbd.co.uk - 2013-03-11 18:21 +0000

csiph-web