Skip to content

Instantly share code, notes, and snippets.

@rasheedmhd
Created August 9, 2023 19:35
Show Gist options
  • Select an option

  • Save rasheedmhd/c081c2fdb56e153f459e0b7c961c74d8 to your computer and use it in GitHub Desktop.

Select an option

Save rasheedmhd/c081c2fdb56e153f459e0b7c961c74d8 to your computer and use it in GitHub Desktop.
Exception ignored in thread started by: <function check_errors.<locals>.wrapper at 0x1069e6340>
Traceback (most recent call last):
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/autoreload.py", line 248, in raise_last_exception
raise _exception[1]
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/core/management/__init__.py", line 337, in execute
autoreload.check_errors(django.setup)()
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/apps/registry.py", line 112, in populate
app_config.import_models()
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/contrib/auth/models.py", line 94, in <module>
class Group(models.Model):
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/db/models/base.py", line 139, in __new__
new_class.add_to_class(obj_name, obj)
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/db/models/base.py", line 305, in add_to_class
value.contribute_to_class(cls, name)
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/db/models/fields/related.py", line 1583, in contribute_to_class
self.remote_field.through = create_many_to_many_intermediary_model(self, cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/db/models/fields/related.py", line 1051, in create_many_to_many_intermediary_model
'verbose_name': _('%(from)s-%(to)s relationship') % {'from': from_, 'to': to},
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/functional.py", line 149, in __mod__
return str(self) % rhs
^^^^^^^^^
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/functional.py", line 113, in __text_cast
return func(*self.__args, **self.__kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/translation/__init__.py", line 75, in gettext
return _trans.gettext(message)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 286, in gettext
_default = _default or translation(settings.LANGUAGE_CODE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 199, in translation
_translations[language] = DjangoTranslation(language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 90, in __init__
self._init_translation_catalog()
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 131, in _init_translation_catalog
translation = self._new_gnu_trans(localedir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/.local/share/virtualenvs/sptl-website-BO2JZCz1/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 119, in _new_gnu_trans
return gettext_module.translation(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: translation() got an unexpected keyword argument 'codeset'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment