gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

First experience ins installing and setting up gnue


From: Kishan Bhat
Subject: First experience ins installing and setting up gnue
Date: Mon, 14 Feb 2011 18:22:33 +0530

Hello everyone,

First, thanks to you folks at gnue for making available such quality stuff.

I'm new to GNU Enterprise and I'm writing my experience in using gnue-forms with a sqlite db on my LUbuntu 10.10

// Prerequisites modules:
# sudo apt-get install python-pysqlite python-egenix-mxdatetime python-wxgtk2.6 python-wxgtk2.8
// Install bazaar to download the latest source
# sudo apt-get install bzr
# cd ~; bzr branch bzr://bzr.savannah.gnu.org/gnue
# ./bin/get_all.sh

// Installing from source
// You need to either rename existing "doc/manual" or make a directory doc/man in each of the tools/<xyz> - else you will see errors
# cd tools/common; sudo python setup.py install
# cd tools/forms; sudo python setup.py install
# cd tools/forms; sudo python setup.py install
# cd tools/navigator; sudo python setup.py install
# cd tools/.reports; sudo python setup.py install

// Modifications to get around errors
// Edit "/usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py", line #50, #from xml.sax import saxlib to:
from xml.sax import *

# Change from wx26 to wx. I not sure if making a copy of /usr/local/lib/python2.6/dist-packages/gnue/forms/uidrivers/wx to wx26 will also work.
// /usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py , line #35
// /usr/local/lib/python2.6/dist-packages/gnue/designer/forms/debugger.py, line #33
// /usr/local/lib/python2.6/dist-packages/gnue/designer/forms/LayoutEditor/LayoutEditor.py", line 36
// /usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/base.py , line #69

// Load wx.startup to avoid errors on gStartupStatus(). Edit /usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py, add:
from gnue.designer.ui.wx.startup import Startup
// and look for def init() in this same file, to add:
self.startup = Startup()

// Edit "/usr/local/lib/python2.6/dist-packages/gnue/common/datasources/GConnections.py", add after line #134, in def getAllConnectionParameters (self), add:
return result

//Make a new /etc/gnue/backends.conf (don't use the tilde[~] here - it will not complete your home folder path!!):
[sample]
provider = sqlite3
dbname = /home/user/gnue/sandbox/sample

// Create a sample DB
gnue-schema --connection sample --createdb tools/sample/schema/item.gsd
// Now update this sample db:
gnue-schema --connection sample tools/sample/schema/invoice_item.gsd
gnue-schema --connection sample tools/sample/schema/customer.gsd
gnue-schema --connection sample tools/sample/schema/country.gsd

// Now, run forms:
gnue-forms tools/sample/forms/invoices.gfd

Now enter data using the forms!!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]