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?

From tinnews@isbd.co.uk
Newsgroups comp.lang.python
Subject Can't get any output from python-sqlkit, how to diagnose?
Date 2013-03-11 18:21 +0000
Message-ID <stj11a-b6k.ln1@chris.zbmc.eu> (permalink)

Show all headers | 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