Re: [Modeling-users] using Modeling with McMillan's installer
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2004-02-06 14:02:41
|
Hi John, John Lenton <jo...@vi...> wrote: > Hi all. >=20 > I've tried (briefly) to freeze (using McMillan's installer, > http://www.mcmillan-inc.com/install1.html) a small test program that > uses Modeling, and it dies: >=20 > $ ./search-test/search-test > /tmp/tests/modeling/Sample/__init__.py:12: UserWarning: Couldn't load= model Sample > Traceback (most recent call last): > File "<string>", line 36, in ? > File "search-test/buildsearch-test/out1.pyz/Modeling.EditingContext= ", line 1419, in fetch [...] > File "search-test/buildsearch-test/out1.pyz/Modeling.DatabaseContex= t", line 250, in handleNotification > RuntimeError: Unable to find a model for entity: Person >=20 > I'm guessing I have to include something else inside the frozen file > to get it to work; what could that be? I've tried importing > Sample.model_Sample.py, but that's not it... The problem here is that, even if the Sample package is imported, it failed to initialize the model (cf. the UserWarning: Couldn't load model Sample). The __init__ should say something like: model=3DModel.searchModel("Sample", mydir, verbose=3D0) Could you change 'verbose=3D0' to 'verbose=3D1', re-freeze the sample app. and report back the result? It should give us some hints on why the model cannot be loaded when the app. is freezed. In the meantime, I'll try to have a look at McMillan's freeze func :) -- S=E9bastien. |