I'm encoutering the below error, how can I fix this
Traceback (most recent call last):
File "/home/brigid/.local/bin/django-admin", line 8, in <module>
sys.exit(execute_from_command_line())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
line 371, in execute_from_command_line
utility.execute()
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
line 288, in run_from_argv
self.execute(*args, **cmd_options)
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
line 335, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
line 20, in handle
super().handle('project', project_name, target, **options)
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
line 117, in handle
django.setup()
File
"/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line
16, in setup
from django.urls import set_script_prefix
File
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py",
line 1, in <module>
from .base import (
File
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py",
line 8, in <module>
from .exceptions import NoReverseMatch, Resolver404
File
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
line 1, in <module>
from django.http import Http404
File
"/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py",
line 5, in <module>
from django.http.response import (
File
"/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py",
line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File
"/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
line 6, in <module>
from django.db import models
File
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
line 3, in <module>
from django.db.models.aggregates import * # NOQA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
line 5, in <module>
from django.db.models.expressions import Case, Func, Star, When
File
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
line 486, in <module>
class TemporalSubtraction(CombinedExpression):
File
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
line 487, in TemporalSubtraction
output_field = fields.DurationField()
^^^^^^^^^^^^^^^^^^^^^^
File
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/fields/__init__.py",
line 155, in __init__
if isinstance(choices, collections.Iterator):
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Iterator'
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/ce94bd02-d38d-464d-9d06-2fbd3d5e7340n%40googlegroups.com.