Jeff, thank you for your response. I tried "import main" but now I get this error --- import main ImportError: No module named main ---
>From the shell, i changed to the directory in which i have my loader file and ran this command bulkloader.py --config_file=aliascommand_loader.py -- filename=aliascommand.csv --kind=AliasCommand --app_id=<app id> -- url=<app url> My guess is I may need to set up pythonpath. I am new to Mac and Python (and web development and google app engine :-)). So, i'll google around to find out how to do this. Thank you for your help. If I don't find a way to make this work, i'll request for help. On Apr 9, 10:37 am, Jeff S <j...@google.com> wrote: > Hi satish, > > In your aliascommand_loader.py, the following import looks suspicious > > import __main__ > > Since your module is main.py, I think this should just be > > import main > > The __main__ module is actually a build in module and I imagine this is not > what you wanted. (seehttp://docs.python.org/library/__main__.html) Does > that fix it? > > Thank you, > > Jeff > > 2009/4/7 satish <satish...@gmail.com> > > > > > Help, please! anyone? Thanks > > > On Apr 7, 7:04 am, satish <satish...@gmail.com> wrote: > > > if main.py were not in the path, import would've failed. Import > > > statement worked fine. > > > > On Apr 6, 6:52 pm, 秦锋 <feng.w....@gmail.com> wrote: > > > > > main.py is in PYTHONPATH? > > > > What's your command looks like? > > > > > On 4月7日, 上午6时28分, satish <satish...@gmail.com> wrote: > > > > > > I am trying to use bulkuploader for the first time using the > > procedure > > > > > outlined at this page (http://code.google.com/appengine/docs/python/ > > > > > tools/uploadingdata.html) but I am receiving the following error. Can > > > > > someone please help? Thank you. > > > > > > No implementation for kind \'%s\'' % kind > > > > > > No implementation for kind 'AliasCommand' > > > > > > AliasCommand is a entity in main.py > > > > > > ---------aliascommand_loader.py (Loader Class) begin ---------- > > > > > > import datetime > > > > > from google.appengine.ext import db > > > > > import __main__ > > > > > > class AliasCommandLoader(Loader): > > > > > def __init__(self): > > > > > Loader.__init__(self, 'AliasCommand', > > > > > [('alias', str), > > > > > ('command', str) > > > > > ]) > > > > > ---------aliascommand_loader.py (Loader Class) end ---------- > > > > > > ---------main.py (the main module in which AliasCommand entity is > > > > > defined) begin ---------- > > > > > .... > > > > > .... > > > > > class AliasCommand(db.Model): > > > > > alias = db.StringProperty(required=False) > > > > > command = db.StringProperty(required=False) > > > > > createdate = db.DateTimeProperty(auto_now_add=True) > > > > > .... > > > > > .... > > > > > ---------main.py (the main module in which AliasCommand entity is > > > > > defined) end ---------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---