django-oursql icon indicating copy to clipboard operation
django-oursql copied to clipboard

Fresh Django install with django_oursql backend = TypeError: __init__() takes exactly 2 arguments (1 given)

Open Evanlec opened this issue 13 years ago • 2 comments

Installed fresh virtualenv with only django, oursql, and django-oursql, receving this after setting backend to 'mysql_oursql.standard' and trying to run `python manage.py syncdb':

(venv)el@arch64: ~/venv/lam % python manage.py syncdb
Traceback (most recent call last): File "manage.py", line 14, in execute_manager(settings) File "/home/el/venv/lib/python2.7/site-packages/django/core/management/init.py", line 438, in execute_manager utility.execute() File "/home/el/venv/lib/python2.7/site-packages/django/core/management/init.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/el/venv/lib/python2.7/site-packages/django/core/management/init.py", line 261, in fetch_command klass = load_command_class(app_name, subcommand) File "/home/el/venv/lib/python2.7/site-packages/django/core/management/init.py", line 67, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/home/el/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module import(name) File "/home/el/venv/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 7, in from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal File "/home/el/venv/lib/python2.7/site-packages/django/core/management/sql.py", line 6, in from django.db import models File "/home/el/venv/lib/python2.7/site-packages/django/db/init.py", line 78, in connection = connections[DEFAULT_DB_ALIAS] File "/home/el/venv/lib/python2.7/site-packages/django/db/utils.py", line 94, in getitem conn = backend.DatabaseWrapper(db, alias) File "/home/el/venv/lib/python2.7/site-packages/django_oursql-0.1-py2.7.egg/mysql_oursql/standard/base.py", line 130, in init self.features = DatabaseFeatures() TypeError: init() takes exactly 2 arguments (1 given)

Evanlec avatar Jan 21 '12 06:01 Evanlec

I ran into this as well - just submitted a pull request to fix it.

kbarrette avatar Jan 25 '12 23:01 kbarrette

@kbarrette - Thank you kind sir!

Evanlec avatar Feb 24 '12 11:02 Evanlec