Server Not running

87 views
Skip to first unread message

Spyke Lionel

unread,
Sep 10, 2020, 6:12:35 AM9/10/20
to Django users
I get this while trying to run server:
Exception ignored in thread started by: <function check_errors.<locals>.wrapper at 0x0000021B59E90AF0>
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\utils\autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\core\management\commands\runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\utils\autoreload.py", line 249, in raise_last_exception
    six.reraise(*_exception)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\utils\six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\utils\autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\apps\registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\apps\config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\contrib\auth\models.py", line 4, in <module>
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\contrib\auth\base_user.py", line 49, in <module>
    class AbstractBaseUser(models.Model):
RuntimeError: __class__ not set defining 'AbstractBaseUser' as <class 'django.contrib.auth.base_user.AbstractBaseUser'>. Was __classcell__ propagated to type.__new__?


//What could be the problem? am still a beginner in Django

Kasper Laudrup

unread,
Sep 10, 2020, 7:49:11 AM9/10/20
to django...@googlegroups.com
Hi Spyke,

On 10/09/2020 06.45, Spyke Lionel wrote:
> I get this while trying to run server:
> "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\contrib\auth\base_user.py",
> line 49, in <module>
>     class AbstractBaseUser(models.Model):
> RuntimeError: __class__ not set defining 'AbstractBaseUser' as <class
> 'django.contrib.auth.base_user.AbstractBaseUser'>. Was __classcell__
> propagated to type.__new__?
>
>
> //What could be the problem? am still a beginner in Django
>

You haven't provided much information, so you're leaving it up to other
to guess a bit, but it looks like you're running Django 1.9 with Python 3.8.

Is that correct?

If I look here:

https://docs.djangoproject.com/en/3.1/faq/install/#what-python-version-can-i-use-with-django

It seems like Django 1.9 doesn't officially support Python 3.8, in fact
it doesn't seem like Django 1.9 is supported at all any longer which
could definitely explain why you're getting this exception.

So are you indeed using Django 1.9 and is there any reason why you
haven't upgraded to a newer (and supported) version?

Kind regards,

Kasper Laudrup

Spyke Lionel

unread,
Sep 10, 2020, 1:13:50 PM9/10/20
to django...@googlegroups.com
thanks for responding. I will upgrade my Django version 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/765e37c8-922d-4e28-5865-452466aaebdb%40stacktrace.dk.
Reply all
Reply to author
Forward
0 new messages