Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django-nonrel setting up issue : TypeError: init() takes exactly 1 argument (2 given) #12

Open
sharmapradeep opened this issue Aug 23, 2013 · 3 comments

Comments

@sharmapradeep
Copy link

I am getting issues setting up django-nonrel.
I followed steps as http://djangoappengine.readthedocs.org/en/latest/
and then I run this command from django-tesapp folder
$ python manage.py runserver
and I get this :
Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 438, in execute_manager
utility.execute()
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/utils/importlib.py", line 35, in import_module
import(name)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/djangoappengine/management/commands/runserver.py", line 5, in
from django.db import connections
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/db/init.py", line 78, in
connection = connections[DEFAULT_DB_ALIAS]
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/db/utils.py", line 94, in getitem
conn = backend.DatabaseWrapper(db, alias)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/dbindexer/base.py", line 54, in DatabaseWrapper
return Wrapper(merged_settings, _args, *_kwargs)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/dbindexer/base.py", line 37, in init
super(BaseDatabaseWrapper, self).init(_args, *_kwargs)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/djangoappengine/db/base.py", line 290, in init
self.ops = DatabaseOperations(self)
TypeError: init() takes exactly 1 argument (2 given)
pradeep@pradeep:~/projects/python/gae_django_nonrel_app/django-testapp$ python manage.py createsuperuser
Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 438, in execute_manager
utility.execute()
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/core/management/init.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/utils/importlib.py", line 35, in import_module
import(name)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/contrib/auth/management/init.py", line 5, in
from django.contrib.auth import models as auth_app
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/contrib/auth/models.py", line 7, in
from django.db import models
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/db/init.py", line 78, in
connection = connections[DEFAULT_DB_ALIAS]
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/django/db/utils.py", line 94, in getitem
conn = backend.DatabaseWrapper(db, alias)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/dbindexer/base.py", line 54, in DatabaseWrapper
return Wrapper(merged_settings, _args, *_kwargs)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/dbindexer/base.py", line 37, in init
super(BaseDatabaseWrapper, self).init(_args, *_kwargs)
File "/home/pradeep/projects/python/gae_django_nonrel_app/django-testapp/djangoappengine/db/base.py", line 290, in init
self.ops = DatabaseOperations(self)
TypeError: init() takes exactly 1 argument (2 given)

HELP

@aburgel
Copy link
Member

aburgel commented Aug 28, 2013

This typically means you're mixing incompatible branch versions. If you're using django 1.4, then you need to use the dbindexer-1.4 branch, along with the corresponding djangotoolbox and djangoappengine branches

@sharmapradeep
Copy link
Author

@aburgel I am using the django-nonrel 1.5 and all the latest versions of all other apps dbindexer djangotoolbox djangoappengine. I am new to django and python. Please see if I am doing it correct:

  1. I cloned all projects(django-nonrel , dbindexer, djangotoolbox, djangoappengine, django-autoload and django-testapp) from github to my computer directory.
  2. I copied the projects from inside these directories to Django-testapp (Do I need to run setup.py or set any env variables ? because I didn't)
  3. At django-testapp directory I run this command python manage.py runserver
  4. ERROR

Thanks

@aburgel
Copy link
Member

aburgel commented Sep 2, 2013

the latest releases of djangoappengine, djangotoolbox and dbindexer only support django 1.4, you need to use the beta branches for 1.5 support:

https://github.com/django-nonrel/djangotoolbox/tree/toolbox-1.5-beta
https://github.com/django-nonrel/djangoappengine/tree/appengine-1.5-beta
https://github.com/django-nonrel/django-dbindexer/tree/dbindexer-1.5-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants