andreasnuesslein / django-informix

A database driver for Django to connect to an Informix database
Apache License 2.0
6 stars 0 forks source link

Giving a None-Type object error #1

Open SiddhantMeshram opened 6 years ago

SiddhantMeshram commented 6 years ago

Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 364, in execute_from_command_line utility.execute() File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 338, in execute django.setup() File "/Library/Python/2.7/site-packages/django/init.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/Library/Python/2.7/site-packages/django/apps/registry.py", line 108, in populate app_config.import_models() File "/Library/Python/2.7/site-packages/django/apps/config.py", line 202, in import_models self.models_module = import_module(models_module_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/Library/Python/2.7/site-packages/django/contrib/auth/models.py", line 4, in from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager File "/Library/Python/2.7/site-packages/django/contrib/auth/base_user.py", line 52, in class AbstractBaseUser(models.Model): File "/Library/Python/2.7/site-packages/django/db/models/base.py", line 124, in new new_class.add_to_class('_meta', Options(meta, app_label)) File "/Library/Python/2.7/site-packages/django/db/models/base.py", line 325, in add_to_class value.contribute_to_class(cls, name) File "/Library/Python/2.7/site-packages/django/db/models/options.py", line 214, in contribute_to_class self.db_table = truncate_name(self.db_table, connection.ops.max_name_length()) File "/Library/Python/2.7/site-packages/django/db/init.py", line 33, in getattr return getattr(connections[DEFAULT_DB_ALIAS], item) File "/Library/Python/2.7/site-packages/django/db/utils.py", line 212, in getitem conn = backend.DatabaseWrapper(db, alias) File "/Library/Python/2.7/site-packages/django_informix-1.5-py2.7.egg/django_informix/base.py", line 74, in init File "/Library/Python/2.7/site-packages/django/db/backends/base/base.py", line 96, in init self.client = self.client_class(self) TypeError: Error when calling the metaclass bases 'NoneType' object is not callable

andreasnuesslein commented 6 years ago

Hey @SiddhantMeshram , thanks for your report. I'm assuming you're using a newer Django version? I haven't maintained this in a while. Which version is it?

Cheers

gummadidala commented 6 years ago

I am also getting the same error. I am using Django 1.11.15 version.

andreasnuesslein commented 6 years ago

Hey folks,

I'm really not maintaining this anymore. :( Can you provide PRs? I will gladly pull them