opensubscriber
   Find in this group all groups
 
Unknown more information…

g : gnue@gnu.org 14 February 2011 • 8:52PM -0500

First experience ins installing and setting up gnue
by Kishan Bhat

REPLY TO AUTHOR
 
REPLY TO GROUP




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!!

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.