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 [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
