From: Jason H. <ja...@pe...> - 2003-03-05 17:36:36
|
On Tue, 2003-03-04 at 09:38, Reto M. Kiefer wrote: > Hello, > > I am quite new to Webware and I like it so far. > > Currently I am looking at MiddleKit, and try to follow the provided > exapmles, but I always run into a problem at the very beginning. > > If I try to run > > python > /usr/lib/python/site-packages/Webware/MiddleKit/Design/Generate.py --db > MySQL --model Videos > > I always get the following Errormessage: > > Generating SQL... > Traceback (most recent call last): <snip> > "/usr/lib/python/site-packages/Webware/MiddleKit/Design/SQLGenerator.py", > line 106, in writeInsertSamplesSQL > self.writeInsertSamplesSQLForLines(lines, generator, file) > File > "/usr/lib/python/site-packages/Webware/MiddleKit/Design/SQLGenerator.py", > line 124, in writeInsertSamplesSQLForLines > klass = self.klass(tableName) > File "./MiddleKit/Core/Model.py", line 215, in klass > KeyError: Thing Hi Reto, It looks like your Samples.csv file contains a reference to a class "Thing", which hasn't been defined in your Classes.csv file. If that helps you figure it out, great. If not, please post your Classes.csv and Samples.csv files, so we can take a closer look. cheers, -- Jason D. Hildebrand ja...@pe... |