Hi omat,

It looks like you're importing, probably indirectly, your Django app,
which is attempting to set itself up inside the bulk loader. You need
to make sure that when you import your models, you don't also import
the Django parts of your app.

-Nick Johnson

On Thu, Jul 16, 2009 at 2:42 PM, omat<[email protected]> wrote:
>
> Hi,
>
> I am using Django 1.1 with App Engine Helper for Django. My
> application runs fine, but when I try to upload data using bulkloader,
> "no module named appengine.base" is raised.
>
>
> I issue the command in the root directory of the project (where the
> app.yaml resides):
>
> $ appcfg.py upload_data --config_file=profile/loaders.py --
> filename=profile/initial_data/region.csv --kind=Region --url=http://
> localhost:8082/remote_api ./
>
>
> It seems to get going at the first 2 lines, as it responds:
>
> Uploading data records.
> [INFO    ] Logging to bulkloader-log-20090716.162701
>
>
> Then a "no module named appengine.base" is raised. The full traceback
> is as follows:
>
> Traceback (most recent call last):
>  File "/usr/local/bin/appcfg.py", line 60, in <module>
>    run_file(__file__, globals())
>  File "/usr/local/bin/appcfg.py", line 57, in run_file
>    execfile(script_path, globals_)
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appcfg.py", line 2303, in <module>
>    main(sys.argv)
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appcfg.py", line 2294, in main
>    result = AppCfgApp(argv).Run()
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appcfg.py", line 1458, in Run
>    self.action(self)
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appcfg.py", line 2182, in __call__
>    return method()
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appcfg.py", line 2071, in PerformUpload
>    run_fn(args)
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appcfg.py", line 1984, in RunBulkloader
>    sys.exit(bulkloader.Run(arg_dict))
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/bulkloader.py", line 4354, in Run
>    return _PerformBulkload(arg_dict)
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/bulkloader.py", line 4219, in _PerformBulkload
>    LoadConfig(config_file)
>  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/bulkloader.py", line 3992, in LoadConfig
>    ('', 'r', imp.PY_SOURCE))
>  File "parliament/loaders.py", line 9, in <module>
>    import models
>  File "/Users/omat/workspace/vekilim/gae/parliament/models.py", line
> 1, in <module>
>    from appengine_django.models import BaseModel
>  File "/Users/omat/workspace/projetakvimi/gae/appengine_django/
> models.py", line 24, in <module>
>    from django.db.models.fields import Field
>  File "/Users/omat/workspace/projetakvimi/gae/django/db/__init__.py",
> line 34, in <module>
>    (settings.DATABASE_ENGINE, ", ".join(map(repr,
> available_backends)), e_user)
> django.core.exceptions.ImproperlyConfigured: 'appengine' isn't an
> available database backend. Available options are: 'dummy', 'mysql',
> 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3'
> Error was: No module named appengine.base
>
>
>
> Any help would be appreciated greatly.
>
>
> Thanks,
> omat
>
>
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to