Random thought: do you need to add an __init__.py to the Middle directory and/or the Video directory? Maybe something's importing these files as a package.
- Geoff > -----Original Message----- > From: Tim Payne [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 09, 2002 2:46 PM > To: Webware > Subject: [Webware-discuss] Re: MiddleKit Problems > > > On Thursday, August 8, 2002, at 10:53 PM, Tim Payne wrote: > > > With that problem solved I skipped down the Quick Start to > the section > > on fetching objects. I tried adding this to main(); videos = > > store.fetchObjectsOfClass(Video). I figured that it would > be a good > > test of my MiddleKit setup, because I knew my sample data > was already > > in the database. This test failed, with an ImportError. > Here is the > > full traceback; > > Just a followup. The problem seems to be clearly an issue of paths. > SQLObjectStore is unable to locate the Middle package. I'm not sure > why. The one thing I did notice was that although I included > the line > suggested in the Quick Start that adds the path to working > application, > this path does not show up in the sys.path on the WebKit > error page. > Maybe it shouldn't? > > Another strange problem with paths is that > readModelFileNamed() does not > find Middle/Video/mkmodel/Classes.csv, even though the path > is relative > to the application. If it use the full path it will find it, > so by the > time the request is passed to DataTable.py, it is no longer > working from > the same directory. > > Just to give an idea of my file setup > > Webserver/ > Webware/ "Base Install" > ww/ "Working Directory" > Sites/ > url/ > Video/ > Middle/ > Video.py > Video.mkmodel > MyServlet.py > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
