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