Hi,
I've identified one of the errors.
dApp in '_initDB(self)' only checks 'self.HomeDirectory' and
'self.HomeDirectory/db'. Py2exe makes self.HomeDirectory=dist/lib/library.zip
(using the standard py2exe zipfile option).
If I add the '.cnxml' file to dist/lib and add
'os.path.split(self.HomeDirectory)[0]' to the dbDir list in '_initDB(self)',
the .exe now find and loads the db connection. But I get the following error:
Traceback (most recent call last):
File "VIS.py", line 50, in ?
File "dabolibdatanavForm.pyc", line 56, in __init__
File "dabouiuiwxdForm.pyc", line 756, in __init__
File "dabouiuiwxdForm.pyc", line 38, in __init__
File "dabouiuiwxdFormMixin.pyc", line 51, in __init__
File "dabouiuiwxdPemMixin.pyc", line 135, in __init__
File "dabolibdatanavForm.pyc", line 62, in _afterInit
File "dabouiuiwxdForm.pyc", line 60, in _afterInit
File "dabouiuiwxdFormMixin.pyc", line 99, in _afterInit
File "dabouiuiwxdPemMixin.pyc", line 191, in _afterInit
File "uiFrmDailyvesseldata.pyc", line 32, in afterInit
override this method and return the control class you want when the
File "dabolibdatanavForm.pyc", line 460, in setFieldSpecs
File "dabolibdatanavForm.pyc", line 486, in parseXML
File "dabolibspecParser.pyc", line 69, in importFieldSpecs
File "xmlsax__init__.pyc", line 33, in parse
File "xmlsaxexpatreader.pyc", line 107, in parse
File "xmlsaxxmlreader.pyc", line 123, in parse
File "xmlsaxexpatreader.pyc", line 211, in feed
File "xmlsaxhandler.pyc", line 38, in fatalError
xml.sax._exceptions.SAXParseException: <unknown>:1:2: not well-formed (invalid t
oken)
I think this means that the form can't load because the fieldSpecs or
relationSpecs files can't be found.
I think I can find the appropriate places to fix this (as I did above), but I'm
probably going to break something else- and I don't think this is a good way
anyway (as I'll have to do the same every time dabo is updated).
Is there a way to override this? ie perhaps specify self.HomeDirectory?
Many thanks.
--
Matthew Fairclough
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users