I am working on learning MiddleKit, and having a great time.  Things have
gone well until I try to actually build a Store from my model.  After
creating a simple model, generating it, creating the database and it's
objects, and loading my sample data all successfully, I've stumbled.  When I
try to do store.readModelFileNamed(_filename) I get "ModelError: (<path to
my model.mkmodel>', "Could not import module for class '<First class in my
model>' due to 'No module named Middle'.  If you added this class recently,
you need to re-generate your model.')

I have a Settings.config file that contains:
{
    'Package': 'Middle',
    'SQLLOG': {'File': 'mk-sql.log' },
    'Database': 'MyDbNameHere'
}
and my "Middle" directory does have (an empty) __init__.py file to identify
it as a package.

I suspect I'm making a common noob oversite here, but (admitting to being a
newbie) I cannot see it.  Any advice on common pitfalls I might be hitting
here?  Thanks in advance!




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to